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