Skip to content
Snippets Groups Projects
Commit 4a3fa444 authored by Alexandre Laurier's avatar Alexandre Laurier
Browse files

Remove MM SimHits with 0 kin energy

parent b64ad1bc
No related merge requests found
/*
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
*/
#include "MicromegasSensitiveDetector.h"
......@@ -47,6 +47,7 @@ G4bool MicromegasSensitiveDetector::ProcessHits(G4Step* aStep,G4TouchableHistory
float globalTime=postStep->GetGlobalTime();
float eKin=postStep->GetKineticEnergy();
if (eKin<= 0. && (!geantinoHit)) return false;
Amg::Vector3D direction = Amg::Hep3VectorToEigen( postStep->GetMomentumDirection() );
float depositEnergy=post_Step->GetTotalEnergyDeposit();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment