#include <BmnNdet.h>
Definition at line 17 of file BmnNdet.h.
◆ BmnNdet() [1/4]
◆ BmnNdet() [2/4]
| BmnNdet::BmnNdet |
( |
const char * |
name, |
|
|
Bool_t |
active |
|
) |
| |
Standard constructor.
- Parameters
-
| name | Detector name |
| active | Sensitivity flag |
Definition at line 26 of file BmnNdet.cxx.
◆ ~BmnNdet() [1/2]
◆ BmnNdet() [3/4]
◆ BmnNdet() [4/4]
| BmnNdet::BmnNdet |
( |
const char * |
name, |
|
|
Bool_t |
active |
|
) |
| |
Standard constructor.
- Parameters
-
| name | Detector name |
| active | Sensitivity flag |
◆ ~BmnNdet() [2/2]
| virtual BmnNdet::~BmnNdet |
( |
| ) |
|
|
virtual |
◆ AddHit() [1/2]
Adds the hit to hits collection.
- Parameters
-
- Returns
- Pointer to the hit
Definition at line 302 of file BmnNdet.cxx.
Referenced by ProcessHits().
◆ AddHit() [2/2]
Adds the hit to hits collection.
- Parameters
-
- Returns
- Pointer to the hit
◆ BeginEvent() [1/2]
| void BmnNdet::BeginEvent |
( |
| ) |
|
|
virtual |
Called at the beginning of each event
Definition at line 57 of file BmnNdet.cxx.
◆ BeginEvent() [2/2]
| virtual void BmnNdet::BeginEvent |
( |
| ) |
|
|
virtual |
Called at the beginning of each event
◆ CheckIfSensitive() [1/2]
| Bool_t BmnNdet::CheckIfSensitive |
( |
std::string |
name | ) |
|
|
virtual |
◆ CheckIfSensitive() [2/2]
| virtual Bool_t BmnNdet::CheckIfSensitive |
( |
std::string |
name | ) |
|
|
virtual |
Checks whether a volume is sensitive based on its name.
- Parameters
-
- Returns
- kTRUE if the volume is sensitive, otherwise kFALSE
◆ CheckIfVacuum() [1/2]
| Bool_t BmnNdet::CheckIfVacuum |
( |
| ) |
|
|
virtual |
Checks whether current volume is vacuum
- Returns
- kTRUE if the volume is vacuum, otherwise kFALSE
Definition at line 297 of file BmnNdet.cxx.
Referenced by ProcessHits().
◆ CheckIfVacuum() [2/2]
| virtual Bool_t BmnNdet::CheckIfVacuum |
( |
| ) |
|
|
virtual |
Checks whether current volume is vacuum
- Returns
- kTRUE if the volume is vacuum, otherwise kFALSE
◆ ConstructGeometry() [1/2]
| void BmnNdet::ConstructGeometry |
( |
| ) |
|
|
virtual |
◆ ConstructGeometry() [2/2]
| virtual void BmnNdet::ConstructGeometry |
( |
| ) |
|
|
virtual |
Constructs geometry from files
◆ EndOfEvent() [1/2]
| void BmnNdet::EndOfEvent |
( |
| ) |
|
|
virtual |
◆ EndOfEvent() [2/2]
| virtual void BmnNdet::EndOfEvent |
( |
| ) |
|
|
virtual |
Called at the end of each event
◆ FinaliseTrackProcessing() [1/2]
| bool BmnNdet::FinaliseTrackProcessing |
( |
BmnNdetPoint * |
point | ) |
|
◆ FinaliseTrackProcessing() [2/2]
| bool BmnNdet::FinaliseTrackProcessing |
( |
BmnNdetPoint * |
point | ) |
|
Removes zero-energy hits
- Parameters
-
- Returns
- true if the track has non zero impact, otherwise removes it from collection and returns false
◆ FindHitIndex() [1/2]
| Int_t BmnNdet::FindHitIndex |
( |
int |
trackID, |
|
|
uint32_t |
address |
|
) |
| |
Retrieves the hit index corresponding to a specific address and trackID.
- Parameters
-
- Returns
- index of the hit if found, otherwise -1
Definition at line 62 of file BmnNdet.cxx.
References i.
Referenced by FinaliseTrackProcessing(), and GetHit().
◆ FindHitIndex() [2/2]
| Int_t BmnNdet::FindHitIndex |
( |
int |
trackID, |
|
|
uint32_t |
address |
|
) |
| |
Retrieves the hit index corresponding to a specific address and trackID.
- Parameters
-
- Returns
- index of the hit if found, otherwise -1
◆ GetCollection() [1/2]
| TClonesArray * BmnNdet::GetCollection |
( |
Int_t |
iColl | ) |
const |
|
virtual |
Accessor to the hit collection
- Parameters
-
| iColl | Index of the collection |
- Returns
- Pointer to the hit collection
Definition at line 214 of file BmnNdet.cxx.
◆ GetCollection() [2/2]
| virtual TClonesArray * BmnNdet::GetCollection |
( |
Int_t |
iColl | ) |
const |
|
virtual |
Accessor to the hit collection
- Parameters
-
| iColl | Index of the collection |
- Returns
- Pointer to the hit collection
◆ GetHit() [1/2]
| BmnNdetPoint * BmnNdet::GetHit |
( |
int |
trackID, |
|
|
uint32_t |
address |
|
) |
| |
Retrieves the hit corresponding to a specific address and trackID.
- Parameters
-
- Returns
- Pointer to the hit if found, otherwise nullptr
Definition at line 76 of file BmnNdet.cxx.
References FindHitIndex().
Referenced by ProcessHits().
◆ GetHit() [2/2]
| BmnNdetPoint * BmnNdet::GetHit |
( |
int |
trackID, |
|
|
uint32_t |
address |
|
) |
| |
Retrieves the hit corresponding to a specific address and trackID.
- Parameters
-
- Returns
- Pointer to the hit if found, otherwise nullptr
◆ GetSurfacePoint() [1/2]
| int BmnNdet::GetSurfacePoint |
( |
int |
start_track_id | ) |
|
◆ GetSurfacePoint() [2/2]
| int BmnNdet::GetSurfacePoint |
( |
int |
start_track_id | ) |
|
Returns index of surface point.
- Parameters
-
◆ Initialize() [1/2]
| void BmnNdet::Initialize |
( |
| ) |
|
|
virtual |
Initialises detector and FairRun
Definition at line 49 of file BmnNdet.cxx.
◆ Initialize() [2/2]
| virtual void BmnNdet::Initialize |
( |
| ) |
|
|
virtual |
Initialises detector and FairRun
◆ Print() [1/2]
| void BmnNdet::Print |
( |
Option_t * |
| ) |
const |
|
virtual |
◆ Print() [2/2]
| virtual void BmnNdet::Print |
( |
Option_t * |
| ) |
const |
|
virtual |
Screen output of hit collection
◆ ProcessHits() [1/2]
| Bool_t BmnNdet::ProcessHits |
( |
FairVolume * |
vol = nullptr | ) |
|
|
virtual |
Processes hits and creates BmnNdetPoints.
- Parameters
-
| vol | Pointer to the active volume |
- Returns
- kTRUE if the volume is sensitive and a hit is processed, otherwise kFALSE
Definition at line 93 of file BmnNdet.cxx.
References AddHit(), CheckIfSensitive(), CheckIfVacuum(), FinaliseTrackProcessing(), BmnNdetGeo::GetAddressFromPath(), BmnNdetGeo::GetArmFromPath(), GetBirkQCF(), BmnNdetGeo::GetEnteredFace(), GetHit(), BmnNdetAddress::GetInfoString(), GetSurfacePoint(), kNDET, BmnNdetPoint::SetAddress(), and BmnNdetCell::SurfaceMCPoint.
◆ ProcessHits() [2/2]
| virtual Bool_t BmnNdet::ProcessHits |
( |
FairVolume * |
vol = nullptr | ) |
|
|
virtual |
Processes hits and creates BmnNdetPoints.
- Parameters
-
| vol | Pointer to the active volume |
- Returns
- kTRUE if the volume is sensitive and a hit is processed, otherwise kFALSE
◆ Register() [1/2]
| void BmnNdet::Register |
( |
| ) |
|
|
virtual |
Registers the hit collection in the ROOT manager
Definition at line 204 of file BmnNdet.cxx.
◆ Register() [2/2]
| virtual void BmnNdet::Register |
( |
| ) |
|
|
virtual |
Registers the hit collection in the ROOT manager
◆ RemoveHit() [1/2]
| void BmnNdet::RemoveHit |
( |
Int_t |
index | ) |
|
◆ RemoveHit() [2/2]
| void BmnNdet::RemoveHit |
( |
Int_t |
index | ) |
|
Remove hit from hits collection by index.
- Parameters
-
◆ Reset() [1/2]
◆ Reset() [2/2]
| virtual void BmnNdet::Reset |
( |
| ) |
|
|
virtual |
Clears the hit collection
The documentation for this class was generated from the following files: