59 if ( aTrack->GetMomentum().perp() < 1.0*
MeV ||
60 std::abs( aTrack->GetMomentum().pseudoRapidity() ) > 5.5 ) {
61 ( (G4Track*) aTrack )->SetTrackStatus( fStopAndKill );
68 if ( aTrack->GetTrackStatus() == fStopAndKill && aTrack->GetParentID() == 0 ) {
70 aTrack->GetDynamicParticle()->GetPrimaryParticle()->GetUserInformation();
G4double GetHCalEnergy()
Sets the energy deposit in the hadronic calorimeter.
G4int GetPDG() const
Gets the standard PDG code. Can be set only in the constructor.
G4ThreeVector GetTrackerMomentum()
Gets the particle momentum at the entrance to the tracker detector.
Par02TrackingAction()
A default constructor.
virtual void PreUserTrackingAction(const G4Track *track)
G4ThreeVector GetEMCalPosition()
Gets the position of the energy deposit in the electromagnetic calorimeter.
Definition of the Par02PrimaryParticleInformation class.
G4double GetEMCalEfficiency()
G4ThreeVector GetHCalPosition()
Gets the position of the energy deposit in the hadronic calorimeter.
G4double GetHCalEfficiency()
Definition of the Par02Output class.
static Par02Output * Instance()
void SaveTrack(SaveType aWhatToSave, G4int aPartID, G4int aPDG, G4ThreeVector aVector, G4double aResolution=0, G4double aEfficiency=1, G4double aEnergy=0)
Definition of the Par02TrackingAction class.
G4double GetTrackerEfficiency()
G4ThreeVector GetMCMomentum()
Gets the initial particle momentum (from particle generator).
G4double GetEMCalEnergy()
Sets the energy deposit in the electromagnetic calorimeter.
virtual void PostUserTrackingAction(const G4Track *track)
G4double GetEMCalResolution()
G4int GetPartID() const
Gets the particle unique ID (within event). Can be set only in the constructor.
G4double GetTrackerResolution()
G4double GetHCalResolution()
virtual ~Par02TrackingAction()