er  dev
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
ERTelescope Class Reference
Inheritance diagram for ERTelescope:
Inheritance graph
[legend]
Collaboration diagram for ERTelescope:
Collaboration graph
[legend]

Public Member Functions

 ERTelescope ()
 
 ERTelescope (const char *name, Bool_t active, Int_t verbose)
 
virtual ~ERTelescope ()
 
virtual Bool_t ProcessHits (FairVolume *vol=0)
 
virtual void BeginEvent ()
 
virtual void EndOfEvent ()
 
virtual void Register ()
 
virtual TClonesArray * GetCollection (Int_t iColl) const
 
virtual void Print (Option_t *option="") const
 
virtual void Reset ()
 
virtual void CopyClones (TClonesArray *cl1, TClonesArray *cl2, Int_t offset)
 
virtual void Initialize ()
 
virtual void ConstructGeometry ()
 Builds geometry and writes it to temporary file trough parameters from ERBeamDetSetup class object. Virtual from FairDetector.
 
virtual Bool_t CheckIfSensitive (std::string name)
 
void SetGeomVersion (Int_t vers)
 
- 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 Types

using BranchName = TString
 
using ComponentPoints = std::map< BranchName, TClonesArray * >
 
using PointsPerComponent = std::map< TString, ComponentPoints >
 

Private Member Functions

void AddPoint (TClonesArray &clref)
 
void ResetParameters ()
 
 ClassDef (ERTelescope, 1)
 

Private Attributes

ERTelescopeSetupfQTelescopeSetup = nullptr
 
PointsPerComponent fPoints
 
Int_t fVersion = -1
 
Int_t fEventID = -1
 geometry version
 
Int_t fTrackID = -2
 event index
 
Int_t fMot0TrackID = -2
 track index
 
Double_t fMass = 0.
 0th mother track index
 
TLorentzVector fPosIn
 mass
 
TLorentzVector fPosOut
 
TLorentzVector fMomIn
 position
 
TLorentzVector fMomOut
 
Double32_t fTime = 0.
 momentum
 
Double32_t fLength = 0.
 time
 
Double32_t fEloss = 0.
 length
 
Int_t fChannel = -1
 energy loss
 
Int_t fPDG = -1
 

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

Definition at line 21 of file ERTelescope.h.

Constructor & Destructor Documentation

ERTelescope::ERTelescope ( )

Default constructor

Definition at line 25 of file ERTelescope.cxx.

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

Standard constructor.

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

Definition at line 36 of file ERTelescope.cxx.

ERTelescope::~ERTelescope ( )
virtual

Destructor

Definition at line 47 of file ERTelescope.cxx.

Member Function Documentation

void ERTelescope::AddPoint ( TClonesArray &  clref)
private

Private method AddPoint

Adds a telescope to the Point Collection

Definition at line 63 of file ERTelescope.cxx.

void ERTelescope::BeginEvent ( )
virtual

Virtual method BeginEvent

Definition at line 123 of file ERTelescope.cxx.

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

Virtaul method CheckIfSensitive Check whether a volume is sensitive.

Parameters

Reimplemented from ERDetector.

Definition at line 203 of file ERTelescope.cxx.

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

Virtual method CopyClones

Copies the hit collection with a given track index offset

Parameters
cl1Origin
cl2Target
offsetIndex offset

Reimplemented from ERDetector.

Definition at line 186 of file ERTelescope.cxx.

void ERTelescope::EndOfEvent ( )
virtual

Virtual method EndOfEvent

If verbosity level is set, print point collection at the end of the event.

Reimplemented from ERDetector.

Definition at line 126 of file ERTelescope.cxx.

TClonesArray * ERTelescope::GetCollection ( Int_t  iColl) const
virtual

Accessor to the point collection

Reimplemented from ERDetector.

Definition at line 150 of file ERTelescope.cxx.

void ERTelescope::Initialize ( )
virtual

Virtaul method Initialize

Initialize ERTelescope data

Reimplemented from ERDetector.

Definition at line 59 of file ERTelescope.cxx.

void ERTelescope::Print ( Option_t *  option = "") const
virtual

Virtual method Print

Screen output of hit collection.

Reimplemented from ERDetector.

Definition at line 159 of file ERTelescope.cxx.

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

Virtual method ProcessHits

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

Parameters
volPointer to the active volume

Reimplemented from ERDetector.

Definition at line 87 of file ERTelescope.cxx.

void ERTelescope::Register ( )
virtual

Virtual method Register

Registers the point collection in the ROOT manager.

Reimplemented from ERDetector.

Definition at line 133 of file ERTelescope.cxx.

void ERTelescope::Reset ( )
virtual

Virtual method Reset

Clears the point collection

Reimplemented from ERDetector.

Definition at line 177 of file ERTelescope.cxx.

void ERTelescope::ResetParameters ( )
private

Private method ResetParameters

Resets the private members for the track parameters

Definition at line 211 of file ERTelescope.cxx.

void ERTelescope::SetGeomVersion ( Int_t  vers)
inline

Virtaul method SetGeomVersion

Definition at line 100 of file ERTelescope.h.


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