er  dev
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ERBeamDet Class Reference

Class for the MC transport of the BeamDet. More...

#include <ERBeamDet.h>

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

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

ERBeamDetTOFPointAddTOFPoint ()
 Adds a ERBeamDetToFPoint to the ToFPoints Collection.
 
ERBeamDetMWPCPointAddMWPCPoint ()
 Adds a ERBeamDetMWPCPoint to the MWPCPoints Collection.
 
ERBeamDetTargetPointAddTargetPoint ()
 Adds a ERBeamDetTargetPoint to the TargetPoints Collection.
 
 ClassDef (ERBeamDet, 1)
 

Private Attributes

ERBeamDetSetupfSetup = 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.
 

Detailed Description

Class for the MC transport of the BeamDet.

Author
M.Kozlov kozlo.nosp@m.v.m..nosp@m.your@.nosp@m.yand.nosp@m.ex.ru
Version
1.0

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.

Constructor & Destructor Documentation

ERBeamDet::ERBeamDet ( const char *  name,
Bool_t  active,
Int_t  verbose 
)

Standard constructor.

Parameters
nameERBeamDet ERBeamDet name
activesensitivity flag
verboseVerbosity level. 1 - only standart logs, 2 - Print points after each event, 3 - GEANT Step information

Definition at line 32 of file ERBeamDet.cxx.

Member Function Documentation

Bool_t ERBeamDet::CheckIfSensitive ( std::string  name)
virtual

Check whether a volume is sensitive.

Parameters
nameVolume 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.

void ERBeamDet::CopyClones ( TClonesArray *  cl1,
TClonesArray *  cl2,
Int_t  offset 
)
virtual

Copies the hit collection with a given track index offset.

Parameters
cl1Origin
cl2Target
offsetIndex offset Virtual from FairDetector.

Reimplemented from ERDetector.

Definition at line 117 of file ERBeamDet.cxx.

Bool_t ERBeamDet::ProcessHits ( FairVolume *  vol = 0)
virtual

Defines the action to be taken when a step is inside the active volume. Creates a ERBeamDetPoint and adds it to the collection.

Parameters
volPointer to the active volume

Reimplemented from ERDetector.

Definition at line 188 of file ERBeamDet.cxx.


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