Belle II Software development
|
Reconstructed track at TOP. More...
#include <TOPTrack.h>
Classes | |
struct | AssumedEmission |
assumed photon emission point in local frame More... | |
struct | SelectedHit |
selected photon hit from TOPDigits More... | |
struct | TrackAngles |
Sine and cosine of track polar and azimuthal angles at assumed photon emission. More... | |
Public Member Functions | |
TOPTrack () | |
Default constructor. | |
TOPTrack (const Track &track, const std::string &digitsName="", const Const::ChargedStable &chargedStable=Const::pion) | |
Constructor from mdst track - isValid() must be checked before using the object. | |
TOPTrack (const ExtHit *extHit, const std::string &digitsName="") | |
Constructor from extrapolated track hit - isValid() must be checked before using the object. | |
bool | overrideTransformation (const ROOT::Math::Transform3D &transform) |
Overrides transformation from local to nominal frame, which is by default obtained from DB. | |
bool | isValid () const |
Checks if track is successfully constructed. | |
int | getModuleID () const |
Returns slot ID. | |
double | getMomentumMag () const |
Returns momentum magnitude (extrapolated to TOP) | |
double | getTransverseMomentum () const |
Returns transverse momentum (at POCA) | |
double | getCharge () const |
Returns charge. | |
double | getTrackLength () const |
Returns track length from IP to the average position of photon emission within quartz. | |
double | getLengthInQuartz () const |
Returns track length within quartz. | |
double | getBeta (const Const::ChargedStable &particle, double overrideMass=0) const |
Returns particle beta. | |
const TOPTrack::AssumedEmission & | getEmissionPoint (double dL=0) const |
Returns assumed photon emission position and track direction. | |
double | getTOF (const Const::ChargedStable &particle, double dL=0, double overrideMass=0) const |
Returns time-of-flight from IP to photon emission position. | |
const TOP::HelixSwimmer & | getHelix () const |
Returns helix Helix is given in nominal slot frame and with reference position at average photon emission. | |
const Track * | getTrack () const |
Returns mdst track. | |
const ExtHit * | getExtHit () const |
Returns extrapolated hit (track entrance to the bar) | |
const MCParticle * | getMCParticle () const |
Returns MC particle assigned to this track (if any) | |
int | getPDGCode () const |
Returns PDG code of associated MCParticle (returns 0 if none) | |
const TOPBarHit * | getBarHit () const |
Returns bar hit of MC particle assigned to this track (if any) | |
const std::vector< SelectedHit > & | getSelectedHits () const |
Returns selected photon hits from TOPDigits belonging to the slot ID. | |
double | getBkgRate () const |
Returns estimated background hit rate. | |
bool | isScanRequired (unsigned col, double time, double wid) const |
Checks if scan method of YScanner is needed to construct PDF for a given pixel column. | |
Private Member Functions | |
void | set (const Track &track, const std::string &digitsName, const Const::ChargedStable &chargedStable) |
Sets the object (called by constructors) | |
bool | setHelix (const ROOT::Math::Transform3D &transform) |
Sets helix (helix is given in nominal frame) | |
bool | xsecPrism (std::vector< double > &lengths, std::vector< ROOT::Math::XYZPoint > &positions, const RaytracerBase::Prism &prism, const ROOT::Math::Transform3D &transform) |
Calculates intersection of trajectory with prism. | |
Private Attributes | |
int | m_moduleID = 0 |
slot ID | |
double | m_momentum = 0 |
track momentum magnitude at TOP | |
double | m_pT = 0 |
transverse momentum at POCA | |
double | m_charge = 0 |
track charge in units of elementary charge | |
double | m_TOFLength = 0 |
trajectory length corresponding to TOF of extrapolated hit | |
double | m_trackLength = 0 |
trajectory length from IP to average photon emission point | |
double | m_length = 0 |
trajectory length within quartz | |
TOP::HelixSwimmer | m_helix |
trajectory helix in nominal slot frame | |
DBObjPtr< TOPCalModuleAlignment > | m_alignment |
module alignment constants | |
DBObjPtr< TOPFrontEndSetting > | m_feSetting |
front-end settings | |
const Track * | m_track = 0 |
mdst track | |
const ExtHit * | m_extHit = 0 |
extrapolated hit | |
const MCParticle * | m_mcParticle = 0 |
MC particle. | |
const TOPBarHit * | m_barHit = 0 |
bar hit | |
bool | m_valid = false |
true for properly defined track | |
std::vector< SelectedHit > | m_selectedHits |
selected photon hits from TOPDigits belonging to this slot ID | |
double | m_bkgRate = 0 |
estimated background hit rate | |
std::unordered_multimap< unsigned, const SelectedHit * > | m_columnHits |
selected hits mapped to pixel columns | |
std::map< double, TOPTrack::AssumedEmission > | m_emissionPoints |
assumed emission points in module local frame | |
Reconstructed track at TOP.
Definition at line 39 of file TOPTrack.h.
|
inline |
|
explicit |
Constructor from mdst track - isValid() must be checked before using the object.
track | mdst track |
digitsName | name of TOPDigits collection |
chargedStable | hypothesis used in mdst track extrapolation |
Definition at line 40 of file TOPTrack.cc.
Constructor from extrapolated track hit - isValid() must be checked before using the object.
extHit | extrapolated track hit |
digitsName | name of TOPDigits collection |
Definition at line 68 of file TOPTrack.cc.
|
inline |
Returns bar hit of MC particle assigned to this track (if any)
Definition at line 238 of file TOPTrack.h.
|
inline |
Returns particle beta.
particle | particle mass hypothesis |
overrideMass | alternative mass value to be used to calculate beta. Ignored if <= 0. |
Definition at line 316 of file TOPTrack.h.
|
inline |
Returns estimated background hit rate.
Definition at line 250 of file TOPTrack.h.
|
inline |
Returns charge.
Definition at line 161 of file TOPTrack.h.
const TOPTrack::AssumedEmission & getEmissionPoint | ( | double | dL = 0 | ) | const |
Returns assumed photon emission position and track direction.
dL | length difference to the average emission position |
Definition at line 357 of file TOPTrack.cc.
|
inline |
Returns extrapolated hit (track entrance to the bar)
Definition at line 216 of file TOPTrack.h.
|
inline |
Returns helix Helix is given in nominal slot frame and with reference position at average photon emission.
Definition at line 204 of file TOPTrack.h.
|
inline |
Returns track length within quartz.
Definition at line 173 of file TOPTrack.h.
|
inline |
Returns MC particle assigned to this track (if any)
Definition at line 222 of file TOPTrack.h.
|
inline |
|
inline |
Returns momentum magnitude (extrapolated to TOP)
Definition at line 149 of file TOPTrack.h.
|
inline |
Returns PDG code of associated MCParticle (returns 0 if none)
Definition at line 228 of file TOPTrack.h.
|
inline |
Returns selected photon hits from TOPDigits belonging to the slot ID.
Definition at line 244 of file TOPTrack.h.
|
inline |
Returns time-of-flight from IP to photon emission position.
particle | particle mass hypothesis |
dL | length difference to the average emission position |
overrideMass | alternative mass value to be used to calculate beta. Ignored if <= 0. |
Definition at line 324 of file TOPTrack.h.
|
inline |
|
inline |
Returns track length from IP to the average position of photon emission within quartz.
Definition at line 167 of file TOPTrack.h.
|
inline |
Returns transverse momentum (at POCA)
Definition at line 155 of file TOPTrack.h.
bool isScanRequired | ( | unsigned | col, |
double | time, | ||
double | wid | ||
) | const |
Checks if scan method of YScanner is needed to construct PDF for a given pixel column.
col | pixel column (0-based) |
time | PDF peak time |
wid | PDF peak width squared |
Definition at line 370 of file TOPTrack.cc.
|
inline |
Checks if track is successfully constructed.
Definition at line 137 of file TOPTrack.h.
|
inline |
Overrides transformation from local to nominal frame, which is by default obtained from DB.
Needed for module alignment.
transform | transformation from local to nominal frame |
Definition at line 127 of file TOPTrack.h.
|
private |
Sets the object (called by constructors)
track | mdst track |
digitsName | name of TOPDigits collection |
chargedStable | hypothesis used in mdst track extrapolation |
Definition at line 91 of file TOPTrack.cc.
|
private |
Sets helix (helix is given in nominal frame)
transform | transformation from local to nominal frame |
Definition at line 170 of file TOPTrack.cc.
|
private |
Calculates intersection of trajectory with prism.
lengths | trajectory lengths relative to extHit position of intersection points [in/out] |
positions | positions of intersection points in module local frame [in/out] |
prism | prism geometry data |
transform | transformation from local to nominal frame |
Definition at line 273 of file TOPTrack.cc.
|
private |
module alignment constants
Definition at line 297 of file TOPTrack.h.
|
private |
bar hit
Definition at line 303 of file TOPTrack.h.
|
private |
estimated background hit rate
Definition at line 307 of file TOPTrack.h.
|
private |
track charge in units of elementary charge
Definition at line 292 of file TOPTrack.h.
|
private |
selected hits mapped to pixel columns
Definition at line 308 of file TOPTrack.h.
|
mutableprivate |
assumed emission points in module local frame
Definition at line 311 of file TOPTrack.h.
|
private |
extrapolated hit
Definition at line 301 of file TOPTrack.h.
|
private |
front-end settings
Definition at line 298 of file TOPTrack.h.
|
private |
trajectory helix in nominal slot frame
Definition at line 296 of file TOPTrack.h.
|
private |
trajectory length within quartz
Definition at line 295 of file TOPTrack.h.
|
private |
MC particle.
Definition at line 302 of file TOPTrack.h.
|
private |
slot ID
Definition at line 289 of file TOPTrack.h.
|
private |
track momentum magnitude at TOP
Definition at line 290 of file TOPTrack.h.
|
private |
transverse momentum at POCA
Definition at line 291 of file TOPTrack.h.
|
private |
selected photon hits from TOPDigits belonging to this slot ID
Definition at line 306 of file TOPTrack.h.
|
private |
trajectory length corresponding to TOF of extrapolated hit
Definition at line 293 of file TOPTrack.h.
|
private |
mdst track
Definition at line 300 of file TOPTrack.h.
|
private |
trajectory length from IP to average photon emission point
Definition at line 294 of file TOPTrack.h.
|
private |
true for properly defined track
Definition at line 304 of file TOPTrack.h.