|
BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
|
#include <BmnNdet.h>
Public Member Functions | |
| BmnNdet () | |
| Default constructor. | |
| BmnNdet (const char *name, Bool_t active) | |
| Standard constructor. | |
| virtual | ~BmnNdet () |
| Destructor. | |
| virtual void | Initialize () |
| Initialises detector and FairRun. | |
| virtual Bool_t | ProcessHits (FairVolume *vol=nullptr) |
| Processes hits and creates BmnNdetPoints. | |
| bool | FinaliseTrackProcessing (BmnNdetPoint *point) |
| Removes zero-energy hits. | |
| virtual void | EndOfEvent () |
| Called at the end of each event. | |
| virtual void | BeginEvent () |
| Called at the beginning of each event. | |
| virtual void | Register () |
| Registers the hit collection in the ROOT manager. | |
| virtual TClonesArray * | GetCollection (Int_t iColl) const |
| Accessor to the hit collection. | |
| virtual void | Print (Option_t *) const |
| Screen output of hit collection. | |
| virtual void | Reset () |
| Clears the hit collection. | |
| virtual void | ConstructGeometry () |
| Constructs geometry from files. | |
| virtual Bool_t | CheckIfSensitive (std::string name) |
| Checks whether a volume is sensitive based on its name. | |
| virtual Bool_t | CheckIfVacuum () |
| Checks whether current volume is vacuum. | |
| Int_t | FindHitIndex (int trackID, uint32_t address) |
| Retrieves the hit index corresponding to a specific address and trackID. | |
| BmnNdetPoint * | GetHit (int trackID, uint32_t address) |
| Retrieves the hit corresponding to a specific address and trackID. | |
| BmnNdetPoint * | AddHit (BmnNdetPoint *point) |
| Adds the hit to hits collection. | |
| void | RemoveHit (Int_t index) |
| Remove hit from hits collection by index. | |
| int | GetSurfacePoint (int start_track_id) |
| Returns index of surface point. | |
| BmnNdet () | |
| Default constructor. | |
| BmnNdet (const char *name, Bool_t active) | |
| Standard constructor. | |
| virtual | ~BmnNdet () |
| Destructor. | |
| virtual void | Initialize () |
| Initialises detector and FairRun. | |
| virtual Bool_t | ProcessHits (FairVolume *vol=nullptr) |
| Processes hits and creates BmnNdetPoints. | |
| bool | FinaliseTrackProcessing (BmnNdetPoint *point) |
| Removes zero-energy hits. | |
| virtual void | EndOfEvent () |
| Called at the end of each event. | |
| virtual void | BeginEvent () |
| Called at the beginning of each event. | |
| virtual void | Register () |
| Registers the hit collection in the ROOT manager. | |
| virtual TClonesArray * | GetCollection (Int_t iColl) const |
| Accessor to the hit collection. | |
| virtual void | Print (Option_t *) const |
| Screen output of hit collection. | |
| virtual void | Reset () |
| Clears the hit collection. | |
| virtual void | ConstructGeometry () |
| Constructs geometry from files. | |
| virtual Bool_t | CheckIfSensitive (std::string name) |
| Checks whether a volume is sensitive based on its name. | |
| virtual Bool_t | CheckIfVacuum () |
| Checks whether current volume is vacuum. | |
| Int_t | FindHitIndex (int trackID, uint32_t address) |
| Retrieves the hit index corresponding to a specific address and trackID. | |
| BmnNdetPoint * | GetHit (int trackID, uint32_t address) |
| Retrieves the hit corresponding to a specific address and trackID. | |
| BmnNdetPoint * | AddHit (BmnNdetPoint *point) |
| Adds the hit to hits collection. | |
| void | RemoveHit (Int_t index) |
| Remove hit from hits collection by index. | |
| int | GetSurfacePoint (int start_track_id) |
| Returns index of surface point. | |
Private Attributes | |
| BmnNdetGeo * | fGeoHandler |
| TClonesArray * | fCollection |
| TClonesArray * | fSurfaceCollection |
| BmnNdet::BmnNdet | ( | ) |
Definition at line 17 of file BmnNdet.cxx.
References fCollection, fGeoHandler, and fSurfaceCollection.
Referenced by GetSurfacePoint().
| BmnNdet::BmnNdet | ( | const char * | name, |
| Bool_t | active ) |
| name | Detector name |
| active | Sensitivity flag |
Definition at line 26 of file BmnNdet.cxx.
References fCollection, fGeoHandler, and fSurfaceCollection.
|
virtual |
Definition at line 35 of file BmnNdet.cxx.
References fCollection, fGeoHandler, and fSurfaceCollection.
| BmnNdet::BmnNdet | ( | ) |
| BmnNdet::BmnNdet | ( | const char * | name, |
| Bool_t | active ) |
| name | Detector name |
| active | Sensitivity flag |
|
virtual |
| BmnNdetPoint * BmnNdet::AddHit | ( | BmnNdetPoint * | point | ) |
| point | BmnNdetPoint |
Definition at line 302 of file BmnNdet.cxx.
References fCollection, and TObjArray::GetEntriesFast().
Referenced by ProcessHits().
| BmnNdetPoint * BmnNdet::AddHit | ( | BmnNdetPoint * | point | ) |
| point | BmnNdetPoint |
|
virtual |
Definition at line 57 of file BmnNdet.cxx.
|
virtual |
|
virtual |
| name | Volume name |
Definition at line 289 of file BmnNdet.cxx.
References TString::Contains(), BmnNdetGeoPar::fEnvelopeVolumeName, BmnNdetGeoPar::SensitiveVolume_name_NICA, and BmnNdetGeoPar::SensitiveVolume_name_VETO.
Referenced by ProcessHits().
|
virtual |
| name | Volume name |
|
virtual |
Definition at line 297 of file BmnNdet.cxx.
Referenced by ProcessHits().
|
virtual |
|
virtual |
Definition at line 244 of file BmnNdet.cxx.
References TObjArray::AddLast(), TString::Data(), TString::EndsWith(), fGeoHandler, BmnNdetGeoPar::GetGeoPassiveNodes(), BmnNdetGeoPar::GetGeoSensitiveNodes(), and TListIter::Next().
|
virtual |
|
virtual |
Definition at line 197 of file BmnNdet.cxx.
References Print(), and Reset().
|
virtual |
| bool BmnNdet::FinaliseTrackProcessing | ( | BmnNdetPoint * | point | ) |
| point | Pointer to the hit |
Definition at line 183 of file BmnNdet.cxx.
References FindHitIndex(), BmnNdetPoint::GetAddress(), BmnNdetAddress::GetInfoString(), and RemoveHit().
Referenced by ProcessHits().
| bool BmnNdet::FinaliseTrackProcessing | ( | BmnNdetPoint * | point | ) |
| point | Pointer to the hit |
| Int_t BmnNdet::FindHitIndex | ( | int | trackID, |
| uint32_t | address ) |
| trackID | trackID |
| address | BmnNdetAddress |
Definition at line 62 of file BmnNdet.cxx.
References fCollection, and i.
Referenced by FinaliseTrackProcessing(), and GetHit().
| Int_t BmnNdet::FindHitIndex | ( | int | trackID, |
| uint32_t | address ) |
| trackID | trackID |
| address | BmnNdetAddress |
|
virtual |
| iColl | Index of the collection |
Definition at line 214 of file BmnNdet.cxx.
References fCollection, and fSurfaceCollection.
|
virtual |
| iColl | Index of the collection |
| BmnNdetPoint * BmnNdet::GetHit | ( | int | trackID, |
| uint32_t | address ) |
| trackID | trackID |
| address | BmnNdetAddress |
Definition at line 76 of file BmnNdet.cxx.
References fCollection, and FindHitIndex().
Referenced by ProcessHits().
| BmnNdetPoint * BmnNdet::GetHit | ( | int | trackID, |
| uint32_t | address ) |
| trackID | trackID |
| address | BmnNdetAddress |
| int BmnNdet::GetSurfacePoint | ( | int | start_track_id | ) |
| start_track_id | track index |
Definition at line 319 of file BmnNdet.cxx.
References BmnNdetGeo::FromOutside, fSurfaceCollection, TParticle::GetFirstMother(), i, TParticle::IsPrimary(), and n.
Referenced by ProcessHits().
| int BmnNdet::GetSurfacePoint | ( | int | start_track_id | ) |
| start_track_id | track index |
References BmnNdet(), fCollection, fGeoHandler, and fSurfaceCollection.
|
virtual |
Definition at line 49 of file BmnNdet.cxx.
|
virtual |
|
virtual |
Definition at line 224 of file BmnNdet.cxx.
References fCollection, and i.
Referenced by EndOfEvent().
|
virtual |
|
virtual |
| vol | Pointer to the active volume |
Definition at line 93 of file BmnNdet.cxx.
References AddHit(), CheckIfSensitive(), CheckIfVacuum(), fGeoHandler, FinaliseTrackProcessing(), fSurfaceCollection, GetBirkQCF(), GetHit(), BmnNdetAddress::GetInfoString(), GetSurfacePoint(), kNDET, BmnNdetPoint::SetAddress(), BmnNdetCell::SurfaceMCPoint, TLorentzVector::X(), TLorentzVector::Y(), and TLorentzVector::Z().
|
virtual |
| vol | Pointer to the active volume |
|
virtual |
Definition at line 204 of file BmnNdet.cxx.
References fCollection, and fSurfaceCollection.
|
virtual |
| void BmnNdet::RemoveHit | ( | Int_t | index | ) |
| index | hit index |
Definition at line 309 of file BmnNdet.cxx.
References fCollection.
Referenced by FinaliseTrackProcessing().
| void BmnNdet::RemoveHit | ( | Int_t | index | ) |
| index | hit index |
|
virtual |
Definition at line 237 of file BmnNdet.cxx.
References fCollection, and fSurfaceCollection.
Referenced by EndOfEvent().
|
virtual |
|
private |
Definition at line 114 of file BmnNdet.h.
Referenced by BmnNdet(), BmnNdet(), ~BmnNdet(), AddHit(), FindHitIndex(), GetCollection(), GetHit(), GetSurfacePoint(), Print(), Register(), RemoveHit(), and Reset().
|
private |
Definition at line 113 of file BmnNdet.h.
Referenced by BmnNdet(), BmnNdet(), ~BmnNdet(), ConstructGeometry(), GetSurfacePoint(), and ProcessHits().
|
private |
Definition at line 115 of file BmnNdet.h.
Referenced by BmnNdet(), BmnNdet(), ~BmnNdet(), GetCollection(), GetSurfacePoint(), ProcessHits(), Register(), and Reset().