34 #include "StParticleDefinition.hh"
48 mTOFExpectedAsElectron = 0;
49 mTOFExpectedAsPion = 0;
50 mTOFExpectedAsKaon = 0;
51 mTOFExpectedAsProton = 0;
52 mSigmaElectron = 999.;
58 mParticleHypothesis = 0;
61 StTofHit::~StTofHit() {}
64 StTofHit::trayIndex()
const {
return mTrayIndex; }
67 StTofHit::moduleIndex()
const {
return mModuleIndex; }
70 StTofHit::cellIndex()
const {
return mCellIndex; }
73 StTofHit::daqIndex()
const {
return mDaqIndex; }
76 StTofHit::cellCollIndex()
const {
return mCellCollIndex; }
79 StTofHit::timeOfFlight()
const {
return mTimeOfFlight; }
82 StTofHit::pathLength()
const {
return mPathLength; }
85 StTofHit::beta()
const {
return mBeta; }
88 StTofHit::associatedTrack() {
return mAssociatedTrack; }
91 StTofHit::associatedTrack()
const {
return mAssociatedTrack; }
94 StTofHit::tofExpectedAsElectron()
const {
return mTOFExpectedAsElectron; }
97 StTofHit::tofExpectedAsPion()
const {
return mTOFExpectedAsPion; }
100 StTofHit::tofExpectedAsKaon()
const {
return mTOFExpectedAsKaon; }
103 StTofHit::tofExpectedAsProton()
const {
return mTOFExpectedAsProton; }
106 StTofHit::sigmaElectron()
const {
return mSigmaElectron; }
109 StTofHit::sigmaPion()
const {
return mSigmaPion; }
112 StTofHit::sigmaKaon()
const {
return mSigmaKaon; }
115 StTofHit::sigmaProton()
const {
return mSigmaProton; }
118 StTofHit::particleHypothesis() {
return mParticleHypothesis; }
121 StTofHit::particleHypothesis()
const {
return mParticleHypothesis; }
124 StTofHit::setTrayIndex(
int trayId) { mTrayIndex = trayId; }
127 StTofHit::setModuleIndex(
int moduleId) { mModuleIndex = moduleId; }
130 StTofHit::setCellIndex(
int cellId) { mCellIndex = cellId; }
133 StTofHit::setDaqIndex(
int daqId) { mDaqIndex = daqId; }
136 StTofHit::setCellCollIndex(
int cellcollId) { mCellCollIndex = cellcollId; }
139 StTofHit::setTimeOfFlight(
float tof) { mTimeOfFlight = tof; }
142 StTofHit::setPathLength(
float length) { mPathLength = length; }
145 StTofHit::setBeta(
float b) { mBeta = b; }
148 StTofHit::setAssociatedTrack(
StTrack* val) {mAssociatedTrack = val;}
151 StTofHit::setTofExpectedAsElectron(
float tofexp) { mTOFExpectedAsElectron = tofexp; }
154 StTofHit::setTofExpectedAsPion(
float tofexp) { mTOFExpectedAsPion = tofexp; }
157 StTofHit::setTofExpectedAsKaon(
float tofexp) { mTOFExpectedAsKaon = tofexp; }
160 StTofHit::setTofExpectedAsProton(
float tofexp) { mTOFExpectedAsProton = tofexp; }
163 StTofHit::setSigmaElectron(
float sigma) { mSigmaElectron = sigma; }
166 StTofHit::setSigmaPion(
float sigma) { mSigmaPion = sigma; }
169 StTofHit::setSigmaKaon(
float sigma) { mSigmaKaon = sigma; }
172 StTofHit::setSigmaProton(
float sigma) { mSigmaProton = sigma; }