 |
Belle II Software
release-05-02-19
|
14 #include <framework/gearbox/Const.h>
54 TOPtrack(
double x,
double y,
double z,
double Px,
double Py,
double Pz,
55 double Tlen,
int Q,
int pdg = 0);
63 explicit TOPtrack(
const Track* track,
64 const Const::ChargedStable& chargedStable =
Const::pion);
72 TOPtrack(
const Track* track,
int moduleID,
73 const Const::ChargedStable& chargedStable =
Const::pion);
140 double getTOF(
double mass)
const;
149 return getTOF(particle.getMass());
255 void smear(
double sig_x,
double sig_z,
double sig_theta,
double sig_phi);
int getPDGcode() const
Return PDG code.
void setTrackLength(double tof, double mass)
Set track length from time-of-flight and particle mass.
const ExtHit * getExtHit() const
Return extrapolated hit (track entrance to the bar) if this track is constructed from mdst track.
const TOPBarHit * getBarHit() const
Return bar hit of MC particle assigned to this track (if any)
double getPx() const
Return momentum component.
int findModule()
Finds moduleID the track is crossing.
bool isValid() const
Check if track is properly defined.
int toTop()
Propagate track to TOP counter (assuming uniform B field along z)
double getP() const
Return momentum magnitude.
int getModuleID() const
Return module ID.
bool m_valid
true for properly defined track
const TOPBarHit * m_barHit
pointer to bar hit or NULL
const MCParticle * getMCParticle() const
Return MC particle assigned to this track (if any)
TOPtrack()
Default constructor.
double getY() const
Return position component.
static const ChargedStable pion
charged pion particle
Store one Ext hit as a ROOT object.
double getX() const
Return position component.
Class to store track parameters of incoming MC particles relation to MCParticle filled in top/simulat...
double getTheta() const
Return momentum polar angle.
Abstract base class for different kinds of events.
double getTOF(double mass) const
Return time-of-flight from IP to current position for given particle mass.
void dump() const
Print track parameters to std output.
bool m_atTop
true, if toTop() called
TVector3 m_momentum
momentum vector
const TVector3 & getPosition() const
Return spatial position.
double getPy() const
Return momentum component.
const Track * getTrack() const
Return mdst track if this track is constructed from it.
int getHypID() const
Return internal particle code.
const MCParticle * m_mcParticle
pointer to MC particle or NULL
int m_pdg
PDG code (optional)
const TVector3 & getMomentum() const
Return momentum vector.
void smear(double sig_x, double sig_z, double sig_theta, double sig_phi)
Smear track.
TVector3 m_position
position vector
Provides a type-safe way to pass members of the chargedStableSet set.
const Track * m_track
pointer to mdst track or NULL
Class that bundles various TrackFitResults.
A Class to store the Monte Carlo particle information.
double m_trackLength
track length from IP to point
double getZ() const
Return position component.
int getCharge() const
Return charge.
double getPhi() const
Return momentum azimuthal angle.
bool atTop() const
Check if toTop() was already called.
double getTrackLength() const
Return track length from IP to current position.
const ExtHit * m_extHit
pointer to extrapolated hit or NULL
int m_moduleID
module ID or 0
double getPz() const
Return momentum component.