Belle II Software development
|
Interface class to the Monte Carlo information for individual hits. More...
#include <CDCMCHitLookUp.h>
Public Member Functions | |
CDCMCHitLookUp ()=default | |
Default constructor, needs to be public for initialization in CDCMCManager. | |
CDCMCHitLookUp (CDCMCHitLookUp &)=delete | |
Singleton: Delete copy constructor and assignment operator. | |
CDCMCHitLookUp & | operator= (const CDCMCHitLookUp &)=delete |
Operator =. | |
void | fill () const |
Method for forwarding a request to fill the Monte Carlo lookup tables from Python. | |
const Belle2::CDCSimHit * | getSimHit (const CDCHit *ptrHit) const |
Getter for the CDCSimHit which is related to the CDCHit contained in the given wire hit. | |
const Belle2::MCParticle * | getMCParticle (const CDCHit *ptrHit) const |
Getter for the MCParticle which is related to the CDCHit contained in the given wire hit. | |
const Vector2D | getRefPos2D (const CDCHit *ptrHit) const |
Getter for the two dimensional reference position of the wire the given hit is located on - mainly for the python event display. | |
float | getRefDriftLength (const CDCHit *ptrHit) const |
Getter for the reference drift length in the two dimensional projection. | |
const Vector3D | getRecoPos3D (const CDCHit *ptrHit) const |
Getter for the three dimensional position of the primary ionisation for the hit. | |
const Vector3D | getClosestPrimaryRecoPos3D (const CDCHit *ptrHit) const |
Getter for the three dimensional position of the ionisation of the primary simulated hit for the hit. | |
bool | isReassignedSecondary (const CDCHit *ptrHit) const |
Indicates if the hit was reassigned to a different mc particle because it was caused by a secondary. | |
const CDCSimHit * | getClosestPrimarySimHit (const CDCHit *ptrHit) const |
Getter for the closest simulated hit of a primary particle to the given hit - may return nullptr of no closest is found. | |
ITrackType | getMCTrackId (const CDCHit *ptrHit) const |
Returns the track id for the hit. | |
bool | isBackground (const CDCHit *ptrHit) const |
Returns if this hit is considered background. | |
Index | getInTrackId (const CDCHit *ptrHit) const |
Returns the position of the wire hit in the track along the travel direction. | |
Index | getInTrackSegmentId (const CDCHit *ptrHit) const |
Returns the id of the segment in the track. | |
Index | getNPassedSuperLayers (const CDCHit *ptrHit) const |
Returns the number of superlayers the track traversed until this hit. | |
Index | getNLoops (const CDCHit *ptrHit) const |
Returns the number of loops the track traversed until this hit. | |
ERightLeft | getRLInfo (const CDCHit *ptrHit) const |
Returns the true right left passage information. | |
Static Public Member Functions | |
static const CDCMCHitLookUp & | getInstance () |
Getter for the singletone instance. | |
Interface class to the Monte Carlo information for individual hits.
This class provides a stable interface for the underlying implementation for look ups into the Monte Carlo information for the first stage of the algorithm.
Definition at line 31 of file CDCMCHitLookUp.h.
void fill | ( | ) | const |
Method for forwarding a request to fill the Monte Carlo lookup tables from Python.
Definition at line 36 of file CDCMCHitLookUp.cc.
Getter for the three dimensional position of the ionisation of the primary simulated hit for the hit.
Definition at line 88 of file CDCMCHitLookUp.cc.
Getter for the closest simulated hit of a primary particle to the given hit - may return nullptr of no closest is found.
Definition at line 101 of file CDCMCHitLookUp.cc.
|
static |
Getter for the singletone instance.
Definition at line 30 of file CDCMCHitLookUp.cc.
Index getInTrackId | ( | const CDCHit * | ptrHit | ) | const |
Returns the position of the wire hit in the track along the travel direction.
Definition at line 127 of file CDCMCHitLookUp.cc.
Index getInTrackSegmentId | ( | const CDCHit * | ptrHit | ) | const |
Returns the id of the segment in the track.
Definition at line 133 of file CDCMCHitLookUp.cc.
const Belle2::MCParticle * getMCParticle | ( | const CDCHit * | ptrHit | ) | const |
Getter for the MCParticle which is related to the CDCHit contained in the given wire hit.
Definition at line 48 of file CDCMCHitLookUp.cc.
ITrackType getMCTrackId | ( | const CDCHit * | ptrHit | ) | const |
Returns the track id for the hit.
Definition at line 120 of file CDCMCHitLookUp.cc.
Index getNLoops | ( | const CDCHit * | ptrHit | ) | const |
Returns the number of loops the track traversed until this hit.
Definition at line 145 of file CDCMCHitLookUp.cc.
Index getNPassedSuperLayers | ( | const CDCHit * | ptrHit | ) | const |
Returns the number of superlayers the track traversed until this hit.
Definition at line 139 of file CDCMCHitLookUp.cc.
Getter for the three dimensional position of the primary ionisation for the hit.
Definition at line 82 of file CDCMCHitLookUp.cc.
float getRefDriftLength | ( | const CDCHit * | ptrHit | ) | const |
Getter for the reference drift length in the two dimensional projection.
Definition at line 72 of file CDCMCHitLookUp.cc.
Getter for the two dimensional reference position of the wire the given hit is located on - mainly for the python event display.
Definition at line 54 of file CDCMCHitLookUp.cc.
ERightLeft getRLInfo | ( | const CDCHit * | ptrHit | ) | const |
Returns the true right left passage information.
Definition at line 107 of file CDCMCHitLookUp.cc.
const Belle2::CDCSimHit * getSimHit | ( | const CDCHit * | ptrHit | ) | const |
Getter for the CDCSimHit which is related to the CDCHit contained in the given wire hit.
Definition at line 42 of file CDCMCHitLookUp.cc.
bool isBackground | ( | const CDCHit * | ptrHit | ) | const |
Returns if this hit is considered background.
Definition at line 113 of file CDCMCHitLookUp.cc.
bool isReassignedSecondary | ( | const CDCHit * | ptrHit | ) | const |
Indicates if the hit was reassigned to a different mc particle because it was caused by a secondary.
Definition at line 94 of file CDCMCHitLookUp.cc.