39 #ifndef _ST_FGT_PED_READER_
40 #define _ST_FGT_PED_READER_
46 #include "StRoot/StFgtUtil/StFgtConsts.h"
67 void getPed( Int_t elecId, Int_t timebin, Float_t& ped, Float_t& err )
const;
72 void setTimeBinMask( Short_t mask = 0xFF );
79 ped_t( Float_t p=0, Float_t err=1e10 );
80 operator float()
const;
90 std::string mFilename;
96 key_t( Int_t elecId = 0, Int_t timeBin = 0);
101 typedef std::vector< ped_t > PedVec_t;
112 inline StFgtPedReader::~StFgtPedReader(){ };
115 inline void StFgtPedReader::setTimeBinMask( Short_t mask ){ mTimeBinMask = mask; };
118 inline StFgtPedReader::key_t::key_t( Int_t elecId, Int_t timeBin ){
119 code = elecId*kFgtNumTimeBins + timeBin;
122 inline StFgtPedReader::key_t::operator int()
const {
127 inline StFgtPedReader::ped_t::ped_t( Float_t p, Float_t e ) : ped(p), err(e) { };