CbmRoot
|
Defines the active detector TRD. Constructs the geometry and registers MCPoints. More...
#include <CbmTrd.h>
Public Member Functions | |
CbmTrd () | |
Default constructor. | |
CbmTrd (const char *name, Bool_t active) | |
Standard constructor. | |
CbmTrd (const CbmTrd &)=delete | |
CbmTrd | operator= (const CbmTrd &)=delete |
virtual | ~CbmTrd () |
Destructor. | |
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. | |
virtual void | EndOfEvent () |
If verbosity level is set, print hit collection at the end of the event and resets it afterwards. | |
virtual void | Register () |
Registers the hit collection in the ROOT manager. | |
virtual TClonesArray * | GetCollection (Int_t iColl) const |
Accessor to the hit collection. | |
virtual void | Print (Option_t *="") const |
Screen output of hit collection. | |
virtual void | Reset () |
Clears the hit collection. | |
virtual void | CopyClones (TClonesArray *cl1, TClonesArray *cl2, Int_t offset) |
Copies the hit collection with a given track index offset. | |
virtual void | ConstructGeometry () |
Constructs the TRD geometry. | |
Bool_t | CheckIfSensitive (std::string name) |
virtual Bool_t | IsSensitive (const std::string &name) |
void | UseGlobalPhysicsProcesses (Bool_t use) |
void | SetTransformationMatrix (TGeoMatrix *mat) |
Private Member Functions | |
void | ResetParameters () |
Transformation matrix for geometry positioning. | |
virtual void | Initialize () |
virtual void | SetSpecialPhysicsCuts () |
virtual void | ConstructRootGeometry (TGeoMatrix *shift=NULL) |
ClassDef (CbmTrd, 10) | |
Private Attributes | |
TLorentzVector | fPosIn |
TLorentzVector | fMomIn |
position at entrance | |
TLorentzVector | fPosOut |
momentum at entrance | |
TLorentzVector | fMomOut |
position at exit | |
Double32_t | fTime |
momentum at exit | |
Double32_t | fLength |
time | |
Double32_t | fELoss |
length | |
Int_t | fPosIndex |
energy loss | |
TClonesArray * | fTrdPoints |
position index | |
CbmTrdGeoHandler * | fGeoHandler |
MC point collection. | |
Bool_t | fUseGlobalPhysicsProcesses |
Interface to gMC and gGeoManager. | |
TGeoMatrix * | fCombiTrans |
weather to follow the global switch for physics cuts for the TRDgas | |
Defines the active detector TRD. Constructs the geometry and registers MCPoints.
CbmTrd::CbmTrd | ( | ) |
Default constructor.
Definition at line 38 of file CbmTrd.cxx.
CbmTrd::CbmTrd | ( | const char * | name, |
Bool_t | active ) |
Standard constructor.
name | Detector name. |
active | Sensitivity flag |
Definition at line 59 of file CbmTrd.cxx.
|
delete |
|
virtual |
Bool_t CbmTrd::CheckIfSensitive | ( | std::string | name | ) |
Definition at line 335 of file CbmTrd.cxx.
References IsSensitive().
|
private |
|
virtual |
Constructs the TRD geometry.
Definition at line 300 of file CbmTrd.cxx.
References ConstructRootGeometry().
|
privatevirtual |
Definition at line 311 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 282 of file CbmTrd.cxx.
References fPosIndex.
|
virtual |
If verbosity level is set, print hit collection at the end of the event and resets it afterwards.
Definition at line 233 of file CbmTrd.cxx.
References fPosIndex, fTrdPoints, and Print().
|
virtual |
|
privatevirtual |
Definition at line 92 of file CbmTrd.cxx.
References fGeoHandler, and CbmTrdGeoHandler::Init().
|
virtual |
Definition at line 324 of file CbmTrd.cxx.
Referenced by CheckIfSensitive().
|
virtual |
Screen output of hit collection.
Definition at line 258 of file CbmTrd.cxx.
References fTrdPoints.
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 189 of file CbmTrd.cxx.
References CbmStack::AddPoint(), fELoss, fGeoHandler, fLength, fMomIn, fMomOut, fPosIn, fPosOut, fTime, fTrdPoints, CbmTrdGeoHandler::GetModuleAddress(), kTrd, ResetParameters(), and size().
|
virtual |
Registers the hit collection in the ROOT manager.
Definition at line 243 of file CbmTrd.cxx.
References fTrdPoints.
|
virtual |
Clears the hit collection.
Definition at line 273 of file CbmTrd.cxx.
References fTrdPoints, and ResetParameters().
|
inlineprivate |
|
privatevirtual |
Definition at line 105 of file CbmTrd.cxx.
References fUseGlobalPhysicsProcesses.
|
inline |
Definition at line 106 of file CbmTrd.h.
References fCombiTrans.
|
inline |
Definition at line 104 of file CbmTrd.h.
References fUseGlobalPhysicsProcesses.
|
private |
weather to follow the global switch for physics cuts for the TRDgas
Definition at line 125 of file CbmTrd.h.
Referenced by ConstructRootGeometry(), and SetTransformationMatrix().
|
private |
|
private |
MC point collection.
Definition at line 121 of file CbmTrd.h.
Referenced by Initialize(), ProcessHits(), and ~CbmTrd().
|
private |
|
private |
position at entrance
Definition at line 112 of file CbmTrd.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
position at exit
Definition at line 114 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 111 of file CbmTrd.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
energy loss
Definition at line 118 of file CbmTrd.h.
Referenced by CopyClones(), EndOfEvent(), and ResetParameters().
|
private |
momentum at entrance
Definition at line 113 of file CbmTrd.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
momentum at exit
Definition at line 115 of file CbmTrd.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
position index
Definition at line 120 of file CbmTrd.h.
Referenced by EndOfEvent(), GetCollection(), Print(), ProcessHits(), Register(), Reset(), and ~CbmTrd().
|
private |
Interface to gMC and gGeoManager.
Definition at line 123 of file CbmTrd.h.
Referenced by SetSpecialPhysicsCuts(), and UseGlobalPhysicsProcesses().