11#include <reconstruction/dataobjects/DedxConstants.h>
13#include <framework/datastore/RelationsObject.h>
14#include <framework/gearbox/Const.h>
41 for (
int i = 0; i <= Dedx::c_SVD; i++)
50 void addHit(
int sid,
int layer,
int adcCount,
double dx,
double dEdx)
60 void addDedx(
int layer,
double distance,
double dedxValue)
63 dist.push_back(distance);
64 dedx.push_back(dedxValue);
71 int iDet = (int)(detector - Const::PXD);
72 if (iDet < 0 or iDet > Dedx::c_SVD)
80 int iDet = (int)(detector - Const::PXD);
81 if (iDet < 0 or iDet > Dedx::c_SVD)
89 int iDet = (int)(detector - Const::PXD);
90 if (iDet < 0 or iDet > Dedx::c_SVD)
static const unsigned int c_SetSize
Number of elements (for use in array bounds etc.)
EDetector
Enum for identifying the detector components (detector and subdetector).
Defines interface for accessing relations of objects in StoreArray.
Extract dE/dx from fitted tracks.
Debug output for VXDDedxPID module.
void addHit(int sid, int layer, int adcCount, double dx, double dEdx)
Add a single hit to the object.
void addDedx(int layer, double distance, double dedxValue)
add dE/dx information for a VXD layer
int getSensorID(int i) const
Return the sensor ID for this hit.
int getADCCount(int i) const
Return the adcCount for this hit.
double m_p
momentum at the IP
int m_trackID
ID number of the Track.
std::vector< double > m_dx
path length in layer
int getLayer(int i) const
Return the (global) layer number.
double m_dedxAvgTruncated[2]
dE/dx truncated mean per track
ClassDef(VXDDedxTrack, 2)
Debug output for VXDDedxPID module.
short m_nHitsUsed
number of hits on this track used in the truncated mean
short m_charge
particle charge from tracking (+1 or -1)
double getDx(int i) const
Return the path length through the layer.
std::vector< int > m_layer
VXD layer number.
std::vector< int > m_adcCount
adcCount per hit
double getDedxError(Const::EDetector detector) const
Get the error on the dE/dx truncated mean for given detector.
double m_motherPDG
MC PID of mother particle.
int m_eventID
event in which this Track was found
double getCosTheta() const
Return cos(theta) for this yrack.
double getTrueMomentum() const
Return the MC truemomentum valid at the IP.
double getDedxMean(Const::EDetector detector) const
Get the dE/dx mean for given detector.
double m_cosTheta
cos(theta) for the track
double m_vxdLogl[Const::ChargedStable::c_SetSize]
log likelihood for each particle, not including momentum prior
double getDedx(Const::EDetector detector) const
Get dE/dx truncated mean for given detector.
double getNHitsUsed() const
Return the number of hits used to determine the truncated mean.
double m_length
total distance travelled by the track
std::vector< int > m_sensorID
unique sensor ID
double m_dedxAvgTruncatedErr[2]
standard deviation of m_dedxAvgTruncated
std::vector< double > getDedxList() const
Return the vector of dE/dx values for this track.
double size() const
Return the number of hits for this track.
double m_dedxAvg[2]
dE/dx mean value per track
double m_pTrue
MC true momentum.
double getDedx(int i) const
Return the dE/dx value for this hit.
double trackID() const
Return the track ID.
std::vector< double > dist
distance flown through active medium in current segment
short m_nHits
number of hits on this track
double eventID() const
Return the event ID.
std::vector< double > m_dEdx
charge per path length
VXDDedxTrack()
Default constructor.
std::vector< double > dedxLayer
layer id corresponding to dE/dx measurement
std::vector< double > dedx
extracted dE/dx (arb.
double getMomentum() const
Return the momentum valid at the IP.
Abstract base class for different kinds of events.