CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HcalBaseSignalGenerator.h
Go to the documentation of this file.
1 #ifndef HcalSimAlgos_HcalBaseSignalGenerator_h
2 #define HcalSimAlgos_HcalBaseSignalGenerator_h
3 
7 
9 public:
11 
13 
15 
16  // can be needed to set starting cap ID
17  void setElectronicsSim(HcalElectronicsSim* electronicsSim) { theElectronicsSim = electronicsSim; }
18 
19 protected:
20  void fC2pe(CaloSamples& samples) const {
21  assert(theParameterMap != nullptr);
22  float factor = 1. / theParameterMap->simParameters(samples.id()).photoelectronsToAnalog(samples.id());
23  samples *= factor;
24  }
25 
28 };
29 
30 #endif
void setParameterMap(HcalSimParameterMap *map)
void fC2pe(CaloSamples &samples) const
const CaloSimParameters & simParameters(const DetId &id) const override
assert(be >=bs)
void setElectronicsSim(HcalElectronicsSim *electronicsSim)
HcalSimParameterMap * theParameterMap
HcalElectronicsSim * theElectronicsSim
DetId id() const
get the (generic) id
Definition: CaloSamples.h:21