ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
AtTPCIonGenerator Class Reference

#include <AtTPCIonGenerator.h>

Inheritance diagram for AtTPCIonGenerator:
Inheritance graph
[legend]
Collaboration diagram for AtTPCIonGenerator:
Collaboration graph
[legend]

Public Member Functions

 AtTPCIonGenerator ()
 
 AtTPCIonGenerator (const Char_t *ionName, Int_t mult, Double_t px, Double_t py, Double_t pz)
 
 AtTPCIonGenerator (const char *name, Int_t z, Int_t a, Int_t q, Int_t mult, Double_t px, Double_t py, Double_t pz, Double_t Ex, Double_t m, Double_t ener, Double_t eLoss=-1)
 
virtual ~AtTPCIonGenerator ()=default
 
void SetCharge (Int_t charge)
 
void SetExcitationEnergy (Double_t eExc)
 
void SetMass (Double_t mass)
 
void SetSpotRadius (Double32_t r=0, Double32_t z=0, Double32_t offx=0, Double32_t offy=0)
 
void SetDoReaction (Bool_t doReact)
 
virtual Bool_t ReadEvent (FairPrimaryGenerator *primGen)
 

Protected Member Functions

virtual void SetVertexCoordinates ()
 Sets fVx, fVy, fVz depending on the type of ion generator. More...
 

Protected Attributes

Int_t fMult
 Number of the instance of this class. More...
 
Double_t fPx
 
Double_t fPy
 
Double_t fPz
 
Double32_t fR
 
Double32_t fz
 
Double32_t fOffsetX
 
Double32_t fOffsetY
 
Double_t fVx
 
Double_t fVy
 
Double_t fVz
 
FairIon * fIon
 
Int_t fQ
 
Int_t fNomEner {}
 
Double_t fMaxEnLoss {}
 
Bool_t fDoReact {true}
 

Static Protected Attributes

static Int_t fgNIon = 0
 

Detailed Description

Definition at line 22 of file AtTPCIonGenerator.h.

Constructor & Destructor Documentation

◆ AtTPCIonGenerator() [1/3]

AtTPCIonGenerator::AtTPCIonGenerator ( )

Default constructor

Definition at line 41 of file AtTPCIonGenerator.cxx.

◆ AtTPCIonGenerator() [2/3]

AtTPCIonGenerator::AtTPCIonGenerator ( const Char_t *  ionName,
Int_t  mult,
Double_t  px,
Double_t  py,
Double_t  pz 
)

Constructor with ion name For the generation of ions with pre-defined FairIon By default, the excitation energy is zero. This can be changed with the respective modifiers.

Parameters
ionNameIon name
multNumber of ions per event
px,py,pzMomentum components [GeV] per nucleon!
vx,vy,vzVertex coordinates [cm]

Definition at line 51 of file AtTPCIonGenerator.cxx.

◆ AtTPCIonGenerator() [3/3]

AtTPCIonGenerator::AtTPCIonGenerator ( const char *  name,
Int_t  z,
Int_t  a,
Int_t  q,
Int_t  mult,
Double_t  px,
Double_t  py,
Double_t  pz,
Double_t  Ex,
Double_t  m,
Double_t  ener,
Double_t  eLoss = -1 
)

Default constructor For the generation of ions with atomic number z and mass number a. By default, the mass equals a times the proton mass and the excitation energy is zero. This can be changed with the respective modifiers.

Parameters
zAtomic number
aAtomic mass
qElectric charge [e]
multNumber of ions per event
px,py,pzMomentum components [GeV] per nucleon!
vx,vy,vzVertex coordinates [cm]
enerEnergy of the ion.
eLossMaximum energy loss before reaction happens. Defaults to ener.

Definition at line 93 of file AtTPCIonGenerator.cxx.

◆ ~AtTPCIonGenerator()

virtual AtTPCIonGenerator::~AtTPCIonGenerator ( )
virtualdefault

Destructor

Member Function Documentation

◆ ReadEvent()

Bool_t AtTPCIonGenerator::ReadEvent ( FairPrimaryGenerator *  primGen)
virtual

Method ReadEvent Generates <mult> of the specified ions and hands hem to the FairPrimaryGenerator.

Definition at line 139 of file AtTPCIonGenerator.cxx.

◆ SetCharge()

void AtTPCIonGenerator::SetCharge ( Int_t  charge)
inline

Modifiers

Definition at line 77 of file AtTPCIonGenerator.h.

◆ SetDoReaction()

void AtTPCIonGenerator::SetDoReaction ( Bool_t  doReact)
inline

Definition at line 83 of file AtTPCIonGenerator.h.

◆ SetExcitationEnergy()

void AtTPCIonGenerator::SetExcitationEnergy ( Double_t  eExc)

Definition at line 113 of file AtTPCIonGenerator.cxx.

◆ SetMass()

void AtTPCIonGenerator::SetMass ( Double_t  mass)

Definition at line 117 of file AtTPCIonGenerator.cxx.

◆ SetSpotRadius()

void AtTPCIonGenerator::SetSpotRadius ( Double32_t  r = 0,
Double32_t  z = 0,
Double32_t  offx = 0,
Double32_t  offy = 0 
)

Definition at line 121 of file AtTPCIonGenerator.cxx.

◆ SetVertexCoordinates()

void AtTPCIonGenerator::SetVertexCoordinates ( )
protectedvirtual

Sets fVx, fVy, fVz depending on the type of ion generator.

Reimplemented in AtTPCIonGeneratorS800, and AtTPCIonGeneratorGaussian.

Definition at line 129 of file AtTPCIonGenerator.cxx.

Member Data Documentation

◆ fDoReact

Bool_t AtTPCIonGenerator::fDoReact {true}
protected

Definition at line 36 of file AtTPCIonGenerator.h.

◆ fgNIon

Int_t AtTPCIonGenerator::fgNIon = 0
staticprotected

Definition at line 24 of file AtTPCIonGenerator.h.

◆ fIon

FairIon* AtTPCIonGenerator::fIon
protected

Definition at line 31 of file AtTPCIonGenerator.h.

◆ fMaxEnLoss

Double_t AtTPCIonGenerator::fMaxEnLoss {}
protected

Definition at line 34 of file AtTPCIonGenerator.h.

◆ fMult

Int_t AtTPCIonGenerator::fMult
protected

Number of the instance of this class.

Definition at line 25 of file AtTPCIonGenerator.h.

◆ fNomEner

Int_t AtTPCIonGenerator::fNomEner {}
protected

Definition at line 33 of file AtTPCIonGenerator.h.

◆ fOffsetX

Double32_t AtTPCIonGenerator::fOffsetX
protected

Definition at line 28 of file AtTPCIonGenerator.h.

◆ fOffsetY

Double32_t AtTPCIonGenerator::fOffsetY
protected

Definition at line 28 of file AtTPCIonGenerator.h.

◆ fPx

Double_t AtTPCIonGenerator::fPx
protected

Definition at line 26 of file AtTPCIonGenerator.h.

◆ fPy

Double_t AtTPCIonGenerator::fPy
protected

Definition at line 26 of file AtTPCIonGenerator.h.

◆ fPz

Double_t AtTPCIonGenerator::fPz
protected

Definition at line 26 of file AtTPCIonGenerator.h.

◆ fQ

Int_t AtTPCIonGenerator::fQ
protected

Definition at line 32 of file AtTPCIonGenerator.h.

◆ fR

Double32_t AtTPCIonGenerator::fR
protected

Definition at line 28 of file AtTPCIonGenerator.h.

◆ fVx

Double_t AtTPCIonGenerator::fVx
protected

Definition at line 29 of file AtTPCIonGenerator.h.

◆ fVy

Double_t AtTPCIonGenerator::fVy
protected

Definition at line 29 of file AtTPCIonGenerator.h.

◆ fVz

Double_t AtTPCIonGenerator::fVz
protected

Definition at line 29 of file AtTPCIonGenerator.h.

◆ fz

Double32_t AtTPCIonGenerator::fz
protected

Definition at line 28 of file AtTPCIonGenerator.h.


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