Geant4  10.02.p03
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 ()
 

Private Attributes

G4int fPartID
 A particle unique ID. More...
 
G4int fPDG
 A particle type (PDG code). More...
 
G4ThreeVector fMomentumMC
 A particle initial momentum (from particle generator). More...
 
G4ThreeVector fMomentumTracker
 A particle momentum at the entrance to the tracking detector. More...
 
G4double fResolutionTracker
 A resolution of the tracking detector. More...
 
G4double fEfficiencyTracker
 
G4ThreeVector fPositionEMCal
 A position of the energy deposited in the electromagnetic calorimeter. More...
 
G4double fEnergyEMCal
 An energy deposited in the electromagnetic calorimeter. More...
 
G4double fResolutionEMCal
 The resolution of the electromagnetic calorimeter. More...
 
G4double fEfficiencyEMCal
 
G4ThreeVector fPositionHCal
 A position of the energy deposited in the hadronic calorimeter. More...
 
G4double fEnergyHCal
 An energy deposited in the hadronic calorimeter. More...
 
G4double fResolutionHCal
 The resolution of the hadronic calorimeter. More...
 
G4double fEfficiencyHCal
 

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::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 ),
G4ThreeVector fPositionEMCal
A position of the energy deposited in the electromagnetic calorimeter.
G4ThreeVector fMomentumMC
A particle initial momentum (from particle generator).
G4ThreeVector fMomentumTracker
A particle momentum at the entrance to the tracking detector.
G4double fResolutionEMCal
The resolution of the electromagnetic calorimeter.
G4double fResolutionHCal
The resolution of the hadronic calorimeter.
G4double fResolutionTracker
A resolution of the tracking detector.
G4double fEnergyEMCal
An energy deposited in the electromagnetic calorimeter.
G4ThreeVector fPositionHCal
A position of the energy deposited in the hadronic calorimeter.
G4int fPDG
A particle type (PDG code).
G4double fEnergyHCal
An energy deposited in the hadronic calorimeter.

◆ ~Par02PrimaryParticleInformation()

Par02PrimaryParticleInformation::~Par02PrimaryParticleInformation ( )
virtual

Definition at line 44 of file Par02PrimaryParticleInformation.cc.

44 {}

Member Function Documentation

◆ GetEMCalEfficiency()

G4double Par02PrimaryParticleInformation::GetEMCalEfficiency ( )
inline

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

Definition at line 128 of file Par02PrimaryParticleInformation.hh.

Here is the caller graph for this function:

◆ GetEMCalEnergy()

G4double Par02PrimaryParticleInformation::GetEMCalEnergy ( )
inline

Sets the energy deposit in the electromagnetic calorimeter.

Definition at line 107 of file Par02PrimaryParticleInformation.hh.

107 { return fEnergyEMCal; };
G4double fEnergyEMCal
An energy deposited in the electromagnetic calorimeter.
Here is the caller graph for this function:

◆ GetEMCalPosition()

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; };
G4ThreeVector fPositionEMCal
A position of the energy deposited in the electromagnetic calorimeter.
Here is the caller graph for this function:

◆ GetEMCalResolution()

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; };
G4double fResolutionEMCal
The resolution of the electromagnetic calorimeter.
Here is the caller graph for this function:

◆ GetHCalEfficiency()

G4double Par02PrimaryParticleInformation::GetHCalEfficiency ( )
inline

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

Definition at line 164 of file Par02PrimaryParticleInformation.hh.

Here is the caller graph for this function:

◆ GetHCalEnergy()

G4double Par02PrimaryParticleInformation::GetHCalEnergy ( )
inline

Sets the energy deposit in the hadronic calorimeter.

Definition at line 143 of file Par02PrimaryParticleInformation.hh.

143 { return fEnergyHCal; };
G4double fEnergyHCal
An energy deposited in the hadronic calorimeter.
Here is the caller graph for this function:

◆ GetHCalPosition()

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; };
G4ThreeVector fPositionHCal
A position of the energy deposited in the hadronic calorimeter.
Here is the caller graph for this function:

◆ GetHCalResolution()

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; };
G4double fResolutionHCal
The resolution of the hadronic calorimeter.
Here is the caller graph for this function:

◆ GetMCMomentum()

G4ThreeVector Par02PrimaryParticleInformation::GetMCMomentum ( )
inline

Gets the initial particle momentum (from particle generator).

Definition at line 63 of file Par02PrimaryParticleInformation.hh.

63 { return fMomentumMC; };
G4ThreeVector fMomentumMC
A particle initial momentum (from particle generator).
Here is the caller graph for this function:

◆ GetPartID()

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:

◆ GetPDG()

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; };
G4int fPDG
A particle type (PDG code).
Here is the caller graph for this function:

◆ GetTrackerEfficiency()

G4double Par02PrimaryParticleInformation::GetTrackerEfficiency ( )
inline

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

Definition at line 92 of file Par02PrimaryParticleInformation.hh.

Here is the caller graph for this function:

◆ GetTrackerMomentum()

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; }
G4ThreeVector fMomentumTracker
A particle momentum at the entrance to the tracking detector.
Here is the caller graph for this function:

◆ GetTrackerResolution()

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; };
G4double fResolutionTracker
A resolution of the tracking detector.
Here is the caller graph for this function:

◆ Print()

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 }
G4ThreeVector fPositionEMCal
A position of the energy deposited in the electromagnetic calorimeter.
G4ThreeVector fMomentumMC
A particle initial momentum (from particle generator).
G4ThreeVector fMomentumTracker
A particle momentum at the entrance to the tracking detector.
G4double fResolutionEMCal
The resolution of the electromagnetic calorimeter.
G4GLOB_DLL std::ostream G4cout
G4double fResolutionHCal
The resolution of the hadronic calorimeter.
G4double fResolutionTracker
A resolution of the tracking detector.
G4double fEnergyEMCal
An energy deposited in the electromagnetic calorimeter.
G4ThreeVector fPositionHCal
A position of the energy deposited in the hadronic calorimeter.
#define G4endl
Definition: G4ios.hh:61
G4int fPDG
A particle type (PDG code).
G4double fEnergyHCal
An energy deposited in the hadronic calorimeter.

◆ SetEMCalEfficiency()

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.

◆ SetEMCalEnergy()

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; };
G4double fEnergyEMCal
An energy deposited in the electromagnetic calorimeter.

◆ SetEMCalPosition()

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; };
G4ThreeVector fPositionEMCal
A position of the energy deposited in the electromagnetic calorimeter.

◆ SetEMCalResolution()

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; };
G4double fResolutionEMCal
The resolution of the electromagnetic calorimeter.

◆ SetHCalEfficiency()

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.

Here is the caller graph for this function:

◆ SetHCalEnergy()

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; };
G4double fEnergyHCal
An energy deposited in the hadronic calorimeter.
Here is the caller graph for this function:

◆ SetHCalPosition()

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; };
G4ThreeVector fPositionHCal
A position of the energy deposited in the hadronic calorimeter.
Here is the caller graph for this function:

◆ SetHCalResolution()

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; };
G4double fResolutionHCal
The resolution of the hadronic calorimeter.
Here is the caller graph for this function:

◆ SetMCMomentum()

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; };
G4ThreeVector fMomentumMC
A particle initial momentum (from particle generator).

◆ SetTrackerEfficiency()

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.

◆ SetTrackerMomentum()

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; };
G4ThreeVector fMomentumTracker
A particle momentum at the entrance to the tracking detector.

◆ SetTrackerResolution()

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; };
G4double fResolutionTracker
A resolution of the tracking detector.

Member Data Documentation

◆ fEfficiencyEMCal

G4double Par02PrimaryParticleInformation::fEfficiencyEMCal
private

The efficiency of the electromagnetic calorimeter. Currently not used (equal to 1).

Definition at line 204 of file Par02PrimaryParticleInformation.hh.

◆ fEfficiencyHCal

G4double Par02PrimaryParticleInformation::fEfficiencyHCal
private

The efficiency of the hadronic calorimeter. Currently not used (equal to 1).

Definition at line 217 of file Par02PrimaryParticleInformation.hh.

◆ fEfficiencyTracker

G4double Par02PrimaryParticleInformation::fEfficiencyTracker
private

An efficiency of the tracking detector. Currently not used (equal to 1).

Definition at line 191 of file Par02PrimaryParticleInformation.hh.

◆ fEnergyEMCal

G4double Par02PrimaryParticleInformation::fEnergyEMCal
private

An energy deposited in the electromagnetic calorimeter.

Definition at line 197 of file Par02PrimaryParticleInformation.hh.

◆ fEnergyHCal

G4double Par02PrimaryParticleInformation::fEnergyHCal
private

An energy deposited in the hadronic calorimeter.

Definition at line 210 of file Par02PrimaryParticleInformation.hh.

◆ fMomentumMC

G4ThreeVector Par02PrimaryParticleInformation::fMomentumMC
private

A particle initial momentum (from particle generator).

Definition at line 181 of file Par02PrimaryParticleInformation.hh.

◆ fMomentumTracker

G4ThreeVector Par02PrimaryParticleInformation::fMomentumTracker
private

A particle momentum at the entrance to the tracking detector.

Definition at line 184 of file Par02PrimaryParticleInformation.hh.

◆ fPartID

G4int Par02PrimaryParticleInformation::fPartID
private

A particle unique ID.

Definition at line 170 of file Par02PrimaryParticleInformation.hh.

◆ fPDG

G4int Par02PrimaryParticleInformation::fPDG
private

A particle type (PDG code).

Definition at line 178 of file Par02PrimaryParticleInformation.hh.

◆ fPositionEMCal

G4ThreeVector Par02PrimaryParticleInformation::fPositionEMCal
private

A position of the energy deposited in the electromagnetic calorimeter.

Definition at line 194 of file Par02PrimaryParticleInformation.hh.

◆ fPositionHCal

G4ThreeVector Par02PrimaryParticleInformation::fPositionHCal
private

A position of the energy deposited in the hadronic calorimeter.

Definition at line 207 of file Par02PrimaryParticleInformation.hh.

◆ fResolutionEMCal

G4double Par02PrimaryParticleInformation::fResolutionEMCal
private

The resolution of the electromagnetic calorimeter.

Definition at line 200 of file Par02PrimaryParticleInformation.hh.

◆ fResolutionHCal

G4double Par02PrimaryParticleInformation::fResolutionHCal
private

The resolution of the hadronic calorimeter.

Definition at line 213 of file Par02PrimaryParticleInformation.hh.

◆ fResolutionTracker

G4double Par02PrimaryParticleInformation::fResolutionTracker
private

A resolution of the tracking detector.

Definition at line 187 of file Par02PrimaryParticleInformation.hh.


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