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 {
10 public:
13 
15 
17 
18  // can be needed to set starting cap ID
19  void setElectronicsSim(HcalElectronicsSim * electronicsSim) {theElectronicsSim = electronicsSim;}
20 
21 protected:
22 
23  void fC2pe(CaloSamples & samples) const
24  {
25  assert(theParameterMap != 0);
26  float factor = 1./theParameterMap->simParameters(samples.id()).photoelectronsToAnalog(samples.id());
27  samples *= factor;
28  }
29 
32 };
33 
34 #endif
35 
36 
37 
void setParameterMap(HcalSimParameterMap *map)
virtual const CaloSimParameters & simParameters(const DetId &id) const
void fC2pe(CaloSamples &samples) const
void setElectronicsSim(HcalElectronicsSim *electronicsSim)
HcalSimParameterMap * theParameterMap
HcalElectronicsSim * theElectronicsSim
DetId id() const
get the (generic) id
Definition: CaloSamples.h:21