CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
HcalBaseSignalGenerator Class Reference

#include <HcalBaseSignalGenerator.h>

Inheritance diagram for HcalBaseSignalGenerator:
CaloVNoiseSignalGenerator HcalSignalGenerator< Traits > HcalSignalGenerator< HBHEDigitizerTraits > HcalSignalGenerator< HcalQIE10DigitizerTraits > HcalSignalGenerator< HcalQIE11DigitizerTraits > HcalSignalGenerator< HFDigitizerTraits > HcalSignalGenerator< HODigitizerTraits > HcalSignalGenerator< ZDCDigitizerTraits >

Public Member Functions

 HcalBaseSignalGenerator ()
 
void setElectronicsSim (HcalElectronicsSim *electronicsSim)
 
void setParameterMap (HcalSimParameterMap *map)
 
 ~HcalBaseSignalGenerator () override
 
- Public Member Functions inherited from CaloVNoiseSignalGenerator
 CaloVNoiseSignalGenerator ()
 
bool contains (const DetId &detId) const
 
void fillEvent (CLHEP::HepRandomEngine *)
 fill theNoiseSignals with one event's worth of noise, in units of pe More...
 
void fillEvent ()
 
void getNoiseSignals (std::vector< CaloSamples > &noiseSignals)
 
void setNoiseSignals (const std::vector< CaloSamples > &noiseSignals)
 
virtual ~CaloVNoiseSignalGenerator ()
 

Protected Member Functions

void fC2pe (CaloSamples &samples) const
 
- Protected Member Functions inherited from CaloVNoiseSignalGenerator
virtual void fillNoiseSignals (CLHEP::HepRandomEngine *)=0
 
virtual void fillNoiseSignals ()=0
 

Protected Attributes

HcalElectronicsSimtheElectronicsSim
 
HcalSimParameterMaptheParameterMap
 
- Protected Attributes inherited from CaloVNoiseSignalGenerator
std::vector< CaloSamplestheNoiseSignals
 

Detailed Description

Definition at line 8 of file HcalBaseSignalGenerator.h.

Constructor & Destructor Documentation

HcalBaseSignalGenerator::HcalBaseSignalGenerator ( )
inline

Definition at line 11 of file HcalBaseSignalGenerator.h.

12  : theParameterMap(nullptr), theElectronicsSim(nullptr) {}
HcalSimParameterMap * theParameterMap
HcalElectronicsSim * theElectronicsSim
HcalBaseSignalGenerator::~HcalBaseSignalGenerator ( )
inlineoverride

Definition at line 14 of file HcalBaseSignalGenerator.h.

14 {}

Member Function Documentation

void HcalBaseSignalGenerator::fC2pe ( CaloSamples samples) const
inlineprotected

Definition at line 23 of file HcalBaseSignalGenerator.h.

References CaloSamples::id(), hcalSimParameters_cfi::photoelectronsToAnalog, HcalSimParameterMap::simParameters(), and theParameterMap.

24  {
25  assert(theParameterMap != nullptr);
26  float factor = 1./theParameterMap->simParameters(samples.id()).photoelectronsToAnalog(samples.id());
27  samples *= factor;
28  }
HcalSimParameterMap * theParameterMap
const CaloSimParameters & simParameters(const DetId &id) const override
DetId id() const
get the (generic) id
Definition: CaloSamples.h:21
void HcalBaseSignalGenerator::setElectronicsSim ( HcalElectronicsSim electronicsSim)
inline
void HcalBaseSignalGenerator::setParameterMap ( HcalSimParameterMap map)
inline

Member Data Documentation

HcalElectronicsSim* HcalBaseSignalGenerator::theElectronicsSim
protected

Definition at line 31 of file HcalBaseSignalGenerator.h.

Referenced by setElectronicsSim().

HcalSimParameterMap* HcalBaseSignalGenerator::theParameterMap
protected

Definition at line 30 of file HcalBaseSignalGenerator.h.

Referenced by fC2pe(), and setParameterMap().