|
BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
|
#include <BmnFHCal.h>
Public Member Functions | |
| BmnFHCal () | |
| Default constructor. | |
| BmnFHCal (const char *name, Bool_t active) | |
| Standard constructor. | |
| virtual | ~BmnFHCal () |
| Destructor. | |
| virtual void | Initialize () override |
| Initializes detector and FairRun. | |
| virtual Bool_t | ProcessHits (FairVolume *vol=nullptr) override |
| Processes hits and creates BmnFHCalPoints. | |
| virtual void | EndOfEvent () override |
| Called at the end of each event. | |
| virtual void | BeginEvent () override |
| Called at the beginning of each event. | |
| virtual void | Register () override |
| Registers the hit collection in the ROOT manager. | |
| virtual TClonesArray * | GetCollection (Int_t iColl) const override |
| Accessor to the hit collection. | |
| virtual void | Print (Option_t *) const override |
| Screen output of hit collection. | |
| virtual void | Reset () override |
| Clears the hit collection. | |
| virtual void | ConstructGeometry () override |
| Constructs geometry from files. | |
| virtual Bool_t | CheckIfSensitive (std::string name) override |
| Checks whether a volume is sensitive based on its name. | |
| BmnFHCalPoint * | AddHit (BmnFHCalPoint *point) |
| Adds the hit to hits collection. | |
| void | UpdateHit (BmnFHCalPoint &existing, const BmnFHCalPoint &update) |
| Updates an existing hit by merging information from a new hit, weighting position, momentum, time, and length according to their energy loss. | |
| BmnFHCalPoint * | GetHit (uint32_t address) |
| Retrieves a hit from the collection based on the detector address. | |
| int | GetSurfaceMCTrack (int start_track_id) |
| Determines the surface-level Monte Carlo track ID associated with the given starting track ID. | |
| BmnFHCal () | |
| Default constructor. | |
| BmnFHCal (const char *name, Bool_t active) | |
| Standard constructor. | |
| virtual | ~BmnFHCal () |
| Destructor. | |
| virtual void | Initialize () override |
| Initializes detector and FairRun. | |
| virtual Bool_t | ProcessHits (FairVolume *vol=nullptr) override |
| Processes hits and creates BmnFHCalPoints. | |
| virtual void | EndOfEvent () override |
| Called at the end of each event. | |
| virtual void | BeginEvent () override |
| Called at the beginning of each event. | |
| virtual void | Register () override |
| Registers the hit collection in the ROOT manager. | |
| virtual TClonesArray * | GetCollection (Int_t iColl) const override |
| Accessor to the hit collection. | |
| virtual void | Print (Option_t *) const override |
| Screen output of hit collection. | |
| virtual void | Reset () override |
| Clears the hit collection. | |
| virtual void | ConstructGeometry () override |
| Constructs geometry from files. | |
| virtual Bool_t | CheckIfSensitive (std::string name) override |
| Checks whether a volume is sensitive based on its name. | |
| BmnFHCalPoint * | AddHit (BmnFHCalPoint *point) |
| Adds the hit to hits collection. | |
| void | UpdateHit (BmnFHCalPoint &existing, const BmnFHCalPoint &update) |
| Updates an existing hit by merging information from a new hit, weighting position, momentum, time, and length according to their energy loss. | |
| BmnFHCalPoint * | GetHit (uint32_t address) |
| Retrieves a hit from the collection based on the detector address. | |
| int | GetSurfaceMCTrack (int start_track_id) |
| Determines the surface-level Monte Carlo track ID associated with the given starting track ID. | |
Private Attributes | |
| TClonesArray * | fCollection |
| std::unique_ptr< BmnFHCalGeo > | fGeoHandler |
| std::unique_ptr< BmnFHCalPoint > | fPoint |
| std::map< uint32_t, FairMultiLinkedData > | fMultiLinkMap |
Definition at line 16 of file BmnFHCal.h.
| BmnFHCal::BmnFHCal | ( | ) |
Definition at line 17 of file BmnFHCal.cxx.
References fCollection, fGeoHandler, and fPoint.
Referenced by GetSurfaceMCTrack().
| BmnFHCal::BmnFHCal | ( | const char * | name, |
| Bool_t | active ) |
| name | Detector name |
| active | Sensitivity flag |
Definition at line 26 of file BmnFHCal.cxx.
References fCollection, fGeoHandler, and fPoint.
|
virtual |
Definition at line 35 of file BmnFHCal.cxx.
References fCollection, fGeoHandler, fMultiLinkMap, and fPoint.
| BmnFHCal::BmnFHCal | ( | ) |
| BmnFHCal::BmnFHCal | ( | const char * | name, |
| Bool_t | active ) |
| name | Detector name |
| active | Sensitivity flag |
|
virtual |
| BmnFHCalPoint * BmnFHCal::AddHit | ( | BmnFHCalPoint * | point | ) |
| point | BmnFHCalPoint |
Definition at line 237 of file BmnFHCal.cxx.
References fCollection, and TObjArray::GetEntriesFast().
Referenced by ProcessHits().
| BmnFHCalPoint * BmnFHCal::AddHit | ( | BmnFHCalPoint * | point | ) |
| point | BmnFHCalPoint |
|
overridevirtual |
Definition at line 55 of file BmnFHCal.cxx.
References fMultiLinkMap.
|
overridevirtual |
|
overridevirtual |
| name | Volume name |
Definition at line 230 of file BmnFHCal.cxx.
References TString::Contains(), and BmnFHCalGeoPar::SensitiveVolume_name.
Referenced by ProcessHits().
|
overridevirtual |
| name | Volume name |
|
overridevirtual |
Definition at line 188 of file BmnFHCal.cxx.
References TObjArray::AddLast(), TString::Data(), TString::EndsWith(), fGeoHandler, BmnFHCalGeoPar::GetGeoPassiveNodes(), BmnFHCalGeoPar::GetGeoSensitiveNodes(), and TListIter::Next().
|
overridevirtual |
|
overridevirtual |
Definition at line 136 of file BmnFHCal.cxx.
References Print(), and Reset().
|
overridevirtual |
|
overridevirtual |
| iColl | Index of the collection |
Definition at line 149 of file BmnFHCal.cxx.
References fCollection, fMultiLinkMap, BmnFHCalPoint::GetAddress(), and i.
|
overridevirtual |
| iColl | Index of the collection |
| BmnFHCalPoint * BmnFHCal::GetHit | ( | uint32_t | address | ) |
| address | Detector address of the hit |
Definition at line 61 of file BmnFHCal.cxx.
References fCollection, and i.
Referenced by ProcessHits().
| BmnFHCalPoint * BmnFHCal::GetHit | ( | uint32_t | address | ) |
| address | Detector address of the hit |
| int BmnFHCal::GetSurfaceMCTrack | ( | int | start_track_id | ) |
| start_track_id | Initial track ID to trace back to the surface MC track |
Definition at line 277 of file BmnFHCal.cxx.
References fGeoHandler, TParticle::GetFirstMother(), TParticle::IsPrimary(), TParticle::Vx(), TParticle::Vy(), TParticle::Vz(), TVector3::X(), TVector3::Y(), and TVector3::Z().
Referenced by ProcessHits().
| int BmnFHCal::GetSurfaceMCTrack | ( | int | start_track_id | ) |
| start_track_id | Initial track ID to trace back to the surface MC track |
References BmnFHCal(), fCollection, fGeoHandler, fMultiLinkMap, and fPoint.
|
overridevirtual |
Definition at line 49 of file BmnFHCal.cxx.
|
overridevirtual |
|
overridevirtual |
Definition at line 168 of file BmnFHCal.cxx.
References fCollection, i, and BmnFHCalPoint::Print().
Referenced by EndOfEvent().
|
overridevirtual |
|
overridevirtual |
| vol | Pointer to the active volume |
Definition at line 80 of file BmnFHCal.cxx.
References AddHit(), CalculateEnergyLoss(), CheckIfSensitive(), fGeoHandler, fMultiLinkMap, fPoint, GetHit(), BmnFHCalAddress::GetInfoString(), GetSurfaceMCTrack(), kFHCAL, UpdateHit(), and TLorentzVector::Vect().
|
overridevirtual |
| vol | Pointer to the active volume |
|
overridevirtual |
Definition at line 143 of file BmnFHCal.cxx.
References fCollection.
|
overridevirtual |
|
overridevirtual |
Definition at line 182 of file BmnFHCal.cxx.
References fCollection.
Referenced by EndOfEvent().
|
overridevirtual |
| void BmnFHCal::UpdateHit | ( | BmnFHCalPoint & | existing, |
| const BmnFHCalPoint & | update ) |
| existing | Reference to the existing BmnFHCalPoint hit, which will be updated |
| update | Reference to the new BmnFHCalPoint hit, providing additional information |
Definition at line 244 of file BmnFHCal.cxx.
References BmnFHCalPoint::GetAddress().
Referenced by ProcessHits().
| void BmnFHCal::UpdateHit | ( | BmnFHCalPoint & | existing, |
| const BmnFHCalPoint & | update ) |
| existing | Reference to the existing BmnFHCalPoint hit, which will be updated |
| update | Reference to the new BmnFHCalPoint hit, providing additional information |
|
private |
Definition at line 97 of file BmnFHCal.h.
Referenced by BmnFHCal(), BmnFHCal(), ~BmnFHCal(), AddHit(), GetCollection(), GetHit(), GetSurfaceMCTrack(), Print(), Register(), and Reset().
|
private |
Definition at line 98 of file BmnFHCal.h.
Referenced by BmnFHCal(), BmnFHCal(), ~BmnFHCal(), ConstructGeometry(), GetSurfaceMCTrack(), and ProcessHits().
|
private |
Definition at line 100 of file BmnFHCal.h.
Referenced by ~BmnFHCal(), BeginEvent(), GetCollection(), GetSurfaceMCTrack(), and ProcessHits().
|
private |
Definition at line 99 of file BmnFHCal.h.
Referenced by BmnFHCal(), BmnFHCal(), ~BmnFHCal(), GetSurfaceMCTrack(), and ProcessHits().