ACTARSim
ACTAR TPC Simulation Reference Guide
Public Member Functions | Private Attributes | List of all members
ActarSimPrimaryInfo Class Reference

The information from the primaries generated in the reaction vertex. Information to be accessed in the ROOT file per event

Definition at line 19 of file ActarSimPrimaryInfo.hh.

Public Member Functions

 ActarSimPrimaryInfo ()
 
 ActarSimPrimaryInfo (G4PrimaryParticle *)
 Constructor from a primary. More...
 
 ~ActarSimPrimaryInfo ()
 Destructor. Makes nothing. More...
 
Int_t GetNbPrimariesInEvent () const
 
Double_t GetKineticEnergy () const
 
Double_t GetTheta () const
 
Double_t GetPhi () const
 
Int_t GetPDGcode () const
 
Double_t GetPx () const
 
Double_t GetPy () const
 
Double_t GetPz () const
 
Int_t GetTrackID () const
 
Double_t GetMass () const
 
Double_t GetCharge () const
 
Double_t GetPolX () const
 
Double_t GetPolY () const
 
Double_t GetPolZ () const
 
Double_t GetWeight () const
 
Double_t GetProperTime () const
 
Double_t GetEventID () const
 
Double_t GetRunID () const
 
Double_t GetX0 () const
 
Double_t GetY0 () const
 
Double_t GetZ0 () const
 
void SetNbPrimariesInEvent (Int_t nb)
 
void SetKineticEnergy (Double_t kin)
 
void SetTheta (Double_t t)
 
void SetPhi (Double_t p)
 
void SetPDGcode (Int_t PDG)
 
void SetPx (Double_t val)
 
void SetPy (Double_t val)
 
void SetPz (Double_t val)
 
void SetTrackID (Int_t tr)
 
void SetMass (Double_t m)
 
void SetCharge (Double_t c)
 
void SetPolX (Double_t p)
 
void SetPolY (Double_t p)
 
void SetPolZ (Double_t p)
 
void SetWeight (Double_t w)
 
void SetProperTime (Double_t pt)
 
void SetEventID (UInt_t eID)
 
void SetRunID (UInt_t rID)
 
void SetX0 (UInt_t x)
 
void SetY0 (UInt_t y)
 
void SetZ0 (UInt_t z)
 
void SetVertexPosition (Double_t x, Double_t y, Double_t z)
 Sets the position of the vertex (origin of the primary particle) More...
 
void SetMomentum (Double_t px, Double_t py, Double_t pz)
 Sets the momentum. More...
 
void Set4Momentum (Double_t px, Double_t py, Double_t pz, Double_t E)
 Sets the 4momentum. More...
 
void SetPolarization (Double_t px, Double_t py, Double_t pz)
 Sets the polarization. More...
 
void print (void)
 Prints info. More...
 

Private Attributes

UInt_t nbPrimariesInEvent
 Number of primaries in the event. More...
 
Double_t kineticEnergy
 Kinetic energy. More...
 
Double_t theta
 Theta emission angle. More...
 
Double_t phi
 Phi emission angle. More...
 
Int_t PDGcode
 PDG code. Datamembers copied from G4PrimaryParticle. More...
 
Double_t Px
 X component of the momentum. More...
 
Double_t Py
 Y component of the momentum. More...
 
Double_t Pz
 Z component of the momentum. More...
 
Int_t trackID
 Rrack ID. More...
 
Double_t mass
 Particle mass. More...
 
Double_t charge
 Partcile charge. More...
 
Double_t polX
 Particle polarization along X. More...
 
Double_t polY
 Particle polarization along Y. More...
 
Double_t polZ
 Particle polarization along Z. More...
 
Double_t Weight0
 Particle weight. More...
 
Double_t properTime
 Partice proper time. More...
 
Double_t x0
 Vertex position in X. More...
 
Double_t y0
 Vertex position in X. More...
 
Double_t z0
 Vertex position in X. More...
 
UInt_t eventID
 Event ID. More...
 
UInt_t runID
 Run ID. More...
 

#include <ActarSimPrimaryInfo.hh>

+ Inheritance diagram for ActarSimPrimaryInfo:
+ Collaboration diagram for ActarSimPrimaryInfo:

Constructor & Destructor Documentation

ActarSimPrimaryInfo::ActarSimPrimaryInfo ( )
ActarSimPrimaryInfo::ActarSimPrimaryInfo ( G4PrimaryParticle *  prim)

Constructor from a primary.

Definition at line 54 of file ActarSimPrimaryInfo.cc.

ActarSimPrimaryInfo::~ActarSimPrimaryInfo ( )

Destructor. Makes nothing.

Definition at line 81 of file ActarSimPrimaryInfo.cc.

Member Function Documentation

Double_t ActarSimPrimaryInfo::GetCharge ( ) const
inline

Definition at line 62 of file ActarSimPrimaryInfo.hh.

Double_t ActarSimPrimaryInfo::GetEventID ( ) const
inline

Definition at line 68 of file ActarSimPrimaryInfo.hh.

Double_t ActarSimPrimaryInfo::GetKineticEnergy ( ) const
inline

Definition at line 53 of file ActarSimPrimaryInfo.hh.

Double_t ActarSimPrimaryInfo::GetMass ( ) const
inline

Definition at line 61 of file ActarSimPrimaryInfo.hh.

Int_t ActarSimPrimaryInfo::GetNbPrimariesInEvent ( ) const
inline

Definition at line 52 of file ActarSimPrimaryInfo.hh.

Int_t ActarSimPrimaryInfo::GetPDGcode ( ) const
inline

Definition at line 56 of file ActarSimPrimaryInfo.hh.

Double_t ActarSimPrimaryInfo::GetPhi ( ) const
inline

Definition at line 55 of file ActarSimPrimaryInfo.hh.

Double_t ActarSimPrimaryInfo::GetPolX ( ) const
inline

Definition at line 63 of file ActarSimPrimaryInfo.hh.

Double_t ActarSimPrimaryInfo::GetPolY ( ) const
inline

Definition at line 64 of file ActarSimPrimaryInfo.hh.

Double_t ActarSimPrimaryInfo::GetPolZ ( ) const
inline

Definition at line 65 of file ActarSimPrimaryInfo.hh.

Double_t ActarSimPrimaryInfo::GetProperTime ( ) const
inline

Definition at line 67 of file ActarSimPrimaryInfo.hh.

Double_t ActarSimPrimaryInfo::GetPx ( ) const
inline

Definition at line 57 of file ActarSimPrimaryInfo.hh.

Double_t ActarSimPrimaryInfo::GetPy ( ) const
inline

Definition at line 58 of file ActarSimPrimaryInfo.hh.

Double_t ActarSimPrimaryInfo::GetPz ( ) const
inline

Definition at line 59 of file ActarSimPrimaryInfo.hh.

Double_t ActarSimPrimaryInfo::GetRunID ( ) const
inline

Definition at line 69 of file ActarSimPrimaryInfo.hh.

Double_t ActarSimPrimaryInfo::GetTheta ( ) const
inline

Definition at line 54 of file ActarSimPrimaryInfo.hh.

Int_t ActarSimPrimaryInfo::GetTrackID ( ) const
inline

Definition at line 60 of file ActarSimPrimaryInfo.hh.

Double_t ActarSimPrimaryInfo::GetWeight ( ) const
inline

Definition at line 66 of file ActarSimPrimaryInfo.hh.

Double_t ActarSimPrimaryInfo::GetX0 ( ) const
inline

Definition at line 70 of file ActarSimPrimaryInfo.hh.

Double_t ActarSimPrimaryInfo::GetY0 ( ) const
inline

Definition at line 71 of file ActarSimPrimaryInfo.hh.

Double_t ActarSimPrimaryInfo::GetZ0 ( ) const
inline

Definition at line 72 of file ActarSimPrimaryInfo.hh.

void ActarSimPrimaryInfo::print ( void  )

Prints info.

Definition at line 86 of file ActarSimPrimaryInfo.cc.

Referenced by SetZ0().

void ActarSimPrimaryInfo::Set4Momentum ( Double_t  px,
Double_t  py,
Double_t  pz,
Double_t  E 
)

Sets the 4momentum.

Definition at line 133 of file ActarSimPrimaryInfo.cc.

Referenced by SetZ0().

void ActarSimPrimaryInfo::SetCharge ( Double_t  c)
inline

Definition at line 84 of file ActarSimPrimaryInfo.hh.

void ActarSimPrimaryInfo::SetEventID ( UInt_t  eID)
inline

Definition at line 90 of file ActarSimPrimaryInfo.hh.

Referenced by ActarSimROOTAnalysis::GeneratePrimaries().

void ActarSimPrimaryInfo::SetKineticEnergy ( Double_t  kin)
inline

Definition at line 75 of file ActarSimPrimaryInfo.hh.

void ActarSimPrimaryInfo::SetMass ( Double_t  m)
inline

Definition at line 83 of file ActarSimPrimaryInfo.hh.

void ActarSimPrimaryInfo::SetMomentum ( Double_t  px,
Double_t  py,
Double_t  pz 
)

Sets the momentum.

Definition at line 122 of file ActarSimPrimaryInfo.cc.

Referenced by SetZ0().

void ActarSimPrimaryInfo::SetNbPrimariesInEvent ( Int_t  nb)
inline

Definition at line 74 of file ActarSimPrimaryInfo.hh.

Referenced by ActarSimROOTAnalysis::GeneratePrimaries().

void ActarSimPrimaryInfo::SetPDGcode ( Int_t  PDG)
inline

Definition at line 78 of file ActarSimPrimaryInfo.hh.

void ActarSimPrimaryInfo::SetPhi ( Double_t  p)
inline

Definition at line 77 of file ActarSimPrimaryInfo.hh.

void ActarSimPrimaryInfo::SetPolarization ( Double_t  px,
Double_t  py,
Double_t  pz 
)

Sets the polarization.

Definition at line 148 of file ActarSimPrimaryInfo.cc.

Referenced by SetZ0().

void ActarSimPrimaryInfo::SetPolX ( Double_t  p)
inline

Definition at line 85 of file ActarSimPrimaryInfo.hh.

void ActarSimPrimaryInfo::SetPolY ( Double_t  p)
inline

Definition at line 86 of file ActarSimPrimaryInfo.hh.

void ActarSimPrimaryInfo::SetPolZ ( Double_t  p)
inline

Definition at line 87 of file ActarSimPrimaryInfo.hh.

void ActarSimPrimaryInfo::SetProperTime ( Double_t  pt)
inline

Definition at line 89 of file ActarSimPrimaryInfo.hh.

void ActarSimPrimaryInfo::SetPx ( Double_t  val)
inline

Definition at line 79 of file ActarSimPrimaryInfo.hh.

void ActarSimPrimaryInfo::SetPy ( Double_t  val)
inline

Definition at line 80 of file ActarSimPrimaryInfo.hh.

void ActarSimPrimaryInfo::SetPz ( Double_t  val)
inline

Definition at line 81 of file ActarSimPrimaryInfo.hh.

void ActarSimPrimaryInfo::SetRunID ( UInt_t  rID)
inline

Definition at line 91 of file ActarSimPrimaryInfo.hh.

Referenced by ActarSimROOTAnalysis::GeneratePrimaries().

void ActarSimPrimaryInfo::SetTheta ( Double_t  t)
inline

Definition at line 76 of file ActarSimPrimaryInfo.hh.

void ActarSimPrimaryInfo::SetTrackID ( Int_t  tr)
inline

Definition at line 82 of file ActarSimPrimaryInfo.hh.

void ActarSimPrimaryInfo::SetVertexPosition ( Double_t  x,
Double_t  y,
Double_t  z 
)

Sets the position of the vertex (origin of the primary particle)

Definition at line 114 of file ActarSimPrimaryInfo.cc.

Referenced by ActarSimROOTAnalysis::GeneratePrimaries(), and SetZ0().

void ActarSimPrimaryInfo::SetWeight ( Double_t  w)
inline

Definition at line 88 of file ActarSimPrimaryInfo.hh.

void ActarSimPrimaryInfo::SetX0 ( UInt_t  x)
inline

Definition at line 92 of file ActarSimPrimaryInfo.hh.

void ActarSimPrimaryInfo::SetY0 ( UInt_t  y)
inline

Definition at line 93 of file ActarSimPrimaryInfo.hh.

void ActarSimPrimaryInfo::SetZ0 ( UInt_t  z)
inline

Definition at line 94 of file ActarSimPrimaryInfo.hh.

Member Data Documentation

Double_t ActarSimPrimaryInfo::charge
private

Partcile charge.

Definition at line 32 of file ActarSimPrimaryInfo.hh.

Referenced by ActarSimPrimaryInfo(), GetCharge(), and print().

UInt_t ActarSimPrimaryInfo::eventID
private

Event ID.

Definition at line 44 of file ActarSimPrimaryInfo.hh.

Referenced by GetEventID(), and print().

Double_t ActarSimPrimaryInfo::kineticEnergy
private

Kinetic energy.

Definition at line 22 of file ActarSimPrimaryInfo.hh.

Referenced by ActarSimPrimaryInfo(), GetKineticEnergy(), and print().

Double_t ActarSimPrimaryInfo::mass
private

Particle mass.

Definition at line 31 of file ActarSimPrimaryInfo.hh.

Referenced by ActarSimPrimaryInfo(), GetMass(), print(), and Set4Momentum().

UInt_t ActarSimPrimaryInfo::nbPrimariesInEvent
private

Number of primaries in the event.

Definition at line 21 of file ActarSimPrimaryInfo.hh.

Referenced by GetNbPrimariesInEvent(), and print().

Int_t ActarSimPrimaryInfo::PDGcode
private

PDG code. Datamembers copied from G4PrimaryParticle.

Definition at line 26 of file ActarSimPrimaryInfo.hh.

Referenced by ActarSimPrimaryInfo(), GetPDGcode(), and print().

Double_t ActarSimPrimaryInfo::phi
private

Phi emission angle.

Definition at line 24 of file ActarSimPrimaryInfo.hh.

Referenced by ActarSimPrimaryInfo(), GetPhi(), print(), and SetMomentum().

Double_t ActarSimPrimaryInfo::polX
private

Particle polarization along X.

Definition at line 33 of file ActarSimPrimaryInfo.hh.

Referenced by ActarSimPrimaryInfo(), GetPolX(), print(), and SetPolarization().

Double_t ActarSimPrimaryInfo::polY
private

Particle polarization along Y.

Definition at line 34 of file ActarSimPrimaryInfo.hh.

Referenced by ActarSimPrimaryInfo(), GetPolY(), print(), and SetPolarization().

Double_t ActarSimPrimaryInfo::polZ
private

Particle polarization along Z.

Definition at line 35 of file ActarSimPrimaryInfo.hh.

Referenced by ActarSimPrimaryInfo(), GetPolZ(), print(), and SetPolarization().

Double_t ActarSimPrimaryInfo::properTime
private

Partice proper time.

Definition at line 37 of file ActarSimPrimaryInfo.hh.

Referenced by ActarSimPrimaryInfo(), GetProperTime(), and print().

Double_t ActarSimPrimaryInfo::Px
private

X component of the momentum.

Definition at line 27 of file ActarSimPrimaryInfo.hh.

Referenced by ActarSimPrimaryInfo(), GetPx(), print(), Set4Momentum(), and SetMomentum().

Double_t ActarSimPrimaryInfo::Py
private

Y component of the momentum.

Definition at line 28 of file ActarSimPrimaryInfo.hh.

Referenced by ActarSimPrimaryInfo(), GetPy(), print(), Set4Momentum(), and SetMomentum().

Double_t ActarSimPrimaryInfo::Pz
private

Z component of the momentum.

Definition at line 29 of file ActarSimPrimaryInfo.hh.

Referenced by ActarSimPrimaryInfo(), GetPz(), print(), Set4Momentum(), and SetMomentum().

UInt_t ActarSimPrimaryInfo::runID
private

Run ID.

Definition at line 45 of file ActarSimPrimaryInfo.hh.

Referenced by GetRunID(), and print().

Double_t ActarSimPrimaryInfo::theta
private

Theta emission angle.

Definition at line 23 of file ActarSimPrimaryInfo.hh.

Referenced by ActarSimPrimaryInfo(), GetTheta(), print(), and SetMomentum().

Int_t ActarSimPrimaryInfo::trackID
private

Rrack ID.

Definition at line 30 of file ActarSimPrimaryInfo.hh.

Referenced by ActarSimPrimaryInfo(), GetTrackID(), and print().

Double_t ActarSimPrimaryInfo::Weight0
private

Particle weight.

Definition at line 36 of file ActarSimPrimaryInfo.hh.

Referenced by ActarSimPrimaryInfo(), GetWeight(), and print().

Double_t ActarSimPrimaryInfo::x0
private

Vertex position in X.

Definition at line 39 of file ActarSimPrimaryInfo.hh.

Referenced by GetX0(), print(), and SetVertexPosition().

Double_t ActarSimPrimaryInfo::y0
private

Vertex position in X.

Definition at line 40 of file ActarSimPrimaryInfo.hh.

Referenced by GetY0(), print(), and SetVertexPosition().

Double_t ActarSimPrimaryInfo::z0
private

Vertex position in X.

Definition at line 41 of file ActarSimPrimaryInfo.hh.

Referenced by GetZ0(), print(), and SetVertexPosition().


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