140 #ifndef _ST_FGT_A2C_MAKER_H_
141 #define _ST_FGT_A2C_MAKER_H_
145 #include "StRoot/StEvent/StFgtStrip.h"
169 void setAbsThres( Float_t thres );
175 void setClusterThreshold( Float_t threshold );
176 void setPedSigFactor4Charge( Float_t factor);
177 void useLeastRestrictiveSeed(Bool_t v);
180 void setPedestalFile(
const Char_t* filename);
181 void setStatusFile(
const Char_t* filename);
184 virtual const char *GetCVS()
const
185 {
static const char cvs[]=
"Tag $Name: $ $Id: StFgtA2CMaker.h,v 1.24 2014/08/06 11:43:09 jeromel Exp $ built " __DATE__
" " __TIME__ ;
return cvs;}
190 Bool_t mAcceptLongPulses;
192 Float_t mAbsThres, mRelThres,mClusterThreshold,mPedSigFactor4Charge;
193 Bool_t mUseLeastRestrictiveSeed;
196 std::string mPedFilename;
197 Float_t mPed[kFgtNumElecIds],mPedRMS[kFgtNumElecIds];
199 std::string mStatusFilename;
200 Int_t mStatus[kFgtNumElecIds];
201 Bool_t mReadStatusFile;
207 void readPedFile(Int_t elecId, Float_t &ped, Float_t &pedrms);
208 void readStatusFile(Int_t elecId, UInt_t &status);
220 inline void StFgtA2CMaker::setClusterThreshold( Float_t threshold ){ mClusterThreshold = threshold; };
221 inline void StFgtA2CMaker::setAbsThres( Float_t thres ){ mAbsThres = thres; };
226 inline void StFgtA2CMaker::setPedSigFactor4Charge( Float_t factor){ mPedSigFactor4Charge=factor;}
227 inline void StFgtA2CMaker::useLeastRestrictiveSeed(Bool_t v){ mUseLeastRestrictiveSeed=v;}
228 inline void StFgtA2CMaker::setPedestalFile(
const Char_t* filename ){ mPedFilename = filename; };
229 inline void StFgtA2CMaker::setStatusFile(
const Char_t* filename ){ mStatusFilename = filename; };
void acceptLongPulses(Bool_t accept)
set status mask to some other value
void setRelThres(Float_t thres)
set to below -kFgtMaxAdc (-4096) to skip cut
Int_t Init()
Does nothing else than printing "we are here".
void doCutBadStatus()
set pointer to StFgtDb
void setFgtDb(StFgtDb *fgtDb)
set to zero to skip cut
Int_t InitRun(Int_t runumber)
Get pointer to fgtDb.
~StFgtA2CMaker()
destructor - really does nothing
void setStatusMask(UChar_t mask)
set status mask to 0xFF, so any bad status is cut
StFgtA2CMaker(const Char_t *name="fgtA2CMaker")
Class constructors - does nothing else than setting name.
Short_t checkValidPulse(StFgtStrip *pStrip, Float_t ped)
Returns true for a valid pulse.