Go to the documentation of this file.
18 #include "FairDetector.h"
20 #include "TLorentzVector.h"
33 class TGeoPhysicalNode;
46 CbmTof(
const char* name, Bool_t active);
88 virtual void Print(Option_t* =
"")
const;
105 virtual void CopyClones(TClonesArray* cl1, TClonesArray* cl2, Int_t offset);
128 SetCounterActive(Int_t iModuleType, Int_t iModuleIndex, Int_t iCounterIndex);
140 Int_t iCounterIndex);
152 SetCounterInBeam(Int_t iModuleType, Int_t iModuleIndex, Int_t iCounterIndex);
183 std::set<std::tuple<Int_t, Int_t, Int_t>>
185 std::set<std::tuple<Int_t, Int_t, Int_t>>
189 std::map<std::tuple<Int_t, Int_t, Int_t>,
190 std::pair<TString, TGeoPhysicalNode*>>
233 fPos.SetXYZM(0.0, 0.0, 0.0, 0.0);
234 fMom.SetXYZM(0.0, 0.0, 0.0, 0.0);
virtual TClonesArray * GetCollection(Int_t iColl) const
void SetProcessAnyTrack(Bool_t bProcess=kTRUE)
std::set< Int_t > fInactiveCounterIDs
Set of inactive counters.
CbmTofPoint * AddHit(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t time, Double_t length, Double_t eLoss)
Int_t fOutputTreeEntry
Map of counters in beam.
TClonesArray * fTofCollection
Int_t fCurrentModuleType
Path to current physical node.
virtual Bool_t ProcessHits(FairVolume *vol=0)
void SetCounterActive(Int_t iModuleType, Int_t iModuleIndex, Int_t iCounterIndex)
void GenerateOnePointPerTrack(Bool_t bOnePointPerTrack=kTRUE)
CbmTof & operator=(const CbmTof &)
Int_t fVolumeID
track index
TLorentzVector fPos
volume id
TString fCurrentNodePath
Path to physical ToF node.
virtual void Initialize()
TGeoCombiTrans * fCombiTrans
Interface to gMC and gGeoManager.
std::set< std::tuple< Int_t, Int_t, Int_t > > fActiveCounters
Current counter index.
std::map< std::tuple< Int_t, Int_t, Int_t >, std::pair< TString, TGeoPhysicalNode * > > fCountersInBeam
Set of inactive counter IDs.
Bool_t fbOnePointPerTrack
Name of Volume to be imported.
Int_t fPosIndex
energy loss
virtual void CopyClones(TClonesArray *cl1, TClonesArray *cl2, Int_t offset)
Bool_t fbAllCountersInactive
virtual void ConstructGeometry()
Int_t fCurrentModuleIndex
Current module type.
TLorentzVector fMom
position
void SetCounterInactive(Int_t iModuleType, Int_t iModuleIndex, Int_t iCounterIndex)
CbmTofGeoHandler * fGeoHandler
Hit collection.
Bool_t CheckIfSensitive(std::string name)
virtual void ConstructRootGeometry(TGeoMatrix *shift=NULL)
virtual void Print(Option_t *="") const
virtual void FinishEvent()
Geometric intersection of a MC track with a TOFb detector.
std::string fVolumeName
Transformation matrix for geometry positioning.
std::set< std::tuple< Int_t, Int_t, Int_t > > fInactiveCounters
Set of active counters.
virtual void EndOfEvent()
void SetCounterInBeam(Int_t iModuleType, Int_t iModuleIndex, Int_t iCounterIndex)
void SetAllCountersInactive(Bool_t bInactive=kTRUE)
Int_t fCurrentCounterIndex
Current module index.