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 "Stiostream.h"
00030 #include "StTofMCSlat.h"
00031
00032 static const char rcsid[] = "$Id: StTofMCSlat.cxx,v 2.5 2003/09/02 17:58:06 perev Exp $";
00033
00034 ClassImp(StTofMCSlat)
00035
00036 StTofMCSlat::StTofMCSlat() { }
00037
00038 StTofMCSlat::StTofMCSlat(const StTofMCInfo& MCInfo) :
00039 mTofMCInfo(MCInfo) { }
00040
00041 StTofMCSlat::~StTofMCSlat() { }
00042
00043 int
00044 StTofMCSlat::operator==(const StTofMCSlat& MCSlat) const
00045 {
00046 return (MCSlat.mSlatIndex == mSlatIndex && MCSlat.mTofMCInfo == mTofMCInfo);
00047 }
00048
00049 int
00050 StTofMCSlat::operator!=(const StTofMCSlat& MCSlat) const
00051 {
00052 return !(*this == MCSlat);
00053 }
00054
00055 ostream&
00056 operator<<(ostream& os, const StTofMCSlat& slat)
00057 {
00058 return (os << "StTofMCSlat::> " << " Id= " << slat.slatIndex()
00059 << ", adc= " << slat.adc()
00060 << ", tdc= " << slat.tdc() << endl
00061 << "MCInfo: " << slat.mcInfo());
00062 }