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) |
virtual Bool_t | IsSensitive (const 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 | |
Int_t | fFlagID |
volume id | |
TLorentzVector | fPosIn |
TLorentzVector | fPosOut |
TLorentzVector | fMomIn |
position | |
TLorentzVector | fMomOut |
Double32_t | fTime |
momentum | |
Double32_t | fLength |
time | |
Double32_t | fELoss |
length | |
Int_t | fPosIndex |
energy loss | |
TClonesArray * | fMuchCollection |
Bool_t | kGeoSaved |
The hit collection. | |
TList * | flGeoPar |
CbmGeoMuchPar * | fPar |
TString | fVolumeName |
parameter container | |
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 92 of file CbmMuch.cxx.
References flGeoPar, and ResetParameters().
|
virtual |
|
private |
|
private |
Definition at line 274 of file CbmMuch.cxx.
References fMuchCollection, and size().
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 216 of file CbmMuch.cxx.
Bool_t CbmMuch::CheckIfSensitive | ( | std::string | name | ) |
Definition at line 402 of file CbmMuch.cxx.
References IsSensitive().
|
private |
|
virtual |
Definition at line 288 of file CbmMuch.cxx.
References ConstructRootGeometry(), and fFlagID.
|
virtual |
Definition at line 308 of file CbmMuch.cxx.
References fFlagID, fPar, fVolumeName, CbmGeoMuchPar::GetGeoPassiveNodes(), CbmGeoMuchPar::GetGeoSensitiveNodes(), CbmGeoMuchPar::GetStations(), Cbm::GeometryUtils::ImportRootGeometry(), CbmMuchGeoScheme::Init(), CbmMuchGeoScheme::Instance(), 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 255 of file CbmMuch.cxx.
References fPosIndex.
|
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 220 of file CbmMuch.cxx.
References fMuchCollection, Print(), and ResetParameters().
|
virtual |
Accessor to the hit collection
Definition at line 231 of file CbmMuch.cxx.
References fMuchCollection.
|
private |
Definition at line 195 of file CbmMuch.cxx.
References CbmMuchAddress::GetAddress(), CbmMuchAddress::GetLayerIndex(), CbmMuchAddress::GetLayerSideIndex(), CbmMuchAddress::GetModuleIndex(), and CbmMuchAddress::GetStationIndex().
Referenced by ProcessHits().
|
private |
|
virtual |
Definition at line 390 of file CbmMuch.cxx.
Referenced by CheckIfSensitive().
|
virtual |
Virtual method Print
Screen output of hit collection.
Definition at line 241 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 134 of file CbmMuch.cxx.
References AddHit(), CbmStack::AddPoint(), fELoss, fLength, fMomIn, fMomOut, fPosIn, fPosOut, fTime, fTrackID, fVolumeID, GetDetId(), CbmMuchAddress::GetLayerIndex(), CbmMuchAddress::GetLayerSideIndex(), CbmMuchAddress::GetModuleIndex(), CbmMuchAddress::GetStationIndex(), CbmMuchAddress::GetSystemIndex(), kMuch, and ResetParameters().
|
virtual |
Virtual method Register
Registers the hit collection in the ROOT manager.
Definition at line 228 of file CbmMuch.cxx.
References fMuchCollection.
|
virtual |
Virtual method Reset
Clears the hit collection
Definition at line 248 of file CbmMuch.cxx.
References fMuchCollection, and ResetParameters().
|
inlineprivate |
|
private |
length
Definition at line 127 of file CbmMuch.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
volume id
Definition at line 122 of file CbmMuch.h.
Referenced by ConstructGeometry(), and ConstructRootGeometry().
|
private |
|
private |
Definition at line 132 of file CbmMuch.h.
Referenced by CbmMuch(), and ~CbmMuch().
|
private |
position
Definition at line 124 of file CbmMuch.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 124 of file CbmMuch.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
Definition at line 130 of file CbmMuch.h.
Referenced by AddHit(), EndOfEvent(), GetCollection(), Print(), Register(), Reset(), and ~CbmMuch().
|
private |
Definition at line 133 of file CbmMuch.h.
Referenced by ConstructRootGeometry().
|
private |
Definition at line 123 of file CbmMuch.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
energy loss
Definition at line 129 of file CbmMuch.h.
Referenced by CopyClones(), and ResetParameters().
|
private |
Definition at line 123 of file CbmMuch.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
momentum
Definition at line 125 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 120 of file CbmMuch.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
track index
Definition at line 121 of file CbmMuch.h.
Referenced by ProcessHits(), and ResetParameters().
|
private |
parameter container
Definition at line 134 of file CbmMuch.h.
Referenced by ConstructRootGeometry().