![]() |
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 ROOT::Math::XYVector | 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 ROOT::Math::XYZVector | getRecoPos3D (const CDCHit *ptrHit) const |
| Getter for the three dimensional position of the primary ionisation for the hit. | |
| const ROOT::Math::XYZVector | 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. | |
| TrackingUtilities::Index | getInTrackId (const CDCHit *ptrHit) const |
| Returns the position of the wire hit in the track along the travel direction. | |
| TrackingUtilities::Index | getInTrackSegmentId (const CDCHit *ptrHit) const |
| Returns the id of the segment in the track. | |
| TrackingUtilities::Index | getNPassedSuperLayers (const CDCHit *ptrHit) const |
| Returns the number of superlayers the track traversed until this hit. | |
| TrackingUtilities::Index | getNLoops (const CDCHit *ptrHit) const |
| Returns the number of loops the track traversed until this hit. | |
| TrackingUtilities::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 39 of file CDCMCHitLookUp.cc.
| const ROOT::Math::XYZVector getClosestPrimaryRecoPos3D | ( | const CDCHit * | ptrHit | ) | const |
Getter for the three dimensional position of the ionisation of the primary simulated hit for the hit.
Definition at line 91 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 104 of file CDCMCHitLookUp.cc.
|
static |
Getter for the singletone instance.
Definition at line 33 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 130 of file CDCMCHitLookUp.cc.
| Index getInTrackSegmentId | ( | const CDCHit * | ptrHit | ) | const |
Returns the id of the segment in the track.
Definition at line 136 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 51 of file CDCMCHitLookUp.cc.
| ITrackType getMCTrackId | ( | const CDCHit * | ptrHit | ) | const |
Returns the track id for the hit.
Definition at line 123 of file CDCMCHitLookUp.cc.
| Index getNLoops | ( | const CDCHit * | ptrHit | ) | const |
Returns the number of loops the track traversed until this hit.
Definition at line 148 of file CDCMCHitLookUp.cc.
| Index getNPassedSuperLayers | ( | const CDCHit * | ptrHit | ) | const |
Returns the number of superlayers the track traversed until this hit.
Definition at line 142 of file CDCMCHitLookUp.cc.
| const ROOT::Math::XYZVector getRecoPos3D | ( | const CDCHit * | ptrHit | ) | const |
Getter for the three dimensional position of the primary ionisation for the hit.
Definition at line 85 of file CDCMCHitLookUp.cc.
| float getRefDriftLength | ( | const CDCHit * | ptrHit | ) | const |
Getter for the reference drift length in the two dimensional projection.
Definition at line 75 of file CDCMCHitLookUp.cc.
| const ROOT::Math::XYVector 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.
Definition at line 57 of file CDCMCHitLookUp.cc.
| ERightLeft getRLInfo | ( | const CDCHit * | ptrHit | ) | const |
Returns the true right left passage information.
Definition at line 110 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 45 of file CDCMCHitLookUp.cc.
| bool isBackground | ( | const CDCHit * | ptrHit | ) | const |
Returns if this hit is considered background.
Definition at line 116 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 97 of file CDCMCHitLookUp.cc.