26#ifndef ALICEO2_EXT_HIT_H
27#define ALICEO2_EXT_HIT_H
64 Hit(
int trackID,
unsigned short sensorID,
const TVector3& startPos,
const TVector3& endPos,
65 const TVector3& startMom,
double startE,
double endTime,
double eLoss,
66 unsigned char startStatus,
unsigned char endStatus,
int pdg = 0,
float length = 0.f)
67 :
BasicXYZEHit(endPos.X(), endPos.Y(), endPos.Z(), endTime, eLoss, trackID, sensorID),
68 mMomentum(startMom.Px(), startMom.Py(), startMom.Pz()),
69 mPosStart(startPos.X(), startPos.Y(), startPos.Z()),
73 mTrackStatusEnd(endStatus),
74 mTrackStatusStart(startStatus)
79 math_utils::Point3D<float>
GetPosStart()
const {
return mPosStart; }
83 void SetPosStart(
const math_utils::Point3D<float>& p) { mPosStart = p; }
86 math_utils::Vector3D<float>
GetMomentum()
const {
return mMomentum; }
87 math_utils::Vector3D<float>&
GetMomentum() {
return mMomentum; }
88 float GetPx()
const {
return mMomentum.X(); }
89 float GetPy()
const {
return mMomentum.Y(); }
90 float GetPz()
const {
return mMomentum.Z(); }
91 float GetE()
const {
return mE; }
117 math_utils::Vector3D<float> mMomentum;
118 math_utils::Point3D<float> mPosStart;
122 unsigned char mTrackStatusEnd;
123 unsigned char mTrackStatusStart;
unsigned short GetDetectorID() const
math_utils::Vector3D< float > GetMomentum() const
math_utils::Point3D< float > GetPosStart() const
math_utils::Vector3D< float > & GetMomentum()
unsigned char GetStatusStart() const
unsigned char GetStatusEnd() const
friend std::ostream & operator<<(std::ostream &of, const Hit &point)
Hit(int trackID, unsigned short sensorID, const TVector3 &startPos, const TVector3 &endPos, const TVector3 &startMom, double startE, double endTime, double eLoss, unsigned char startStatus, unsigned char endStatus, int pdg=0, float length=0.f)
float GetTotalEnergy() const
void SetPosStart(const math_utils::Point3D< float > &p)
GLuint GLsizei GLsizei * length
Defining ITS Vertex explicitly as messageable.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...