![]() |
Belle II Software
release-05-02-19
|
Class to hold reconstructed track, interface to fortran. More...
#include <TOPtrack.h>
Public Member Functions | |
TOPtrack () | |
Default constructor. | |
TOPtrack (double x, double y, double z, double Px, double Py, double Pz, double Tlen, int Q, int pdg=0) | |
Constructor with track parameters. More... | |
TOPtrack (const Track *track, const Const::ChargedStable &chargedStable=Const::pion) | |
Constructor from mdst track - isValid() must be checked before using the object. More... | |
TOPtrack (const Track *track, int moduleID, const Const::ChargedStable &chargedStable=Const::pion) | |
Constructor from mdst track - isValid() must be checked before using the object. More... | |
bool | isValid () const |
Check if track is properly defined. More... | |
const TVector3 & | getPosition () const |
Return spatial position. More... | |
const TVector3 & | getMomentum () const |
Return momentum vector. More... | |
double | getX () const |
Return position component. More... | |
double | getY () const |
Return position component. More... | |
double | getZ () const |
Return position component. More... | |
double | getPx () const |
Return momentum component. More... | |
double | getPy () const |
Return momentum component. More... | |
double | getPz () const |
Return momentum component. More... | |
double | getTrackLength () const |
Return track length from IP to current position. More... | |
double | getTOF (double mass) const |
Return time-of-flight from IP to current position for given particle mass. More... | |
double | getTOF (const Const::ChargedStable &particle) const |
Return time-of-flight from IP to current position for given charged stable. More... | |
void | setTrackLength (double tof, double mass) |
Set track length from time-of-flight and particle mass. More... | |
void | setTrackLength (double tof, const Const::ChargedStable &particle) |
Set track length from time-of-flight and given charged stable. More... | |
double | getP () const |
Return momentum magnitude. More... | |
double | getTheta () const |
Return momentum polar angle. More... | |
double | getPhi () const |
Return momentum azimuthal angle. More... | |
int | getPDGcode () const |
Return PDG code. More... | |
int | getCharge () const |
Return charge. More... | |
int | getHypID () const |
Return internal particle code. More... | |
int | getModuleID () const |
Return module ID. More... | |
bool | atTop () const |
Check if toTop() was already called. More... | |
const Track * | getTrack () const |
Return mdst track if this track is constructed from it. More... | |
const ExtHit * | getExtHit () const |
Return extrapolated hit (track entrance to the bar) if this track is constructed from mdst track. More... | |
const MCParticle * | getMCParticle () const |
Return MC particle assigned to this track (if any) More... | |
const TOPBarHit * | getBarHit () const |
Return bar hit of MC particle assigned to this track (if any) More... | |
int | toTop () |
Propagate track to TOP counter (assuming uniform B field along z) More... | |
void | smear (double sig_x, double sig_z, double sig_theta, double sig_phi) |
Smear track. More... | |
void | dump () const |
Print track parameters to std output. | |
Private Member Functions | |
int | findModule () |
Finds moduleID the track is crossing. More... | |
Private Attributes | |
bool | m_valid = false |
true for properly defined track | |
TVector3 | m_position |
position vector | |
TVector3 | m_momentum |
momentum vector | |
double | m_trackLength = 0 |
track length from IP to point | |
int | m_charge = 0 |
charge | |
int | m_pdg = 0 |
PDG code (optional) | |
bool | m_atTop = false |
true, if toTop() called | |
int | m_moduleID = 0 |
module ID or 0 | |
const Track * | m_track = 0 |
pointer to mdst track or NULL | |
const ExtHit * | m_extHit = 0 |
pointer to extrapolated hit or NULL | |
const MCParticle * | m_mcParticle = 0 |
pointer to MC particle or NULL | |
const TOPBarHit * | m_barHit = 0 |
pointer to bar hit or NULL | |
Class to hold reconstructed track, interface to fortran.
Input to TOPreco.
Definition at line 42 of file TOPtrack.h.
TOPtrack | ( | double | x, |
double | y, | ||
double | z, | ||
double | Px, | ||
double | Py, | ||
double | Pz, | ||
double | Tlen, | ||
int | Q, | ||
int | pdg = 0 |
||
) |
Constructor with track parameters.
x | track spatial position x |
y | track spatial position y |
z | track spatial position z |
Px | track momentum component x |
Py | track momentum component y |
Pz | track momentum component z |
Tlen | track length from IP |
Q | track charge |
pdg | PDG code (optional) |
Definition at line 41 of file TOPtrack.cc.
|
explicit |
Constructor from mdst track - isValid() must be checked before using the object.
track | mdst track pointer |
chargedStable | hypothesis used in mdst track extrapolation (default: pion) |
Definition at line 53 of file TOPtrack.cc.
TOPtrack | ( | const Track * | track, |
int | moduleID, | ||
const Const::ChargedStable & | chargedStable = Const::pion |
||
) |
Constructor from mdst track - isValid() must be checked before using the object.
track | mdst track pointer |
moduleID | module (=slot) ID |
chargedStable | hypothesis used in mdst track extrapolation (default: pion) |
Definition at line 112 of file TOPtrack.cc.
|
inline |
Check if toTop() was already called.
Definition at line 223 of file TOPtrack.h.
|
private |
Finds moduleID the track is crossing.
Definition at line 248 of file TOPtrack.cc.
|
inline |
Return bar hit of MC particle assigned to this track (if any)
Definition at line 248 of file TOPtrack.h.
|
inline |
|
inline |
Return extrapolated hit (track entrance to the bar) if this track is constructed from mdst track.
Definition at line 236 of file TOPtrack.h.
int getHypID | ( | ) | const |
Return internal particle code.
Definition at line 177 of file TOPtrack.cc.
|
inline |
Return MC particle assigned to this track (if any)
Definition at line 242 of file TOPtrack.h.
|
inline |
Return module ID.
Definition at line 217 of file TOPtrack.h.
|
inline |
|
inline |
|
inline |
|
inline |
Return momentum azimuthal angle.
Definition at line 193 of file TOPtrack.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Return time-of-flight from IP to current position for given charged stable.
particle | charged stable particle |
Definition at line 155 of file TOPtrack.h.
double getTOF | ( | double | mass | ) | const |
Return time-of-flight from IP to current position for given particle mass.
mass | particle mass |
Definition at line 163 of file TOPtrack.cc.
|
inline |
Return mdst track if this track is constructed from it.
Definition at line 229 of file TOPtrack.h.
|
inline |
Return track length from IP to current position.
Definition at line 141 of file TOPtrack.h.
|
inline |
|
inline |
|
inline |
|
inline |
Check if track is properly defined.
Definition at line 87 of file TOPtrack.h.
|
inline |
Set track length from time-of-flight and given charged stable.
tof | time-of-flight |
particle | charged stable particle |
Definition at line 172 of file TOPtrack.h.
void setTrackLength | ( | double | tof, |
double | mass | ||
) |
Set track length from time-of-flight and particle mass.
tof | time-of-flight |
mass | particle mass |
Definition at line 170 of file TOPtrack.cc.
void smear | ( | double | sig_x, |
double | sig_z, | ||
double | sig_theta, | ||
double | sig_phi | ||
) |
Smear track.
sig_x | sigma in x |
sig_z | sigma in z |
sig_theta | sigma in theta |
sig_phi | sigma in phi |
Definition at line 209 of file TOPtrack.cc.
int toTop | ( | ) |
Propagate track to TOP counter (assuming uniform B field along z)
Definition at line 186 of file TOPtrack.cc.