1 #ifndef STAR_StEmcSimulatorMaker
2 #define STAR_StEmcSimulatorMaker
7 #include "StEmcRawMaker/defines.h"
9 #include "StEmcVirtualSimulator.h"
45 bool mMakeFullDetector[MAXDETBARREL];
46 bool mCheckStatus[MAXDETBARREL];
47 bool mDoZeroSuppression[MAXDETBARREL];
48 float mPedestalCut[MAXDETBARREL];
49 float mCalibOffset[MAXDETBARREL];
50 float mCalibSpread[MAXDETBARREL];
51 float mMaxAdc[MAXDETBARREL];
52 float mMaxAdcSpread[MAXDETBARREL];
54 float mCrossTalk[MAXDETBARREL];
83 virtual void Clear(
const char*);
92 void setCheckStatus(StDetectorId det,
bool flag) { mCheckStatus[det-kBarrelEmcTowerId] = flag; }
95 void setMakeFullDetector(StDetectorId det,
bool flag) { mMakeFullDetector[det-kBarrelEmcTowerId] = flag; }
99 void setDoZeroSuppression(StDetectorId det,
bool flag) { mDoZeroSuppression[det-kBarrelEmcTowerId] = flag; }
102 void setPedestalCut(StDetectorId det,
float nRMS) { mPedestalCut[det-kBarrelEmcTowerId] = nRMS; }
105 void setCalibOffset(StDetectorId det,
float offset) { mCalibOffset[det-kBarrelEmcTowerId] = offset; }
108 void setCalibSpread(StDetectorId det,
float spread) { mCalibSpread[det-kBarrelEmcTowerId] = spread; }
114 void setMaximumAdc(StDetectorId det,
float adc) { mMaxAdc[det-kBarrelEmcTowerId] = adc; }
117 void setMaximumAdcSpread(StDetectorId det,
float spread) { mMaxAdcSpread[det-kBarrelEmcTowerId] = spread; }
136 virtual const char* GetCVS()
const {
137 static const char cvs[]=
"Tag $Name: $ $Id: StEmcSimulatorMaker.h,v 1.28 2014/08/06 11:43:07 jeromel Exp $ built " __DATE__
" " __TIME__ ;
void setSimulatorMode(StDetectorId det, StEmcVirtualSimulator::StEmcSimulatorMode mode)
choose the simulator mode for each detector. Defaults are kPrimarySecondaryFullMode (BTOW...
StBemcTables * getTables()
pointer to database tables
void setMaximumAdc(StDetectorId det, float adc)
maximum possible ADC for a channel. Defaults are 4095 (TOW), 1023 (PRS), 1023 (SMDs) ...
void setDoZeroSuppression(StDetectorId det, bool flag)
void setCalibOffset(StDetectorId det, float offset)
scale simulator calibration coefficients by 1.0 + offset. Default is zero
void setCheckStatus(StDetectorId det, bool flag)
Monte Carlo Track class All information on a simulated track is stored in this class: kinematics...
StEmcCollection * getEmcCollection()
StEmcSimulatorMaker(const char *name="EmcSimulator")
void setMaximumAdcSpread(StDetectorId det, float spread)
maximum possible ADC will be calculated by sampling Gaussian with this spread. Default is 0 for all d...
virtual void Clear(const char *)
resets the pointer to the current StMcEvent
void setMaxCrossTalkPercentage(StDetectorId det, float percentage)
this setting has no effect if det!=kBarrelSmdEtaStripId. Simulate cross-talk from cross-capacitance...
virtual Int_t Init()
creates the detector simulators and sets their properties
void setPedestalCut(StDetectorId det, float nRMS)
pedestal cut requires (ADC-pedMean) > n*pedRMS.
void setMakeFullDetector(StDetectorId det, bool flag)
simulate pedestal noise where no MC hits are found. Default is true for BTOW, false otherwise...
Event data structure to hold all information from a Monte Carlo simulation. This class is the interfa...
void setCalibSpread(StDetectorId det, float spread)
smear simulator calibration coefficients using Gaussian with this RMS.