CbmRoot
|
#include <CbmMuch.h>
Public Member Functions | |
CbmMuch () | |
CbmMuch (const char *name, Bool_t active) | |
virtual | ~CbmMuch () |
virtual Bool_t | ProcessHits (FairVolume *vol=0) |
virtual void | BeginEvent () |
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 | ConstructRootGeometry (TGeoMatrix *shift=NULL) |
Bool_t | CheckIfSensitive (std::string name) |
Private Member Functions | |
CbmMuchPoint * | AddHit (Int_t trackID, Int_t detID, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t time, Double_t length, Double_t eLoss) |
void | ResetParameters () |
Int_t | GetDetId (FairVolume *vol) |
Int_t | Intersect (Float_t x, Float_t y, Float_t lx, Float_t ly, Float_t r) |
CbmMuch (const CbmMuch &) | |
CbmMuch & | operator= (const CbmMuch &) |
ClassDef (CbmMuch, 1) | |
Private Attributes | |
Int_t | fTrackID |
Int_t | fVolumeID |
track index More... | |
Int_t | fFlagID |
volume id More... | |
TLorentzVector | fPosIn |
TLorentzVector | fPosOut |
TLorentzVector | fMomIn |
position More... | |
TLorentzVector | fMomOut |
Double32_t | fTime |
momentum More... | |
Double32_t | fLength |
time More... | |
Double32_t | fELoss |
length More... | |
Int_t | fPosIndex |
energy loss More... | |
TClonesArray * | fMuchCollection |
Bool_t | kGeoSaved |
The hit collection. More... | |
TList * | flGeoPar |
CbmGeoMuchPar * | fPar |
TString | fVolumeName |
parameter container More... | |
TGeoCombiTrans * | fCombiTrans |
CbmMuch::CbmMuch | ( | ) |
Default constructor
CbmMuch::CbmMuch | ( | const char * | name, |
Bool_t | active | ||
) |
Standard constructor.
name | detector name |
active | sensitivity flag |
Definition at line 91 of file CbmMuch.cxx.
References flGeoPar, and ResetParameters().
|
virtual |
|
private |
|
private |
Definition at line 277 of file CbmMuch.cxx.
References fMuchCollection.
Referenced by ProcessHits().
|
virtual |
Virtual method BeginEvent
If verbosity level is set, print hit collection at the end of the event and resets it afterwards.
Definition at line 220 of file CbmMuch.cxx.
Bool_t CbmMuch::CheckIfSensitive | ( | std::string | name | ) |
Definition at line 402 of file CbmMuch.cxx.
|
private |
|
virtual |
Definition at line 300 of file CbmMuch.cxx.
References ConstructRootGeometry(), and fFlagID.
|
virtual |
Definition at line 320 of file CbmMuch.cxx.
References CbmMuchGeoScheme::ExtractGeoParameter(), fFlagID, fPar, fVolumeName, CbmGeoMuchPar::GetGeoPassiveNodes(), CbmGeoMuchPar::GetGeoSensitiveNodes(), CbmGeoMuchPar::GetStations(), i, Cbm::GeometryUtils::ImportRootGeometry(), CbmMuchGeoScheme::Init(), CbmMuchGeoScheme::Instance(), Cbm::GeometryUtils::IsNewGeometryFile(), and m.
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 259 of file CbmMuch.cxx.
|
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 224 of file CbmMuch.cxx.
References fMuchCollection, Print(), and ResetParameters().
|
virtual |
Accessor to the hit collection
Definition at line 237 of file CbmMuch.cxx.
References fMuchCollection.
|
private |
Definition at line 199 of file CbmMuch.cxx.
References CbmMuchAddress::GetAddress(), CbmMuchAddress::GetLayerIndex(), CbmMuchAddress::GetLayerSideIndex(), CbmMuchAddress::GetModuleIndex(), and CbmMuchAddress::GetStationIndex().
Referenced by ProcessHits().
|
private |
|
virtual |
Virtual method Print
Screen output of hit collection.
Definition at line 247 of file CbmMuch.cxx.
References fMuchCollection.
Referenced by EndOfEvent().
|
virtual |
Virtual method ProcessHits
Defines the action to be taken when a step is inside the active volume. Creates a CbmMuchPoint and adds it to the collection.
vol | Pointer to the active volume |
Definition at line 131 of file CbmMuch.cxx.
References AddHit(), CbmStack::AddPoint(), fELoss, fLength, fMomIn, fMomOut, fPar, fPosIn, fPosOut, fTime, fTrackID, fVolumeID, GetDetId(), CbmMuchAddress::GetLayerIndex(), CbmMuchAddress::GetLayerSideIndex(), CbmMuchAddress::GetModuleIndex(), CbmMuchStation::GetRmax(), CbmMuchStation::GetRmin(), CbmMuchAddress::GetStationIndex(), CbmGeoMuchPar::GetStations(), CbmMuchAddress::GetSystemIndex(), kMuch, and ResetParameters().
|
virtual |
Virtual method Register
Registers the hit collection in the ROOT manager.
Definition at line 231 of file CbmMuch.cxx.
References fMuchCollection.
|
virtual |
Virtual method Reset
Clears the hit collection
Definition at line 253 of file CbmMuch.cxx.
References fMuchCollection, and ResetParameters().
|
inlineprivate |
|
private |
length
Definition at line 120 of file CbmMuch.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
volume id
Definition at line 115 of file CbmMuch.h.
Referenced by ConstructGeometry(), and ConstructRootGeometry().
|
private |
|
private |
Definition at line 125 of file CbmMuch.h.
Referenced by CbmMuch(), and ~CbmMuch().
|
private |
position
Definition at line 117 of file CbmMuch.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 117 of file CbmMuch.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 123 of file CbmMuch.h.
Referenced by AddHit(), EndOfEvent(), GetCollection(), Print(), Register(), Reset(), and ~CbmMuch().
|
private |
Definition at line 126 of file CbmMuch.h.
Referenced by ConstructRootGeometry(), and ProcessHits().
|
private |
Definition at line 116 of file CbmMuch.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
energy loss
Definition at line 122 of file CbmMuch.h.
Referenced by CopyClones(), and ResetParameters().
|
private |
Definition at line 116 of file CbmMuch.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
momentum
Definition at line 118 of file CbmMuch.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Track information to be stored until the track leaves the active volume.
Definition at line 113 of file CbmMuch.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
track index
Definition at line 114 of file CbmMuch.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
parameter container
Definition at line 127 of file CbmMuch.h.
Referenced by ConstructRootGeometry().