CMS 3D CMS Logo

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
#define nullptr
void setElectronicsSim(HcalElectronicsSim *electronicsSim)
HcalSimParameterMap * theParameterMap
HcalElectronicsSim * theElectronicsSim
const CaloSimParameters & simParameters(const DetId &id) const override
DetId id() const
get the (generic) id
Definition: CaloSamples.h:21