55{
56 G4Track * theTrack = theStep->GetTrack();
57
58
59 if(theTrack->GetTrackStatus()!=fAlive) { return; }
60
61
62 if(theTrack->GetParentID()!=0) { return; }
63
64
66 if((particleType==G4MuonPlus::MuonPlusDefinition())
67 ||(particleType==G4MuonMinus::MuonMinusDefinition()))
68 { return; }
69
70
71 G4StepPoint * thePrePoint = theStep->GetPreStepPoint();
73 G4String thePrePVname = thePrePV->GetName();
74 if(thePrePVname.substr(0,4)=="calo") { return; }
75 G4StepPoint * thePostPoint = theStep->GetPostStepPoint();
77 G4String thePostPVname = thePostPV->GetName();
78 if(thePostPVname.substr(0,4)!="calo") { return; }
79
80
81 theTrack->SetTrackStatus(fSuspend);
82}