Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Par02PrimaryParticleInformation Class Reference

#include <Par02PrimaryParticleInformation.hh>

Inheritance diagram for Par02PrimaryParticleInformation:
Collaboration diagram for Par02PrimaryParticleInformation:

Public Member Functions

 Par02PrimaryParticleInformation (G4int aID, G4int aPDG, G4ThreeVector aMomentum)
 
virtual ~Par02PrimaryParticleInformation ()
 
virtual void Print () const
 Prints the information about the particle. More...
 
void SetMCMomentum (G4ThreeVector aMomentum)
 
G4ThreeVector GetMCMomentum ()
 Gets the initial particle momentum (from particle generator). More...
 
void SetTrackerMomentum (G4ThreeVector aMomentum)
 
G4ThreeVector GetTrackerMomentum ()
 Gets the particle momentum at the entrance to the tracker detector. More...
 
void SetTrackerResolution (G4double aResolution)
 
G4double GetTrackerResolution ()
 
void SetTrackerEfficiency (G4double aEfficiency)
 
G4double GetTrackerEfficiency ()
 
void SetEMCalPosition (G4ThreeVector aPosition)
 
G4ThreeVector GetEMCalPosition ()
 Gets the position of the energy deposit in the electromagnetic calorimeter. More...
 
void SetEMCalEnergy (G4double aEnergy)
 
G4double GetEMCalEnergy ()
 Sets the energy deposit in the electromagnetic calorimeter. More...
 
void SetEMCalResolution (G4double aResolution)
 
G4double GetEMCalResolution ()
 
void SetEMCalEfficiency (G4double aEfficiency)
 
G4double GetEMCalEfficiency ()
 
void SetHCalPosition (G4ThreeVector aPosition)
 
G4ThreeVector GetHCalPosition ()
 Gets the position of the energy deposit in the hadronic calorimeter. More...
 
void SetHCalEnergy (G4double aEnergy)
 
G4double GetHCalEnergy ()
 Sets the energy deposit in the hadronic calorimeter. More...
 
void SetHCalResolution (G4double aResolution)
 
G4double GetHCalResolution ()
 
void SetHCalEfficiency (G4double aEfficiency)
 
G4double GetHCalEfficiency ()
 
G4int GetPartID () const
 Gets the particle unique ID (within event). Can be set only in the constructor. More...
 
G4int GetPDG () const
 Gets the standard PDG code. Can be set only in the constructor. More...
 
- Public Member Functions inherited from G4VUserPrimaryParticleInformation
 G4VUserPrimaryParticleInformation ()
 
virtual ~G4VUserPrimaryParticleInformation ()
 

Detailed Description

Primary particle information

Describes the information that can be associated with a G4PrimaryParticle class object.

Author
Anna Zaborowska

Definition at line 44 of file Par02PrimaryParticleInformation.hh.

Constructor & Destructor Documentation

Par02PrimaryParticleInformation::Par02PrimaryParticleInformation ( G4int  aID,
G4int  aPDG,
G4ThreeVector  aMomentum 
)

A constructor.

Parameters
aIDA unique particle ID within event.
aPDGA PDG code of the particle.
aMomentumAn initial particle momentum (at the primary vertex).

Definition at line 35 of file Par02PrimaryParticleInformation.cc.

36  :
37  fPartID( aPartID ), fPDG( aPDG ), fMomentumMC( aMomentum ),
38  fMomentumTracker( 0 ), fResolutionTracker( 0 ), fEfficiencyTracker( 0 ),
39  fPositionEMCal( 0 ), fEnergyEMCal( 0 ), fResolutionEMCal( 0 ), fEfficiencyEMCal( 0 ),
40  fPositionHCal( 0 ), fEnergyHCal( 0 ), fResolutionHCal( 0 ), fEfficiencyHCal( 0 ) {}
Par02PrimaryParticleInformation::~Par02PrimaryParticleInformation ( )
virtual

Definition at line 44 of file Par02PrimaryParticleInformation.cc.

44 {}

Member Function Documentation

G4double Par02PrimaryParticleInformation::GetEMCalEfficiency ( )
inline

Gets the electromagnetic calorimeter efficiency. Currently not used (efficiency is 1).

Definition at line 128 of file Par02PrimaryParticleInformation.hh.

128 { return fEfficiencyEMCal; };

Here is the caller graph for this function:

G4double Par02PrimaryParticleInformation::GetEMCalEnergy ( )
inline

Sets the energy deposit in the electromagnetic calorimeter.

Definition at line 107 of file Par02PrimaryParticleInformation.hh.

107 { return fEnergyEMCal; };

Here is the caller graph for this function:

G4ThreeVector Par02PrimaryParticleInformation::GetEMCalPosition ( )
inline

Gets the position of the energy deposit in the electromagnetic calorimeter.

Definition at line 100 of file Par02PrimaryParticleInformation.hh.

100 { return fPositionEMCal; };

Here is the caller graph for this function:

G4double Par02PrimaryParticleInformation::GetEMCalResolution ( )
inline

Gets the electromagnetic calorimeter resolution. Currently equal to -1 if AtlFast type of smearing is used.

Definition at line 118 of file Par02PrimaryParticleInformation.hh.

118 { return fResolutionEMCal; };

Here is the caller graph for this function:

G4double Par02PrimaryParticleInformation::GetHCalEfficiency ( )
inline

Gets the hadronic calorimeter efficiency. Currently not used (efficiency is 1).

Definition at line 164 of file Par02PrimaryParticleInformation.hh.

164 { return fEfficiencyHCal; };

Here is the caller graph for this function:

G4double Par02PrimaryParticleInformation::GetHCalEnergy ( )
inline

Sets the energy deposit in the hadronic calorimeter.

Definition at line 143 of file Par02PrimaryParticleInformation.hh.

143 { return fEnergyHCal; };

Here is the caller graph for this function:

G4ThreeVector Par02PrimaryParticleInformation::GetHCalPosition ( )
inline

Gets the position of the energy deposit in the hadronic calorimeter.

Definition at line 136 of file Par02PrimaryParticleInformation.hh.

136 { return fPositionHCal; };

Here is the caller graph for this function:

G4double Par02PrimaryParticleInformation::GetHCalResolution ( )
inline

Gets the hadronic calorimeter resolution. Currently equal to -1 if AtlFast type of smearing is used.

Definition at line 154 of file Par02PrimaryParticleInformation.hh.

154 { return fResolutionHCal; };

Here is the caller graph for this function:

G4ThreeVector Par02PrimaryParticleInformation::GetMCMomentum ( )
inline

Gets the initial particle momentum (from particle generator).

Definition at line 63 of file Par02PrimaryParticleInformation.hh.

63 { return fMomentumMC; };

Here is the caller graph for this function:

G4int Par02PrimaryParticleInformation::GetPartID ( ) const
inline

Gets the particle unique ID (within event). Can be set only in the constructor.

Definition at line 167 of file Par02PrimaryParticleInformation.hh.

167 { return fPartID; };

Here is the caller graph for this function:

G4int Par02PrimaryParticleInformation::GetPDG ( ) const
inline

Gets the standard PDG code. Can be set only in the constructor.

Definition at line 170 of file Par02PrimaryParticleInformation.hh.

170 { return fPDG; };

Here is the caller graph for this function:

G4double Par02PrimaryParticleInformation::GetTrackerEfficiency ( )
inline

Gets the tracker detector efficiency. Currently not used (efficiency is 1).

Definition at line 92 of file Par02PrimaryParticleInformation.hh.

92 { return fEfficiencyTracker; };

Here is the caller graph for this function:

G4ThreeVector Par02PrimaryParticleInformation::GetTrackerMomentum ( )
inline

Gets the particle momentum at the entrance to the tracker detector.

Definition at line 71 of file Par02PrimaryParticleInformation.hh.

71 { return fMomentumTracker; }

Here is the caller graph for this function:

G4double Par02PrimaryParticleInformation::GetTrackerResolution ( )
inline

Gets the tracking detector resolution. Currently equal to -1 if AtlFast type of smearing is used.

Definition at line 82 of file Par02PrimaryParticleInformation.hh.

82 { return fResolutionTracker; };

Here is the caller graph for this function:

void Par02PrimaryParticleInformation::Print ( void  ) const
virtual

Prints the information about the particle.

Implements G4VUserPrimaryParticleInformation.

Definition at line 48 of file Par02PrimaryParticleInformation.cc.

48  {
49  G4cout << "Par02PrimaryParticleInformation: PDG code " << fPDG << G4endl
50  << "Particle unique ID: " << fPartID << G4endl
51  << "MC momentum: " << fMomentumMC << G4endl
52  << "Tracker momentum: " << fMomentumTracker << G4endl
53  << "Tracker resolution: " << fResolutionTracker << G4endl
54  << "Tracker efficiency: " << fEfficiencyTracker << G4endl
55  << "EMCal energy: " << fEnergyEMCal << " at " << fPositionEMCal << G4endl
56  << "EMCal resolution: " << fResolutionEMCal << G4endl
57  << "EMCal efficiency: " << fEfficiencyEMCal << G4endl
58  << "HCal energy: " << fEnergyHCal << " at "<< fPositionHCal << G4endl
59  << "HCal resolution: " << fResolutionHCal << G4endl
60  << "HCal efficiency: " << fEfficiencyHCal << G4endl;
61 }
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
void Par02PrimaryParticleInformation::SetEMCalEfficiency ( G4double  aEfficiency)
inline

Sets the electromagnetic calorimeter efficiency. Currently not used (efficiency is 1).

Parameters
aEfficiencyThe detector efficiency.

Definition at line 123 of file Par02PrimaryParticleInformation.hh.

124  { fEfficiencyEMCal = aEfficiency; };
void Par02PrimaryParticleInformation::SetEMCalEnergy ( G4double  aEnergy)
inline

Sets the energy deposit in the electromagnetic calorimeter.

Parameters
aEnergyThe energy deposited in the detector.

Definition at line 104 of file Par02PrimaryParticleInformation.hh.

104 { fEnergyEMCal = aEnergy; };
void Par02PrimaryParticleInformation::SetEMCalPosition ( G4ThreeVector  aPosition)
inline

Sets the position of the energy deposit in the electromagnetic calorimeter.

Parameters
aPositionThe position of the energy deposit.

Definition at line 96 of file Par02PrimaryParticleInformation.hh.

97  { fPositionEMCal = aPosition; };
void Par02PrimaryParticleInformation::SetEMCalResolution ( G4double  aResolution)
inline

Sets the electromagnetic calorimeter resolution. Currently equal to -1 if AtlFast type of smearing is used.

Parameters
aResolutionThe calorimeter resolution (particle type and momentum dependent).

Definition at line 113 of file Par02PrimaryParticleInformation.hh.

114  { fResolutionEMCal = aResolution; };
void Par02PrimaryParticleInformation::SetHCalEfficiency ( G4double  aEfficiency)
inline

Sets the hadronic calorimeter efficiency. Currently not used (efficiency is 1).

Parameters
aEfficiencyThe detector efficiency.

Definition at line 159 of file Par02PrimaryParticleInformation.hh.

160  { fEfficiencyHCal = aEfficiency; };

Here is the caller graph for this function:

void Par02PrimaryParticleInformation::SetHCalEnergy ( G4double  aEnergy)
inline

Sets the energy deposit in the hadronic calorimeter.

Parameters
aEnergyThe energy deposited in the detector.

Definition at line 140 of file Par02PrimaryParticleInformation.hh.

140 { fEnergyHCal = aEnergy; };

Here is the caller graph for this function:

void Par02PrimaryParticleInformation::SetHCalPosition ( G4ThreeVector  aPosition)
inline

Sets the position of the energy deposit in the hadronic calorimeter.

Parameters
aPositionThe position of the energy deposit.

Definition at line 132 of file Par02PrimaryParticleInformation.hh.

133  { fPositionHCal = aPosition; };

Here is the caller graph for this function:

void Par02PrimaryParticleInformation::SetHCalResolution ( G4double  aResolution)
inline

Sets the hadronic calorimeter resolution. Currently equal to -1 if AtlFast type of smearing is used.

Parameters
aResolutionThe calorimeter resolution (particle type and momentum dependent).

Definition at line 149 of file Par02PrimaryParticleInformation.hh.

150  { fResolutionHCal = aResolution; };

Here is the caller graph for this function:

void Par02PrimaryParticleInformation::SetMCMomentum ( G4ThreeVector  aMomentum)
inline

Sets the initial particle momentum (from particle generator).

Parameters
aMomentumThe particle momentum.

Definition at line 60 of file Par02PrimaryParticleInformation.hh.

60 { fMomentumMC = aMomentum; };
void Par02PrimaryParticleInformation::SetTrackerEfficiency ( G4double  aEfficiency)
inline

Sets the tracking detector efficiency. Currently not used (efficiency is 1).

Parameters
aEfficiencyThe detector efficiency.

Definition at line 87 of file Par02PrimaryParticleInformation.hh.

88  { fEfficiencyTracker = aEfficiency; };
void Par02PrimaryParticleInformation::SetTrackerMomentum ( G4ThreeVector  aMomentum)
inline

Sets the particle momentum at the entrance to the tracker detector.

Parameters
aMomentumThe particle momentum.

Definition at line 67 of file Par02PrimaryParticleInformation.hh.

68  { fMomentumTracker = aMomentum; };
void Par02PrimaryParticleInformation::SetTrackerResolution ( G4double  aResolution)
inline

Sets the tracker detector resolution. Currently equal to -1 if AtlFast type of smearing is used.

Parameters
aResolutionThe detector resolution (particle type and momentum dependent).

Definition at line 77 of file Par02PrimaryParticleInformation.hh.

78  { fResolutionTracker = aResolution; };

The documentation for this class was generated from the following files: