3 #ifndef STAR_StEEmcSlowMaker
4 #define STAR_StEEmcSlowMaker
133 #include "StEEmcUtil/EEmcGeom/EEmcGeomDefs.h"
134 #include "StEEmcUtil/EEfeeRaw/EEdims.h"
135 #include "StEEmcUtil/database/EEmcDbItem.h"
143 Float_t mMip2pe[MaxSmdStrips];
144 Float_t mPmip2ene[3];
147 Float_t avgNumPePerMip(Int_t stripID);
149 enum Source_t {kMuDst, kStEvent};
188 Float_t getPedSmear(Float_t sigPed);
197 Bool_t mEnablePrePost;
209 Bool_t mIsEmbeddingMode;
213 enum {kPre1=0, kPre2, kPost, kNumberPrepost};
215 Float_t mRelativeLightYield[kNumberPrepost];
216 Float_t mSamplingFraction;
217 Float_t mSamplingFractionUser;
218 Float_t mTowerGains[kEEmcNumSectors];
219 Float_t mPrepostGains;
222 Bool_t mDoLightYield;
223 Float_t mTowerGainFact[kEEmcNumSectors][kEEmcNumSubSectors][kEEmcNumEtas];
224 Float_t mSmdGainFact[kEEmcNumSectors][kEEmcNumSmdUVs][kEEmcNumStrips];
226 Int_t mTruncatePedSmear;
235 StEEmcSlowMaker(
const Char_t *name =
"EEmcSlowSim",
const Char_t *muDstMakerName = 0);
240 virtual Int_t
Init();
242 virtual Int_t
Make();
275 void setNpePerMipSmd(Float_t npe) {
for (Int_t i = 0;i < MaxSmdStrips;i++) mMip2pe[i] = npe;}
298 void setRelativeLightYield(Float_t pre1, Float_t pre2, Float_t post) {mRelativeLightYield[kPre1] = pre1; mRelativeLightYield[kPre2] = pre2; mRelativeLightYield[kPost] = post;}
312 void setSmdGainSpread(Float_t s, Int_t sector, Int_t uv, Int_t strip_index);
321 static const char cvs[]=
"Tag $Name: $ $Id: StEEmcSlowMaker.h,v 2.10 2014/08/06 11:43:04 jeromel Exp $ built " __DATE__
" " __TIME__ ;
void setNpePerMipPre(Float_t npe)
void setSamplingFraction(Float_t f)
Changes the sampling fraction from the default in the fast simulator.
void setRelativeLightYield(Float_t pre1, Float_t pre2, Float_t post)
void setDoLightYield(Bool_t ly)
void setNpePerMipSmd(Float_t npe)
void setAddPed(Bool_t a=true)
Add pedestal offsets from DB.
virtual const char * GetCVS() const
Displayed on session exit, leave it as-is please ...
void disableSMD()
Disables slow simulator for the SMD detectors.
void setNpePerMipSmd(Int_t strip, Float_t npe)
void setOverwrite(Bool_t o=true)
Overwrite the muDst values.
static Float_t getMipdEdx()
Return MIP dE/dx used for SMD, Pre, Post.
void setDropBad(Bool_t d=true)
Drop bad channels marked as "fail" in DB.
void setSinglePeResolution(Float_t r)
void setTruncatePedSmear(Float_t nSigma)
Set truncation of pedestal smearing.
virtual ~StEEmcSlowMaker()
Class destructor.
void setMipElossPre(Int_t layer, Float_t e)
void setMipElossSmd(Float_t e)
virtual Int_t Init()
Initialization.
void setTowerGainSpread(Float_t s, Float_t mean=1.0)
Defines a spread in the tower gains, generated gains will be between zero and mean + 1...
void setSmearPed(Bool_t s=true)
Smear the pedestal with sigma from DB.
void setEmbeddingMode(Bool_t e=true)
Sets all switches required to perform embedding.
void setSource(const Char_t *name)
Set the source of ADC. Can be "MuDst" (default) or "StEvent".
void setSmdGainSpread(Float_t s, Int_t sector, Int_t uv, Int_t strip_index)
Defines a spread in the SMD gains, generated gains will be between zero and mean + 1...
void disablePrePost()
Disables slow simulator for the preshower and postshwoer detectors.
virtual Int_t Make()
Processes a single event.