1 #ifndef StFstRawHitMaker_hh
2 #define StFstRawHitMaker_hh
12 #include "StChain/StRTSBaseMaker.h"
13 #include "StEvent/StFstConsts.h"
40 void Clear( Option_t *opts =
"" );
42 void setIsCalibrationMode(
bool isCaliMode =
false ) { mIsCaliMode = isCaliMode; }
43 void setMinHitCut(
double minhitCut = 2.5) { mMinHitCut = minhitCut; }
44 void setMedHitCut(
double medhitCut = 3.5) { mMedHitCut = medhitCut; }
45 void setMaxHitCut(
double maxhitCut = 4.0) { mMaxHitCut = maxhitCut; }
46 void setCmnCorrection(
bool doCmnCorrection =
true ) { mDoCmnCorrection = doCmnCorrection; }
47 void setCmnCut(
double cmnCut = 3.) { mCmnCut = cmnCut; }
49 void setDataType(
int nDataType = 0) { mDataType = nDataType; };
50 void setDoEmbedding(Bool_t doIt) { mDoEmbedding = doIt; }
51 UChar_t getDataType() {
return mDataType;}
56 Bool_t mDoCmnCorrection;
58 double mMinHitCut, mMedHitCut, mMaxHitCut, mCmnCut, mChanMinRmsNoiseLevel, mChanMaxRmsNoiseLevel, mApvMaxCmNoiseLevel;
59 Int_t mALLdata, mADCdata, mZSdata, mDefaultTimeBin, mCurrentTimeBinNum;
60 Int_t mMinNumOfRawHits, mMaxNumOfRawHits;
71 std::vector< std::vector< std::vector< float > > >
mCmnVec;
72 std::vector< std::vector< float > >
mPedVec;
81 int FillRawHitCollectionFromAPVData(
unsigned char dataFlag,
int ntimebin,
int counterAdcPerEvent[][kFstNumTimeBins],
double sumAdcPerEvent[][kFstNumTimeBins],
int apvElecId,
82 std::array< std::array<double, kFstNumTimeBins>, kFstNumApvChannels > &signalUnCorrected,
83 std::array< std::array<double, kFstNumTimeBins>, kFstNumApvChannels > &signalCorrected,
84 std::array< std::array<int, kFstNumTimeBins>, kFstNumApvChannels > &seedFlag,
85 std::array<int, kFstNumApvChannels> &idTruth);
87 int FillRawHitCollectionFromSimData();
std::vector< int > mConfigVec
APV chip configuration status indexed by geom. id.
std::vector< float > mGainVec
Channel elec. index, gain.
Class StRTSBaseMaker - is an abstract StMaker to define the interface to access the DAQ data from the...
std::vector< std::vector< float > > mRanRmsVec
Channel elec. index, Random RMS noise.
StFstCollection * mFstCollectionPtr
std::vector< int > mMappingVec
Channel elec. index to geometry ID mapping.
Int_t InitRun(Int_t runNumber)
std::vector< std::vector< std::vector< float > > > mCmnVec
APV chip geom. index, common mode (CM) noise.
void setDataType(int nDataType=0)
0 - All data; 1 - non-ZS data; 2 - ZS data; 3 - ZS first data
StFstCollection * mFstCollectionSimuPtr
std::vector< std::vector< float > > mPedVec
Channel elec. index, pedestal.
void Clear(Option_t *opts="")
User defined functions.
std::vector< std::vector< float > > mTotRmsVec
Channel elec. index, Total RMS noise.