|
BmnRoot 26.10.0-19-g6979a6c6
Software framework of the BM@N experiment
|
#include <BmnEcal.h>
Public Member Functions | |
| BmnEcal () | |
| Default constructor. | |
| BmnEcal (const char *name, Bool_t active) | |
| Standard constructor. | |
| virtual | ~BmnEcal () |
| Destructor. | |
| virtual void | Initialize () |
| Virtual method Initialize Initialises detector. | |
| virtual Bool_t | ProcessHits (FairVolume *vol=0) |
| Virtual method ProcessHits. | |
| virtual void | EndOfEvent () |
| Virtual method EndOfEvent. | |
| virtual void | BeginEvent () |
| virtual void | Register () |
| Virtual method Register. | |
| virtual TClonesArray * | GetCollection (Int_t iColl) const |
| Accessor to the hit collection. | |
| virtual void | Print (Option_t *) const |
| Virtual method Print. | |
| virtual void | Reset () |
| Virtual method Reset. | |
| virtual void | CopyClones (TClonesArray *cl1, TClonesArray *cl2, Int_t offset) |
| Virtual method CopyClones. | |
| virtual void | ConstructGeometry () |
| Virtual method Construct geometry. | |
| virtual Bool_t | CheckIfSensitive (std::string name) |
| void | SetToFile (Bool_t toFile) |
| SetToFile. | |
| BmnEcalPoint * | AddHit (Int_t trackID, Int_t detID, Int_t copyNo, Int_t copyNoMother, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss) |
Private Member Functions | |
| BmnEcal (const BmnEcal &)=delete | |
| if kFALSE, branch will NOT be saved to the tree | |
| BmnEcal | operator= (const BmnEcal &)=delete |
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 | |
| TClonesArray * | fEcalCollection |
| energy loss | |
| Bool_t | fToFile = kTRUE |
| Hit collection. | |
| BmnEcal::BmnEcal | ( | ) |
Definition at line 40 of file BmnEcal.cxx.
References fEcalCollection.
Referenced by BmnEcal(), and operator=().
| BmnEcal::BmnEcal | ( | const char * | name, |
| Bool_t | active ) |
| name | detetcor name |
| active | sensitivity flag |
Definition at line 48 of file BmnEcal.cxx.
References fEcalCollection.
|
virtual |
Definition at line 57 of file BmnEcal.cxx.
References fEcalCollection.
|
privatedelete |
| BmnEcalPoint * BmnEcal::AddHit | ( | Int_t | trackID, |
| Int_t | detID, | ||
| Int_t | copyNo, | ||
| Int_t | copyNoMother, | ||
| TVector3 | pos, | ||
| TVector3 | mom, | ||
| Double_t | tof, | ||
| Double_t | length, | ||
| Double_t | eLoss ) |
Definition at line 250 of file BmnEcal.cxx.
References fEcalCollection, and TObjArray::GetEntriesFast().
Referenced by ProcessHits().
|
virtual |
Definition at line 77 of file BmnEcal.cxx.
|
virtual |
Definition at line 240 of file BmnEcal.cxx.
References TString::Contains().
|
virtual |
Definition at line 192 of file BmnEcal.cxx.
References TObjArray::AddLast(), TString::Data(), TString::EndsWith(), BmnEcalGeoPar::GetGeoPassiveNodes(), BmnEcalGeoPar::GetGeoSensitiveNodes(), and TListIter::Next().
|
virtual |
Copies the hit collection with a given track index offset
| cl1 | Origin |
| cl2 | Target |
| offset | Index offset |
Definition at line 176 of file BmnEcal.cxx.
References TObjArray::At(), TObjArray::GetEntriesFast(), and i.
|
virtual |
If verbosity level is set, print hit collection at the end of the event and resets it afterwards.
Definition at line 135 of file BmnEcal.cxx.
References Print(), and Reset().
|
virtual |
Definition at line 149 of file BmnEcal.cxx.
References fEcalCollection.
|
virtual |
Stores volume IDs for MUO detector and mirror.
Definition at line 67 of file BmnEcal.cxx.
|
virtual |
Screen output of hit collection.
Definition at line 158 of file BmnEcal.cxx.
References fEcalCollection, and i.
Referenced by EndOfEvent().
|
virtual |
Defines the action to be taken when a step is inside the active volume. Creates BmnEcalPoints and BmnEcalMirrorPoints and adds them to the collections.
| vol | Pointer to the active volume |
Definition at line 83 of file BmnEcal.cxx.
References AddHit(), fELoss, fLength, fMom, fPos, fTime, fTrackID, fVolumeID, and kECAL.
|
virtual |
Registers the hit collection in the ROOT manager.
Definition at line 143 of file BmnEcal.cxx.
References fEcalCollection, and fToFile.
|
virtual |
Clears the hit collection
Definition at line 169 of file BmnEcal.cxx.
References fEcalCollection.
Referenced by EndOfEvent().
|
inline |
|
private |
Definition at line 122 of file BmnEcal.h.
Referenced by BmnEcal(), BmnEcal(), ~BmnEcal(), AddHit(), GetCollection(), Print(), Register(), and Reset().
|
private |
Definition at line 120 of file BmnEcal.h.
Referenced by ProcessHits().
|
private |
Definition at line 119 of file BmnEcal.h.
Referenced by ProcessHits().
|
private |
Definition at line 117 of file BmnEcal.h.
Referenced by ProcessHits().
|
private |
Definition at line 116 of file BmnEcal.h.
Referenced by ProcessHits().
|
private |
Definition at line 118 of file BmnEcal.h.
Referenced by ProcessHits().
Definition at line 124 of file BmnEcal.h.
Referenced by Register(), and SetToFile().
|
private |
Definition at line 114 of file BmnEcal.h.
Referenced by ProcessHits().
|
private |
Definition at line 115 of file BmnEcal.h.
Referenced by ProcessHits().