00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include <Stiostream.h>
00021 #include "StTofMCCell.h"
00022
00023 static const char rcsid[] = "$Id: StTofMCCell.cxx,v 2.2 2003/09/02 17:58:05 perev Exp $";
00024
00025 ClassImp(StTofMCCell)
00026
00027 StTofMCCell::StTofMCCell() { }
00028
00029 StTofMCCell::StTofMCCell(const StTofMCInfo& MCInfo) :
00030 mTofMCInfo(MCInfo) { }
00031
00032 StTofMCCell::~StTofMCCell() { }
00033
00034 int
00035 StTofMCCell::operator==(const StTofMCCell& MCCell) const
00036 {
00037 return (MCCell.mTrayIndex == mTrayIndex &&
00038 MCCell.mModuleIndex == mModuleIndex &&
00039 MCCell.mCellIndex == mCellIndex && MCCell.mTofMCInfo == mTofMCInfo);
00040 }
00041
00042 int
00043 StTofMCCell::operator!=(const StTofMCCell& MCCell) const
00044 {
00045 return !(*this == MCCell);
00046 }
00047
00048 ostream&
00049 operator<<(ostream& os, const StTofMCCell& cell)
00050 {
00051 return (os << "StTofMCCell::> " << ", tray= " << cell.trayIndex()
00052 << ", module= " << cell.moduleIndex() << ", cell= "
00053 << cell.cellIndex() << ", adc= " << cell.adc()
00054 << ", tdc= " << cell.tdc() << endl << "MCInfo: " << cell.mcInfo());
00055 }