11#include <framework/datastore/RelationsObject.h>
12#include <framework/gearbox/Const.h>
52 void addDedx(
int nhitscombined,
int wirelongesthit,
int layer,
double distance,
double dedxValue)
64 void addHit(
int lwire,
int wire,
int layer,
double doca,
double docaRS,
double enta,
double entaRS,
65 int adcCount,
int adcbaseCount,
double dE,
double path,
double dedx,
double cellHeight,
double cellHalfWidth,
66 int driftT,
double driftD,
double driftDRes,
double wiregain,
double twodcor,
67 double onedcor,
int foundByTrackFinder,
double weightPionHypo,
double weightKaonHypo,
double weightProtHypo)
This module may be used to apply the corrections to dE/dx per the calibration constants.
Extract CDC dE/dx information from fitted tracks.
This class performs the same function as CDCDedxPIDModule, but does so without using real objects fro...
Debug output for CDCDedxPID module.
std::vector< double > m_hOnedCor
calibration 1-D correction (indexed on number of hits)
double m_cdcChi[Const::ChargedStable::c_SetSize]
chi values for each particle type
std::vector< double > m_hDocaRS
distance of closest approach to sense wire after rescalling cell L=W
std::vector< double > m_hDoca
distance of closest approach to sense wire
std::vector< int > m_lWireLongestHit
wire id for the longest hit in the layer
std::vector< double > m_hDedx
charge per path length (dE/dx)
double m_mcmass
MC PID mass.
std::vector< double > m_hCellHeight
height of the CDC cell
double getTimeMean() const
Return the injection gain for this track.
int getHitLayer(int i) const
Return the (global) layer number for a hit.
int getADCBaseCount(int i) const
Return the base adcCount (no non-linearity) for this hit.
double m_cosEdgeCor
calibration cosine edge correction
double getSimulatedDedx() const
Get the track-level MC dE/dx mean for this track.
int getADCCount(int i) const
Return the adcCount for this hit.
std::vector< double > m_hEnta
entrance angle in CDC cell
double m_dedxAvgTruncated
dE/dx truncated mean per track
void setDedx(int i, double dedx)
Set the dE/dx value for this hit.
double m_p
momentum at the IP
void setDedxError(double error)
Set the error on the dE/dx truncated mean for this track.
double getDriftDRes(int i) const
Return the drift distance resolution for this hit.
double m_dedxAvgTruncatedErr
standard deviation of m_dedxAvgTruncated
double getDedxMean() const
Get the dE/dx mean for this track.
double getDriftD(int i) const
Return the drift distance for this hit.
void setSimulatedDedx(double dedx)
Set the track level MC dE/dx mean for this track.
int getLayer(int i) const
Return the (global) layer number for a layer hit.
std::vector< int > m_hLayer
layer number
double m_dedxAvgTruncatedNoSat
dE/dx truncated mean per track without the saturation correction
double getDoca(int i) const
Return the distance of closest approach to the sense wire for this hit.
double getDedx() const
Get dE/dx truncated mean for this track.
double getPath(int i) const
Return the path length through the cell for this hit.
int getWireInLayer(int i) const
Return the sensor ID for this hit: wire number in the layer.
std::vector< int > m_hADCCount
adcCount per hit
double getPmean(int i) const
Return the PID (predicted mean) value.
std::vector< double > m_hWeightKaonHypo
weight for kaon hypothesis from KalmanFitterInfo
double getOneDCorrection(int i) const
Return the 1D correction for this hit.
int getWireLongestHit(int i) const
Return the wire number of the longest hit per layer.
CDCDedxTrack()
Default constructor.
double getWeightKaonHypo(int i) const
Return the max weights from KalmanFitterInfo using kaon hypothesis.
int m_lNHitsUsed
number of hits on this track used for truncated mean
double m_simDedx
track level MC dE/dx truncated mean
std::vector< int > m_hADCBaseCount
adcCount base count (uncorrected) per hit
void setDedx(double mean)
Set the dE/dx truncated average for this track.
double getCosineCorrection() const
Return the cosine correction for this track.
double getEntaRS(int i) const
Return rescaled enta value for cell height=width assumption.
double getLayerDedx(int i) const
Return the total dE/dx for this layer.
double getCellHalfWidth(int i) const
Return the half-width of the CDC cell.
std::vector< int > m_hLWire
wire ID within the layer
std::vector< int > m_hDriftT
drift time for each hit
std::vector< int > m_hFoundByTrackFinder
the 'found by track finder' flag for the given hit
double m_cosCor
calibration cosine correction
double getPDG() const
Get the identity of the particle.
std::vector< double > m_hTwodCor
calibration 2-D correction (indexed on number of hits)
std::vector< double > m_hWeightPionHypo
weight for pion hypothesis from KalmanFitterInfo
void setDedxMean(double mean)
Set the dE/dx mean for this track.
std::vector< double > m_hDriftD
drift distance for each hit
std::vector< double > m_hDriftDRes
drift distance resolution for each hit
std::vector< double > m_hPath
path length in the CDC cell
double m_predres[Const::ChargedStable::c_SetSize]
predicted dE/dx resolution
double getTwoDCorrection(int i) const
Return the 2D correction for this hit.
double m_motherPDG
MC PID of mother particle.
double m_runGain
calibration run gain
void addDedx(int nhitscombined, int wirelongesthit, int layer, double distance, double dedxValue)
add dE/dx information for a CDC layer
double m_timeGain
calibration injection time gain
std::vector< int > m_lNHitsCombined
number of hits combined in the layer
double getPreso(int i) const
Return the PID (predicted reso) value.
void addHit(int lwire, int wire, int layer, double doca, double docaRS, double enta, double entaRS, int adcCount, int adcbaseCount, double dE, double path, double dedx, double cellHeight, double cellHalfWidth, int driftT, double driftD, double driftDRes, double wiregain, double twodcor, double onedcor, int foundByTrackFinder, double weightPionHypo, double weightKaonHypo, double weightProtHypo)
Add a single hit to the object.
int getNLayerHits() const
Return the number of layer hits for this track.
int getFoundByTrackFinder(int i) const
Return the TrackFinder which added the given hit to track.
int getDriftT(int i) const
Return the drift time for this hit.
double getCosTheta() const
Return cos(theta) for this track.
std::vector< double > m_lPath
distance flown through active medium in current segment
double m_timeReso
calibration injection time gain
double getInjectionRing() const
Return cos(theta) for this track.
int getCharge() const
Return the charge for this track.
double m_cosTheta
cos(theta) for the track
double getWireGain(int i) const
Return the wire gain for this hit.
double getWeightPionHypo(int i) const
Return the max weights from KalmanFitterInfo using pion hypothesis.
double getTimeReso() const
Return the injection reso for this track.
int getWire(int i) const
Return the sensor ID for this hit: wire number for CDC (0-14336)
double m_scale
scale factor to make electrons ~1
std::vector< double > m_hWeightProtHypo
weight for proton hypothesis from KalmanFitterInfo
double getDocaRS(int i) const
Return rescaled doca value for cell height=width assumption.
std::vector< double > m_hEntaRS
entrance angle in CDC cell after rescalling cell L=W
double m_pCDC
momentum at the inner layer of the CDC
double m_length
total distance travelled by the track
double m_injring
injection ring type of track's event
double getCosEdgeCorrection() const
Return the cosine correction for this track.
double m_cdcLogl[Const::ChargedStable::c_SetSize]
log likelihood for each particle, not including momentum prior
std::vector< double > m_hWireGain
calibration hit gain (indexed on number of hits)
double getRunGain() const
Return the run gain for this track.
std::vector< double > getDedxList() const
Return the vector of dE/dx values for this track.
double m_dedxAvg
dE/dx mean value per track
void setLayerDedx(int i, double dedx)
Set the total dE/dx for this layer.
double getNonLADCCorrection(int i) const
Return the factor introduce for adcCount (non-linearity) correction.
void setDedxNoSat(double mean)
Set the dE/dx truncated average without the saturation correction for this track.
int m_charge
particle charge from tracking (+1 or -1)
std::vector< double > m_hCellHalfWidth
half-width of the CDC cell
ClassDef(CDCDedxTrack, 17)
Debug output for CDCDedxPID module.
double getDedxError() const
Get the error on the dE/dx truncated mean for this track.
double getWeightProtonHypo(int i) const
Return the max weights from KalmanFitterInfo using proton hypothesis.
double getEnta(int i) const
Return the entrance angle in the CDC cell for this hit.
double getInjectionTime() const
Return cos(theta) for this track.
double m_pTrue
MC true momentum.
int m_track
ID number of the Track.
double getDedx(int i) const
Return the dE/dx value for this hit.
double trackID() const
Return the track ID.
double m_injtime
time since last injection of track's event
double m_predmean[Const::ChargedStable::c_SetSize]
predicted dE/dx truncated mean
double getLayerPath(int i) const
Return the distance travelled in this layer.
std::vector< int > m_hWire
continuous wire ID in the CDC
double getChi(int i) const
Return the PID (chi) value.
std::vector< double > m_hdE
charge per hit
std::vector< double > m_lDedx
extracted dE/dx (arb.
double m_cosThetaTrue
MC true cos(theta)
double getScaleFactor() const
Return the scale factor for this track.
double getLength() const
Return the total path length for this track.
double getCellHeight(int i) const
Return the height of the CDC cell.
double getDE(int i) const
Return the ionization charge collected for this hit.
int getNHitsCombined(int i) const
Return the number of hits combined per layer.
double getDedxNoSat() const
Get dE/dx truncated mean without the saturation correction for this track.
int size() const
Return the number of hits for this track.
std::vector< int > m_lLayer
layer id corresponding to dedx
double getNLayerHitsUsed() const
Return the number of hits used to determine the truncated mean.
double getMomentum() const
Return the track momentum valid in the CDC.
static const unsigned int c_SetSize
Number of elements (for use in array bounds etc.)
Defines interface for accessing relations of objects in StoreArray.
Abstract base class for different kinds of events.