42 #ifndef _ST_FGT_STATUS_MAKER_
43 #define _ST_FGT_STATUS_MAKER_
47 #include "StRoot/StFgtUtil/StFgtConsts.h"
53 enum { PED_OUT_OF_RANGE = 0, RMS_OUT_OF_RANGE = 1, FRAC_OUT_OF_RANGE = 2, APV_DEAD = 4,
54 MASKED_OUT = 5, INVALID_ID = 6 };
57 StFgtStatusMaker(
const Char_t* name =
"FgtStatusMaker",
const Char_t* pedMakerName =
"FgtPedMaker" );
75 void setToSaveToFile(
const Char_t* filename );
76 void setTimeBin( Short_t timeBin = 2 );
77 void setPedRange( Float_t min, Float_t max );
78 void setRmsRange( Float_t min, Float_t max );
79 void setFracRange( Float_t min, Float_t max );
80 void setMaxDeadPerApv( Float_t max );
83 virtual const char *GetCVS()
const;
85 typedef UChar_t status_t;
89 std::vector< status_t* > stripStatusVec;
91 apvData_t() : numDead( kFgtNumChannels ) { };
96 std::string mPedMkrName;
103 std::string mFilename;
106 Float_t mMinPed, mMaxPed, mMinRMS, mMaxRMS, mMinFrac, mMaxFrac;
113 typedef std::vector< apvData_t > apvDataVec_t;
118 apvDataVec_t mApvData;
132 inline void StFgtStatusMaker::setToSaveToFile(
const Char_t* filename ){ mFilename = filename; };
133 inline void StFgtStatusMaker::setTimeBin( Short_t bin ){ mTimeBin = bin; };
135 inline void StFgtStatusMaker::setPedRange( Float_t min, Float_t max ){ mMinPed = min; mMaxPed = max; };
136 inline void StFgtStatusMaker::setRmsRange( Float_t min, Float_t max ){ mMinRMS = min; mMaxRMS = max; };
137 inline void StFgtStatusMaker::setFracRange( Float_t min, Float_t max ){ mMinFrac = min; mMaxFrac = max; };
138 inline void StFgtStatusMaker::setMaxDeadPerApv( Float_t max ){ mMaxDead = max; };
139 inline const char *StFgtStatusMaker::GetCVS()
const {
140 static const char cvs[] =
"Tag $Name: $ $Id: StFgtStatusMaker.h,v 1.2 2014/08/06 11:43:13 jeromel Exp $ built " __DATE__
" " __TIME__ ;