29 #include "StTofSlat.h"
32 static const char rcsid[] =
"$Id: StTofSlat.cxx,v 2.7 2003/07/28 21:00:22 ullrich Exp $";
37 : mSlatIndex(0), mAdc(0), mTdc(0), mAssociatedTrack(0)
40 StTofSlat::StTofSlat(
unsigned short slatId,
unsigned short rawAdc,
42 float zhit,
unsigned short hitprof,
unsigned short matchflag)
43 : mSlatIndex(slatId), mAdc(rawAdc), mTdc(rawTdc), mAssociatedTrack(track),
44 mZhit(zhit), mHitProf(hitprof), mMatchFlag(matchflag)
47 StTofSlat::~StTofSlat() { }
50 StTofSlat::setAssociatedTrack(
StTrack* val) {mAssociatedTrack = val;}
53 StTofSlat::associatedTrack() {
return mAssociatedTrack;}
56 StTofSlat::associatedTrack()
const {
return mAssociatedTrack;}
62 StTofSlat::position()
const {
return mPosition;}
66 StTofSlat::operator==(
const StTofSlat& p)
const
68 return (p.mSlatIndex == mSlatIndex &&
69 p.mAdc == mAdc && p.mTdc == mTdc &&
70 p.mAssociatedTrack == mAssociatedTrack &&
72 p.mHitProf == mHitProf &&
73 p.mMatchFlag == mMatchFlag);
77 StTofSlat::operator!=(
const StTofSlat& p)
const