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) |
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 () |
Bool_t | CheckIfSensitive (std::string name) |
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 More... | |
TLorentzVector | fPos |
volume id More... | |
TLorentzVector | fMom |
position More... | |
Double32_t | fTime |
momentum More... | |
Double32_t | fLength |
time More... | |
Double32_t | fELoss |
length More... | |
Int_t | fPosIndex |
energy loss More... | |
TClonesArray * | fTofCollection |
CbmTofGeoHandler * | fGeoHandler |
Hit collection. More... | |
TGeoCombiTrans * | fCombiTrans |
Interface to gMC and gGeoManager. More... | |
std::string | fVolumeName |
Transformation matrix for geometry positioning. More... | |
Bool_t | fbOnePointPerTrack |
Name of Volume to be imported. More... | |
Bool_t | fbIsNewTrack |
TString | fTofNodePath |
TString | fCurrentNodePath |
Path to physical ToF node. More... | |
Int_t | fCurrentModuleType |
Path to current physical node. More... | |
Int_t | fCurrentModuleIndex |
Current module type. More... | |
Int_t | fCurrentCounterIndex |
Current module index. More... | |
std::set< std::tuple< Int_t, Int_t, Int_t > > | fActiveCounters |
Current counter index. More... | |
std::set< std::tuple< Int_t, Int_t, Int_t > > | fInactiveCounters |
Set of active counters. More... | |
std::set< Int_t > | fInactiveCounterIDs |
Set of inactive counters. More... | |
std::map< std::tuple< Int_t, Int_t, Int_t >, std::pair< TString, TGeoPhysicalNode * > > | fCountersInBeam |
Set of inactive counter IDs. More... | |
Int_t | fOutputTreeEntry |
Map of counters in beam. More... | |
Bool_t | fbProcessAnyTrack |
Bool_t | fbAllCountersInactive |
CbmTof::CbmTof | ( | ) |
Default constructor
Definition at line 38 of file CbmTof.cxx.
CbmTof::CbmTof | ( | const char * | name, |
Bool_t | active | ||
) |
Standard constructor.
name | detetcor name |
active | sensitivity flag |
Definition at line 72 of file CbmTof.cxx.
|
virtual |
Destructor
Definition at line 106 of file CbmTof.cxx.
References fCountersInBeam, fGeoHandler, and fTofCollection.
|
private |
|
private |
Private method AddHit
Adds a CbmTofPoint to the HitCollection
Definition at line 593 of file CbmTof.cxx.
References fTofCollection, and pos.
Referenced by ProcessHits().
|
private |
Definition at line 571 of file CbmTof.cxx.
References fCurrentCounterIndex, fCurrentModuleIndex, fCurrentModuleType, and fInactiveCounters.
|
virtual |
Virtual method Construct geometry
Constructs the TOF geometry
Definition at line 511 of file CbmTof.cxx.
References ConstructRootGeometry(), and CreateInBeamNodes().
|
privatevirtual |
Definition at line 522 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 496 of file CbmTof.cxx.
|
private |
Definition at line 562 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 449 of file CbmTof.cxx.
References fPosIndex, fTofCollection, and Print().
|
virtual |
Definition at line 161 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 117 of file CbmTof.h.
References fbOnePointPerTrack.
|
virtual |
Accessor to the hit collection
Definition at line 466 of file CbmTof.cxx.
References fTofCollection.
|
virtual |
Do all initilization for the TOF detector
Definition at line 119 of file CbmTof.cxx.
References fActiveCounters, fbOnePointPerTrack, fGeoHandler, fInactiveCounterIDs, fInactiveCounters, CbmTofGeoHandler::GetDetIdPointer(), CbmTofGeoHandler::Init(), kTof, and CbmTofDetectorId::SetDetectorInfo().
|
virtual |
Definition at line 157 of file CbmTof.cxx.
References fbIsNewTrack, and fbOnePointPerTrack.
|
virtual |
Virtual method Print
Screen output of hit collection.
Definition at line 476 of file CbmTof.cxx.
References fTofCollection, and i.
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 292 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 458 of file CbmTof.cxx.
References fTofCollection.
|
virtual |
Virtual method Reset
Clears the hit collection
Definition at line 488 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 533 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 543 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 553 of file CbmTof.cxx.
References fCountersInBeam.
|
inline |
Definition at line 120 of file CbmTof.h.
References fbProcessAnyTrack.
|
private |
Current counter index.
Definition at line 184 of file CbmTof.h.
Referenced by Initialize(), and SetCounterActive().
|
private |
Definition at line 197 of file CbmTof.h.
Referenced by SetAllCountersInactive().
|
private |
Definition at line 175 of file CbmTof.h.
Referenced by PreTrack(), and ProcessHits().
|
private |
Name of Volume to be imported.
Definition at line 174 of file CbmTof.h.
Referenced by FinishEvent(), GenerateOnePointPerTrack(), Initialize(), PreTrack(), and ProcessHits().
|
private |
Definition at line 195 of file CbmTof.h.
Referenced by ProcessHits(), and SetProcessAnyTrack().
|
private |
Interface to gMC and gGeoManager.
Definition at line 170 of file CbmTof.h.
Referenced by ConstructRootGeometry().
|
private |
Set of inactive counter IDs.
Definition at line 191 of file CbmTof.h.
Referenced by CreateInBeamNodes(), FinishEvent(), SetCounterInBeam(), and ~CbmTof().
|
private |
|
private |
|
private |
Path to current physical node.
Definition at line 179 of file CbmTof.h.
Referenced by CheckIfSensitive().
|
private |
|
private |
|
private |
Hit collection.
Definition at line 167 of file CbmTof.h.
Referenced by FinishEvent(), Initialize(), ProcessHits(), and ~CbmTof().
|
private |
Set of inactive counters.
Definition at line 187 of file CbmTof.h.
Referenced by Initialize(), and ProcessHits().
|
private |
Set of active counters.
Definition at line 186 of file CbmTof.h.
Referenced by CheckIfSensitive(), Initialize(), and SetCounterInactive().
|
private |
|
private |
position
Definition at line 160 of file CbmTof.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Map of counters in beam.
Definition at line 193 of file CbmTof.h.
Referenced by FinishEvent(), and ProcessHits().
|
private |
volume id
Definition at line 159 of file CbmTof.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
energy loss
Definition at line 165 of file CbmTof.h.
Referenced by CopyClones(), EndOfEvent(), and ResetParameters().
|
private |
momentum
Definition at line 161 of file CbmTof.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 166 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 157 of file CbmTof.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
track index
Definition at line 158 of file CbmTof.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |