CbmRoot
|
Defines the active detector TRD. Constructs the geometry and registers MCPoints. More...
#include <CbmTrd.h>
Public Member Functions | |
CbmTrd () | |
Default constructor. More... | |
CbmTrd (const char *name, Bool_t active) | |
Standard constructor. More... | |
CbmTrd (const CbmTrd &)=delete | |
CbmTrd | operator= (const CbmTrd &)=delete |
virtual | ~CbmTrd () |
Destructor. More... | |
virtual Bool_t | ProcessHits (FairVolume *vol=NULL) |
Defines the action to be taken when a step is inside the active volume. Creates CbmTrdPoints and adds them to the collection. More... | |
virtual void | EndOfEvent () |
If verbosity level is set, print hit collection at the end of the event and resets it afterwards. More... | |
virtual void | Register () |
Registers the hit collection in the ROOT manager. More... | |
virtual TClonesArray * | GetCollection (Int_t iColl) const |
Accessor to the hit collection. More... | |
virtual void | Print (Option_t *="") const |
Screen output of hit collection. More... | |
virtual void | Reset () |
Clears the hit collection. More... | |
virtual void | CopyClones (TClonesArray *cl1, TClonesArray *cl2, Int_t offset) |
Copies the hit collection with a given track index offset. More... | |
virtual void | ConstructGeometry () |
Constructs the TRD geometry. More... | |
Bool_t | CheckIfSensitive (std::string name) |
void | UseGlobalPhysicsProcesses (Bool_t use) |
void | SetTransformationMatrix (TGeoMatrix *mat) |
Private Member Functions | |
void | ResetParameters () |
Transformation matrix for geometry positioning. More... | |
virtual void | Initialize () |
virtual void | SetSpecialPhysicsCuts () |
virtual void | ConstructRootGeometry (TGeoMatrix *shift=NULL) |
ClassDef (CbmTrd, 10) | |
Private Attributes | |
TLorentzVector | fPosIn |
TLorentzVector | fMomIn |
position at entrance More... | |
TLorentzVector | fPosOut |
momentum at entrance More... | |
TLorentzVector | fMomOut |
position at exit More... | |
Double32_t | fTime |
momentum at exit More... | |
Double32_t | fLength |
time More... | |
Double32_t | fELoss |
length More... | |
Int_t | fPosIndex |
energy loss More... | |
TClonesArray * | fTrdPoints |
position index More... | |
CbmTrdGeoHandler * | fGeoHandler |
MC point collection. More... | |
Bool_t | fUseGlobalPhysicsProcesses |
Interface to gMC and gGeoManager. More... | |
TGeoMatrix * | fCombiTrans |
weather to follow the global switch for physics cuts for the TRDgas More... | |
Defines the active detector TRD. Constructs the geometry and registers MCPoints.
CbmTrd::CbmTrd | ( | ) |
CbmTrd::CbmTrd | ( | const char * | name, |
Bool_t | active | ||
) |
Standard constructor.
name | Detector name. |
active | Sensitivity flag |
Definition at line 54 of file CbmTrd.cxx.
References kTrd.
|
delete |
|
virtual |
Bool_t CbmTrd::CheckIfSensitive | ( | std::string | name | ) |
Definition at line 315 of file CbmTrd.cxx.
|
private |
|
virtual |
Constructs the TRD geometry.
Definition at line 292 of file CbmTrd.cxx.
References ConstructRootGeometry().
|
privatevirtual |
Definition at line 304 of file CbmTrd.cxx.
References fCombiTrans, Cbm::GeometryUtils::ImportRootGeometry(), and Cbm::GeometryUtils::IsNewGeometryFile().
Referenced by ConstructGeometry().
|
virtual |
Copies the hit collection with a given track index offset.
cl1 | Origin. |
cl2 | Target. |
offset | Index offset. |
Definition at line 275 of file CbmTrd.cxx.
|
virtual |
If verbosity level is set, print hit collection at the end of the event and resets it afterwards.
Definition at line 227 of file CbmTrd.cxx.
References fPosIndex, fTrdPoints, and Print().
|
virtual |
|
privatevirtual |
Definition at line 85 of file CbmTrd.cxx.
References fGeoHandler, and CbmTrdGeoHandler::Init().
|
virtual |
Screen output of hit collection.
Definition at line 253 of file CbmTrd.cxx.
References fTrdPoints, and i.
Referenced by EndOfEvent().
|
virtual |
Defines the action to be taken when a step is inside the active volume. Creates CbmTrdPoints and adds them to the collection.
vol | Pointer to the active volume. |
Definition at line 177 of file CbmTrd.cxx.
References CbmStack::AddPoint(), fELoss, fGeoHandler, fLength, fMomIn, fMomOut, fPosIn, fPosOut, fTime, fTrdPoints, CbmTrdGeoHandler::GetModuleAddress(), kTrd, and ResetParameters().
|
virtual |
Registers the hit collection in the ROOT manager.
Definition at line 236 of file CbmTrd.cxx.
References fTrdPoints.
|
virtual |
Clears the hit collection.
Definition at line 267 of file CbmTrd.cxx.
References fTrdPoints, and ResetParameters().
|
inlineprivate |
|
privatevirtual |
Definition at line 97 of file CbmTrd.cxx.
References fUseGlobalPhysicsProcesses.
|
inline |
Definition at line 101 of file CbmTrd.h.
References fCombiTrans.
|
inline |
Definition at line 97 of file CbmTrd.h.
References fUseGlobalPhysicsProcesses.
|
private |
weather to follow the global switch for physics cuts for the TRDgas
Definition at line 121 of file CbmTrd.h.
Referenced by ConstructRootGeometry(), and SetTransformationMatrix().
|
private |
|
private |
MC point collection.
Definition at line 116 of file CbmTrd.h.
Referenced by Initialize(), ProcessHits(), and ~CbmTrd().
|
private |
|
private |
position at entrance
Definition at line 107 of file CbmTrd.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
position at exit
Definition at line 109 of file CbmTrd.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Track information to be stored until the track leaves the active volume.
Definition at line 106 of file CbmTrd.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
energy loss
Definition at line 113 of file CbmTrd.h.
Referenced by CopyClones(), EndOfEvent(), and ResetParameters().
|
private |
momentum at entrance
Definition at line 108 of file CbmTrd.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
momentum at exit
Definition at line 110 of file CbmTrd.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
position index
Definition at line 115 of file CbmTrd.h.
Referenced by EndOfEvent(), GetCollection(), Print(), ProcessHits(), Register(), Reset(), and ~CbmTrd().
|
private |
Interface to gMC and gGeoManager.
Definition at line 119 of file CbmTrd.h.
Referenced by SetSpecialPhysicsCuts(), and UseGlobalPhysicsProcesses().