34 #include "StFgtStatusReader.h"
35 #include "StRoot/StFgtUtil/StFgtConsts.h"
38 inline StFgtStatusReader::StFgtStatusReader(
const Char_t* filename ) :
39 mFilename( filename ) {
42 mStatusVec.resize( kFgtNumTimeBins * kFgtNumElecIds );
46 Int_t StFgtStatusReader::Init(){
48 mStatusVec.assign( kFgtNumTimeBins * kFgtNumElecIds, 0xFF );
50 std::ifstream fin( mFilename.data() );
53 std::cerr <<
"Error opening file '" << mFilename <<
"'" << std::endl;
60 while( !fin.eof() && !ierr ){
61 fin >> elecId >> status;
62 mStatusVec[ elecId ] = status;