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

The base class for detector simulation in er sim. More...

#include <ERDetector.h>

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

Public Member Functions

 ERDetector ()
 Default constructor.
 
 ERDetector (const char *Name, Bool_t Active, Int_t DetId=0)
 
virtual void ConstructGeometry ()
 
virtual TClonesArray * GetCollection (Int_t iColl) const
 Get array of ERNeuRadPoint. More...
 
void AddSensetive (TString name)
 Add sensetive volume name. Create new points collection.
 
virtual void Initialize ()
 Initialisation class method FairDetector::Initialize() is called. NeuRadGeoPar init from RuntimeDB Virtual from FairDetector.
 
virtual void Register ()
 Register output array (NeuRadPoint) to the I/O manager Abstract from FairDetector.
 
virtual Bool_t ProcessHits (FairVolume *vol=0)
 Virtual method Defines the action to be taken when a step is inside the active volume. Creates a ERNeuRadPoint and adds it to the collection. More...
 
virtual void EndOfEvent ()
 Action at end of event Short status log and Reset(). Virtual from FairDetector.
 
virtual void Print (Option_t *option="") const
 Screen log Prints NeuRadPoint information Virtual from TObject.
 
virtual void Reset ()
 Clears the point and steps collections Virtual from FairDetector.
 
virtual void CopyClones (TClonesArray *cl1, TClonesArray *cl2, Int_t offset)
 Copies the points collection with a given track index offset. More...
 
virtual Bool_t CheckIfSensitive (std::string name)
 Check whether a volume is sensitive. More...
 

Protected Attributes

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.
 

Private Member Functions

void StartNewPoint ()
 Start new point creation. Reinit current point data.
 
void FinishNewPoint ()
 Finish point creation. Call AddPoint()
 
ERPointAddPoint (TClonesArray *points)
 Adds a Point to the Point Collection.
 

Detailed Description

The base class for detector simulation in er sim.

Author
V.Schetinin sch_v.nosp@m.ital.nosp@m.iy@ma.nosp@m.il.r.nosp@m.u
Version
1.0

Definition at line 32 of file ERDetector.h.

Constructor & Destructor Documentation

ERDetector::ERDetector ( const char *  Name,
Bool_t  Active,
Int_t  DetId = 0 
)

constructor Name : Detector Name Active: kTRUE for active detectors (ProcessHits() will be called) kFALSE for inactive detectors

Definition at line 29 of file ERDetector.cxx.

Member Function Documentation

Bool_t ERDetector::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 (has to contain "Sensor"). Virtual from FairModule.

Reimplemented in ERNeuRad, ERGadast, ERTarget, ERTelescope, and ERBeamDet.

Definition at line 172 of file ERDetector.cxx.

void ERDetector::ConstructGeometry ( )
virtual

Virtaul method Construct geometry

Constructs the ERNeuRad geometry

Reimplemented in ERTarget, ERTelescope, and ERBeamDet.

Definition at line 37 of file ERDetector.cxx.

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

Copies the points collection with a given track index offset.

Parameters
cl1Origin
cl2Target
offsetIndex offset Virtual from FairDetector

Reimplemented in ERNeuRad, ERGadast, ERTarget, ERTelescope, and ERBeamDet.

Definition at line 156 of file ERDetector.cxx.

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

Get array of ERNeuRadPoint.

Parameters
iCollnumber of point collection
Returns
Pointer to ERNeuRadPoint array. NULL if iColl > 0.

Abstract from FairDetector.

Reimplemented in ERNeuRad, ERGadast, ERTarget, ERBeamDet, and ERTelescope.

Definition at line 60 of file ERDetector.cxx.

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

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

Parameters
volPointer to the active volume Virtual from FairDetector.

Track information to be stored until the track leaves the active volume.

Reimplemented in ERNeuRad, ERGadast, ERBeamDet, ERTelescope, and ERTarget.

Definition at line 87 of file ERDetector.cxx.


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