00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #include "StTofSlat.h"
00030 #include "StTrack.h"
00031
00032 static const char rcsid[] = "$Id: StTofSlat.cxx,v 2.7 2003/07/28 21:00:22 ullrich Exp $";
00033
00034 ClassImp(StTofSlat)
00035
00036 StTofSlat::StTofSlat()
00037 : mSlatIndex(0), mAdc(0), mTdc(0), mAssociatedTrack(0)
00038 { }
00039
00040 StTofSlat::StTofSlat(unsigned short slatId, unsigned short rawAdc,
00041 unsigned short rawTdc, StTrack *track,
00042 float zhit, unsigned short hitprof, unsigned short matchflag)
00043 : mSlatIndex(slatId), mAdc(rawAdc), mTdc(rawTdc), mAssociatedTrack(track),
00044 mZhit(zhit), mHitProf(hitprof), mMatchFlag(matchflag)
00045 { }
00046
00047 StTofSlat::~StTofSlat() { }
00048
00049 void
00050 StTofSlat::setAssociatedTrack(StTrack* val) {mAssociatedTrack = val;}
00051
00052 StTrack*
00053 StTofSlat::associatedTrack() {return mAssociatedTrack;}
00054
00055 const StTrack*
00056 StTofSlat::associatedTrack() const {return mAssociatedTrack;}
00057
00058 void
00059 StTofSlat::setPosition(const StThreeVectorF& p) {mPosition = p;}
00060
00061 const StThreeVectorF&
00062 StTofSlat::position() const {return mPosition;}
00063
00064
00065 int
00066 StTofSlat::operator==(const StTofSlat& p) const
00067 {
00068 return (p.mSlatIndex == mSlatIndex &&
00069 p.mAdc == mAdc && p.mTdc == mTdc &&
00070 p.mAssociatedTrack == mAssociatedTrack &&
00071 p.mZhit == mZhit &&
00072 p.mHitProf == mHitProf &&
00073 p.mMatchFlag == mMatchFlag);
00074 }
00075
00076 int
00077 StTofSlat::operator!=(const StTofSlat& p) const
00078 {
00079 return !(*this == p);
00080 }
00081