60 #include "StTrsZeroSuppressedReader.hh"
64 #if defined (__SUNPRO_CC) && __SUNPRO_CC >= 0x500
68 #ifndef ST_NO_EXCEPTIONS
70 # if !defined(ST_NO_NAMESPACES)
71 using std::out_of_range;
75 #include "StGlobals.hh"
76 #include "StTrsRawDataEvent.hh"
78 StTrsZeroSuppressedReader::StTrsZeroSuppressedReader(
StTpcRawData* ev) :mSector(-1), mTheSector(0), mTrsEvent(0) {
84 cerr <<
"Error constructing StTrsZeroSuppressedReader" << endl;
85 cerr <<
"Cast Failed! ev not of required type (StTrsRawDataEvent*)\n";
90 Int_t StTrsZeroSuppressedReader::setSector(Int_t sector)
97 if(checkTheData(sector)) {
99 mTheSector = mTrsEvent->getSector(sector);
105 Int_t StTrsZeroSuppressedReader::checkTheData(UInt_t which)
109 if(mTrsEvent->size() >= which)
110 if ( (mTrsEvent->getSector(which)) ) status = 1;