CbmRoot
|
#include <CbmTof.h>
Public Member Functions | |
CbmTof () | |
CbmTof (const char *name, Bool_t active) | |
virtual | ~CbmTof () |
virtual void | PreTrack () |
virtual void | FinishEvent () |
virtual Bool_t | ProcessHits (FairVolume *vol=0) |
virtual void | EndOfEvent () |
virtual void | Register () |
virtual TClonesArray * | GetCollection (Int_t iColl) const |
virtual void | Print (Option_t *="") const |
virtual void | Reset () |
virtual void | CopyClones (TClonesArray *cl1, TClonesArray *cl2, Int_t offset) |
virtual void | ConstructGeometry () |
virtual void | Initialize () |
void | GenerateOnePointPerTrack (Bool_t bOnePointPerTrack=kTRUE) |
void | SetProcessAnyTrack (Bool_t bProcess=kTRUE) |
void | SetAllCountersInactive (Bool_t bInactive=kTRUE) |
void | SetCounterActive (Int_t iModuleType, Int_t iModuleIndex, Int_t iCounterIndex) |
void | SetCounterInactive (Int_t iModuleType, Int_t iModuleIndex, Int_t iCounterIndex) |
void | SetCounterInBeam (Int_t iModuleType, Int_t iModuleIndex, Int_t iCounterIndex) |
Bool_t | CheckIfSensitive (std::string name) |
virtual Bool_t | IsSensitive (const std::string &name) |
Private Member Functions | |
CbmTofPoint * | AddHit (Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t time, Double_t length, Double_t eLoss) |
void | ResetParameters () |
virtual void | ConstructRootGeometry (TGeoMatrix *shift=NULL) |
void | CreateInBeamNodes () |
CbmTof (const CbmTof &) | |
CbmTof & | operator= (const CbmTof &) |
Private Attributes | |
Int_t | fTrackID |
Int_t | fVolumeID |
track index | |
TLorentzVector | fPos |
volume id | |
TLorentzVector | fMom |
position | |
Double32_t | fTime |
momentum | |
Double32_t | fLength |
time | |
Double32_t | fELoss |
length | |
Int_t | fPosIndex |
energy loss | |
TClonesArray * | fTofCollection |
CbmTofGeoHandler * | fGeoHandler |
Hit collection. | |
TGeoCombiTrans * | fCombiTrans |
Interface to gMC and gGeoManager. | |
std::string | fVolumeName |
Transformation matrix for geometry positioning. | |
Bool_t | fbOnePointPerTrack |
Name of Volume to be imported. | |
Bool_t | fbIsNewTrack |
TString | fTofNodePath |
TString | fCurrentNodePath |
Path to physical ToF node. | |
Int_t | fCurrentModuleType |
Path to current physical node. | |
Int_t | fCurrentModuleIndex |
Current module type. | |
Int_t | fCurrentCounterIndex |
Current module index. | |
std::set< std::tuple< Int_t, Int_t, Int_t > > | fActiveCounters |
Current counter index. | |
std::set< std::tuple< Int_t, Int_t, Int_t > > | fInactiveCounters |
Set of active counters. | |
std::set< Int_t > | fInactiveCounterIDs |
Set of inactive counters. | |
std::map< std::tuple< Int_t, Int_t, Int_t >, std::pair< TString, TGeoPhysicalNode * > > | fCountersInBeam |
Set of inactive counter IDs. | |
Int_t | fOutputTreeEntry |
Map of counters in beam. | |
Bool_t | fbProcessAnyTrack |
Bool_t | fbAllCountersInactive |
CbmTof::CbmTof | ( | ) |
Default constructor
Definition at line 43 of file CbmTof.cxx.
CbmTof::CbmTof | ( | const char * | name, |
Bool_t | active ) |
Standard constructor.
name | detetcor name |
active | sensitivity flag |
Definition at line 78 of file CbmTof.cxx.
|
virtual |
Destructor
Definition at line 113 of file CbmTof.cxx.
References fCountersInBeam, fGeoHandler, and fTofCollection.
|
private |
|
private |
Private method AddHit
Adds a CbmTofPoint to the HitCollection
Definition at line 572 of file CbmTof.cxx.
References fTofCollection, pos, and size().
Referenced by ProcessHits().
Bool_t CbmTof::CheckIfSensitive | ( | std::string | name | ) |
Definition at line 566 of file CbmTof.cxx.
References IsSensitive().
|
virtual |
Virtual method Construct geometry
Constructs the TOF geometry
Definition at line 488 of file CbmTof.cxx.
References ConstructRootGeometry(), and CreateInBeamNodes().
|
privatevirtual |
Definition at line 501 of file CbmTof.cxx.
References fCombiTrans, Cbm::GeometryUtils::ImportRootGeometry(), and Cbm::GeometryUtils::IsNewGeometryFile().
Referenced by ConstructGeometry().
|
virtual |
Virtual method CopyClones
Copies the hit collection with a given track index offset
cl1 | Origin |
cl2 | Target |
offset | Index offset |
Definition at line 472 of file CbmTof.cxx.
References fPosIndex.
|
private |
Definition at line 538 of file CbmTof.cxx.
References fCountersInBeam.
Referenced by ConstructGeometry().
|
virtual |
Virtual method EndOfEvent
If verbosity level is set, print hit collection at the end of the event and resets it afterwards.
Definition at line 425 of file CbmTof.cxx.
References fPosIndex, fTofCollection, and Print().
|
virtual |
Definition at line 166 of file CbmTof.cxx.
References fbOnePointPerTrack, fCountersInBeam, fGeoHandler, fOutputTreeEntry, fTofCollection, CbmTofGeoHandler::GetDetIdPointer(), CbmTofPoint::GetNCells(), kTof, CbmTofDetectorId::SetDetectorInfo(), CbmTofPoint::SetNCells(), CbmTofPoint::SetPx(), CbmTofPoint::SetPy(), and CbmTofPoint::SetPz().
|
inline |
Definition at line 121 of file CbmTof.h.
References fbOnePointPerTrack.
|
virtual |
Accessor to the hit collection
Definition at line 440 of file CbmTof.cxx.
References fTofCollection.
|
virtual |
Do all initilization for the TOF detector
Definition at line 127 of file CbmTof.cxx.
References fActiveCounters, fbOnePointPerTrack, fGeoHandler, fInactiveCounterIDs, fInactiveCounters, CbmTofGeoHandler::GetDetIdPointer(), CbmTofGeoHandler::Init(), kTof, and CbmTofDetectorId::SetDetectorInfo().
|
virtual |
Definition at line 547 of file CbmTof.cxx.
References fCurrentCounterIndex, fCurrentModuleIndex, fCurrentModuleType, and fInactiveCounters.
Referenced by CheckIfSensitive().
|
virtual |
Definition at line 161 of file CbmTof.cxx.
References fbIsNewTrack, and fbOnePointPerTrack.
|
virtual |
Virtual method Print
Screen output of hit collection.
Definition at line 450 of file CbmTof.cxx.
References fTofCollection.
Referenced by EndOfEvent().
|
virtual |
Virtual method ProcessHits
Defines the action to be taken when a step is inside the active volume. Creates CbmTofPoints and adds them to the collection.
vol | Pointer to the active volume |
Definition at line 281 of file CbmTof.cxx.
References AddHit(), CbmStack::AddPoint(), fbIsNewTrack, fbOnePointPerTrack, fbProcessAnyTrack, fELoss, fGeoHandler, fInactiveCounterIDs, fLength, fMom, fOutputTreeEntry, fPos, fTime, fTofCollection, fTrackID, fVolumeID, CbmTofGeoHandler::GetCell(), CbmTofGeoHandler::GetCounter(), CbmTofGeoHandler::GetDetSystemId(), CbmTofGeoHandler::GetGap(), CbmTofPoint::GetNCells(), CbmTofGeoHandler::GetSModule(), CbmTofGeoHandler::GetSMType(), CbmTofGeoHandler::GetUniqueCounterId(), CbmTofGeoHandler::GetUniqueDetectorId(), kTof, ResetParameters(), CbmTofPoint::SetGap(), CbmTofPoint::SetNCells(), CbmTofPoint::SetPx(), CbmTofPoint::SetPy(), and CbmTofPoint::SetPz().
|
virtual |
Virtual method Register
Registers the hit collection in the ROOT manager.
Definition at line 435 of file CbmTof.cxx.
References fTofCollection.
|
virtual |
Virtual method Reset
Clears the hit collection
Definition at line 463 of file CbmTof.cxx.
References fTofCollection, and ResetParameters().
|
inlineprivate |
|
inline |
Definition at line 123 of file CbmTof.h.
References fbAllCountersInactive.
void CbmTof::SetCounterActive | ( | Int_t | iModuleType, |
Int_t | iModuleIndex, | ||
Int_t | iCounterIndex ) |
Definition at line 514 of file CbmTof.cxx.
References fActiveCounters.
void CbmTof::SetCounterInactive | ( | Int_t | iModuleType, |
Int_t | iModuleIndex, | ||
Int_t | iCounterIndex ) |
Set a counter inactive
iModuleType | type of inactive module |
iModuleIndex | index of inactive module |
iCounterIndex | index of inactive counter |
If a counter is set inactive, no CbmTofPoint objects will be created for collision products traversing its Cell volumes.
Definition at line 522 of file CbmTof.cxx.
References fInactiveCounters.
void CbmTof::SetCounterInBeam | ( | Int_t | iModuleType, |
Int_t | iModuleIndex, | ||
Int_t | iCounterIndex ) |
Set a counter in beam
iModuleType | type of inactive module |
iModuleIndex | index of inactive module |
iCounterIndex | index of inactive counter |
If a counter is set in beam, the beam line will be extrapolated to the counter coordinate system and create a CbmTofPoint object if it actually traverses the counter volume.
Definition at line 530 of file CbmTof.cxx.
References fCountersInBeam.
|
inline |
Definition at line 122 of file CbmTof.h.
References fbProcessAnyTrack.
|
private |
Current counter index.
Definition at line 179 of file CbmTof.h.
Referenced by Initialize(), and SetCounterActive().
|
private |
Definition at line 190 of file CbmTof.h.
Referenced by SetAllCountersInactive().
|
private |
Definition at line 171 of file CbmTof.h.
Referenced by PreTrack(), and ProcessHits().
|
private |
Name of Volume to be imported.
Definition at line 170 of file CbmTof.h.
Referenced by FinishEvent(), GenerateOnePointPerTrack(), Initialize(), PreTrack(), and ProcessHits().
|
private |
Definition at line 188 of file CbmTof.h.
Referenced by ProcessHits(), and SetProcessAnyTrack().
|
private |
Interface to gMC and gGeoManager.
Definition at line 166 of file CbmTof.h.
Referenced by ConstructRootGeometry().
|
private |
Set of inactive counter IDs.
Definition at line 184 of file CbmTof.h.
Referenced by CreateInBeamNodes(), FinishEvent(), SetCounterInBeam(), and ~CbmTof().
|
private |
|
private |
|
private |
Path to current physical node.
Definition at line 175 of file CbmTof.h.
Referenced by IsSensitive().
|
private |
|
private |
|
private |
Hit collection.
Definition at line 164 of file CbmTof.h.
Referenced by FinishEvent(), Initialize(), ProcessHits(), and ~CbmTof().
|
private |
Set of inactive counters.
Definition at line 181 of file CbmTof.h.
Referenced by Initialize(), and ProcessHits().
|
private |
Set of active counters.
Definition at line 180 of file CbmTof.h.
Referenced by Initialize(), IsSensitive(), and SetCounterInactive().
|
private |
|
private |
position
Definition at line 157 of file CbmTof.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Map of counters in beam.
Definition at line 186 of file CbmTof.h.
Referenced by FinishEvent(), and ProcessHits().
|
private |
volume id
Definition at line 156 of file CbmTof.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
energy loss
Definition at line 162 of file CbmTof.h.
Referenced by CopyClones(), EndOfEvent(), and ResetParameters().
|
private |
momentum
Definition at line 158 of file CbmTof.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 163 of file CbmTof.h.
Referenced by AddHit(), EndOfEvent(), FinishEvent(), GetCollection(), Print(), ProcessHits(), Register(), Reset(), and ~CbmTof().
|
private |
Track information to be stored until the track leaves the active volume.
Definition at line 154 of file CbmTof.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
track index
Definition at line 155 of file CbmTof.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |