78 const EventContext& ctx)
const
84 float GaussShifted = 0;
91 double SigmaNoise = caloNoise->getNoise(theCell->
ID(), theCell->
gain());
94 Gauss = RandGauss::shoot(engine, 0.,1.);
106 setenergy(theCell,(GaussShifted*SigmaNoise));
112 GaussShifted = RandGauss::shoot(engine,
m_shift_EMB*SigmaNoise,SigmaNoise);
115 if (sampl>3 && sampl<8){
116 GaussShifted = RandGauss::shoot(engine,
m_shift_EMEC*SigmaNoise,SigmaNoise);
119 if (sampl>7 && sampl<12){
120 GaussShifted = RandGauss::shoot(engine,
m_shift_HEC*SigmaNoise,SigmaNoise);
123 if (sampl>11 && sampl<15){
124 GaussShifted = RandGauss::shoot(engine,
m_shift_TileBar*SigmaNoise,SigmaNoise);
127 if (sampl>14 && sampl<18){
128 GaussShifted = RandGauss::shoot(engine,
m_shift_TileGap*SigmaNoise,SigmaNoise);
131 if (sampl>17 && sampl<21){
132 GaussShifted = RandGauss::shoot(engine,
m_shift_TileExt*SigmaNoise,SigmaNoise);
135 if (sampl>20 && sampl<24){
136 GaussShifted = RandGauss::shoot(engine,
m_shift_FCAL*SigmaNoise,SigmaNoise);
153 if ( (sampl>11 && sampl<21) && SigmaNoise>999){