er
dev
|
Class for the MC transport of the BeamDet. More...
#include <ERBeamDet.h>
Public Member Functions | |
ERBeamDet () | |
Default constructor. | |
ERBeamDet (const char *name, Bool_t active, Int_t verbose) | |
Standard constructor. More... | |
virtual | ~ERBeamDet () |
Destructor. | |
void | SetIonName (const TString &ionName) |
void | SetIonPID (int ionPID) |
virtual Bool_t | ProcessHits (FairVolume *vol=0) |
Defines the action to be taken when a step is inside the active volume. Creates a ERBeamDetPoint and adds it to the collection. More... | |
virtual void | EndOfEvent () |
If verbosity level is set, print point collection at the end of the event. Virtual from FairDetector. | |
virtual void | Register () |
Registers the point collection in the ROOT manager. Virtual from FairDetector. | |
virtual TClonesArray * | GetCollection (Int_t iColl) const |
Accessor to the point collection . Abstract from FairDetector. | |
virtual void | Print (Option_t *option="") const |
Screen output of hit collection. Virtual from TObject. | |
virtual void | Reset () |
Clears the point collection. Virtual from FairDetector. | |
virtual void | CopyClones (TClonesArray *cl1, TClonesArray *cl2, Int_t offset) |
Copies the hit collection with a given track index offset. More... | |
virtual void | Initialize () |
Initialize ERBeamDet data. Abstract from FairDetector. | |
virtual Bool_t | CheckIfSensitive (std::string name) |
Check whether a volume is sensitive. More... | |
virtual void | ConstructGeometry () |
Builds geometry and writes it to temporary file trough parameters from ERBeamDetSetup class object. Virtual from FairDetector. | |
Public Member Functions inherited from ERDetector | |
ERDetector () | |
Default constructor. | |
ERDetector (const char *Name, Bool_t Active, Int_t DetId=0) | |
void | AddSensetive (TString name) |
Add sensetive volume name. Create new points collection. | |
Private Member Functions | |
ERBeamDetTOFPoint * | AddTOFPoint () |
Adds a ERBeamDetToFPoint to the ToFPoints Collection. | |
ERBeamDetMWPCPoint * | AddMWPCPoint () |
Adds a ERBeamDetMWPCPoint to the MWPCPoints Collection. | |
ERBeamDetTargetPoint * | AddTargetPoint () |
Adds a ERBeamDetTargetPoint to the TargetPoints Collection. | |
ClassDef (ERBeamDet, 1) | |
Private Attributes | |
ERBeamDetSetup * | fSetup = nullptr |
TClonesArray * | fToFPoints = nullptr |
The ToFPoint collection. | |
TClonesArray * | fMWPCPoints = nullptr |
The MWPCPoint collection. | |
TClonesArray * | fTargetPoints = nullptr |
The TargetPoint collection. | |
Int_t | fEventID = -1 |
event index | |
Int_t | fTrackID = -1 |
track index | |
Int_t | Mot0TrackID = -1 |
Int_t | fPID = -1 |
particle PDG | |
TLorentzVector | fPosIn |
point start position | |
TLorentzVector | fPosOut |
point finish position | |
TLorentzVector | fMomIn |
point start momentum | |
TLorentzVector | fMomOut |
point finish momentum | |
Double32_t | fTime = 0. |
point start time | |
Double32_t | fLength = 0. |
length | |
Double32_t | ELoss = 0. |
energy loss | |
Double32_t | fLightYield = 0. |
light yield | |
Int_t | fToFNb = -1 |
ToF plastic number. | |
Int_t | fMWPCNb = -1 |
MWPC station number. | |
Int_t | fMWPCPlaneNb = -1 |
gas strip array number in MWPC station | |
Int_t | fMWPCWireNb = -1 |
wire number in gas strip array | |
Bool_t | fSensitiveTargetIsSet = kFALSE |
TString | fIonName |
Int_t | fIonPID = -1 |
Bool_t | fIonPIDIsSet = kFALSE |
Additional Inherited Members | |
Protected Attributes inherited from ERDetector | |
std::map< TString, TClonesArray * > | fSenVolumes |
std::vector< TString > | fSenNames |
Sensetive volumes sustring, that user set. | |
Int_t | fVerbose |
Verbosity level. | |
Float_t | fFullEnergy |
Sum Edep in event in sensetive volume. | |
Float_t | fFullLY |
Sum Light Yield in event in sensetive volume. | |
Int_t | fEventID |
event index | |
Int_t | fTrackID |
track index | |
Int_t | fMot0TrackID |
0th mother track index | |
Double_t | fMass |
mass | |
TLorentzVector | fPosIn |
point start position | |
TLorentzVector | fPosOut |
point finish position | |
TLorentzVector | fCurPosIn |
current step position | |
TVector3 | fPosInLocal |
point position in sensetive volume CS | |
TLorentzVector | fMomIn |
point start momentum | |
TLorentzVector | fMomOut |
point start momentum | |
TLorentzVector | fCurMomIn |
current step momentum | |
Double32_t | fTimeIn |
point start time | |
Double32_t | fTimeOut |
point finish time | |
Double32_t | fTrackLength |
track length from his origin | |
Double32_t | fELoss |
energy loss | |
Double_t | fLightYield |
light yield | |
Int_t | fVolNb |
number of fiber in pixel | |
ExpertTrackingStatus | fTrackStatus |
curren track stutus (transport, stop, disappeared, ...) | |
TArrayI | fProcessesID |
VMC prcess IDs in step. | |
Class for the MC transport of the BeamDet.
The ERBeamDet defines the behaviour of the BeamDet system during transport simulation. It constructs the BeamDet transport geometry and creates objects of type ERBeamDetMWPCPoints, ERBeamDetToFPoints and ERBeamDetTargetPoints.
Definition at line 31 of file ERBeamDet.h.
ERBeamDet::ERBeamDet | ( | const char * | name, |
Bool_t | active, | ||
Int_t | verbose | ||
) |
Standard constructor.
name | ERBeamDet ERBeamDet name |
active | sensitivity flag |
verbose | Verbosity level. 1 - only standart logs, 2 - Print points after each event, 3 - GEANT Step information |
Definition at line 32 of file ERBeamDet.cxx.
|
virtual |
Check whether a volume is sensitive.
name | Volume name kTRUE if volume is sensitive, else kFALSE The decision is based on the volume name. Virtual from FairModule. |
Reimplemented from ERDetector.
Definition at line 167 of file ERBeamDet.cxx.
|
virtual |
Copies the hit collection with a given track index offset.
cl1 | Origin |
cl2 | Target |
offset | Index offset Virtual from FairDetector. |
Reimplemented from ERDetector.
Definition at line 117 of file ERBeamDet.cxx.
|
virtual |
Defines the action to be taken when a step is inside the active volume. Creates a ERBeamDetPoint and adds it to the collection.
vol | Pointer to the active volume |
Reimplemented from ERDetector.
Definition at line 188 of file ERBeamDet.cxx.