00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include "StBTofRawHit.h"
00023
00024 static const char rcsid[] = "$Id: StBTofRawHit.cxx,v 2.2 2009/01/15 00:48:10 ullrich Exp $";
00025
00026 ClassImp(StBTofRawHit)
00027
00028 StBTofRawHit::StBTofRawHit()
00029 {
00030 mFlag = 0;
00031 mTray = 0;
00032 mChannel = 0;
00033 mTdc = 0;
00034 }
00035
00036 StBTofRawHit::StBTofRawHit(char iflag, unsigned char tray,
00037 unsigned char channel, unsigned int rawTdc)
00038 {
00039 mFlag = iflag;
00040 mTray = tray;
00041 mChannel = channel;
00042 mTdc = rawTdc;
00043 }
00044
00045 StBTofRawHit::~StBTofRawHit() { }
00046
00047 int StBTofRawHit::operator==(const StBTofRawHit& p) const
00048 {
00049 return (p.mFlag == mFlag &&
00050 p.mTray == mTray &&
00051 p.mChannel == mChannel &&
00052 p.mTdc == mTdc );
00053 }
00054
00055 int StBTofRawHit::operator!=(const StBTofRawHit& p) const
00056 {
00057 return !(*this == p);
00058 }
00059
00060 ostream&
00061 operator<<(ostream &os, const StBTofRawHit& hit)
00062 {
00063 os << " Flag " << hit.flag() << endl
00064 << " Tray " << hit.tray() << endl
00065 << " Channel " << hit.channel() << endl
00066 << " Tdc " << hit.tdc() << endl ;
00067 return os;
00068 }