12 : theParameterMap(parameterMap),theRandGaussQ(0)
20 double totalCharge = 0.;
21 for(
int i = 0;
i < 4; ++
i) {
23 if(bin < samples.
size()) {
24 totalCharge += samples[
bin];
46 double totalCharge =
charge(samples);
47 if(totalCharge <= 0.) totalCharge = 1.e-6;
55 LogDebug(
"HcalTimeSlewSim") <<
"TimeSmear charge " << totalCharge <<
" rms " << rms <<
" delay " << delay <<
" smearns " << smearns;
HcalSubdetector subdet() const
get the subdetector
int presamples() const
access presample information
double timeSmearRMS(double ampl) const
void setRandomEngine(CLHEP::HepRandomEngine &engine)
virtual const CaloSimParameters & simParameters(const DetId &id) const =0
const CaloVSimParameterMap * theParameterMap
static const int SubdetectorId
int size() const
get the size
CLHEP::RandGaussQ * theRandGaussQ
CaloSamples & offsetTime(double offset)
shift all the samples by a time, in ns, interpolating
void delay(CaloSamples &samples) const
double charge(const CaloSamples &samples) const
DetId id() const
get the (generic) id
HcalTimeSlewSim(const CaloVSimParameterMap *parameterMap)
static double delay(double fC, BiasSetting bias=Medium)
Returns the amount (ns) by which a pulse of the given number of fC will be delayed by the timeslew ef...