CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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)
 
virtual ~HcalBaseSignalGenerator ()
 
- 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.

HcalSimParameterMap * theParameterMap
HcalElectronicsSim * theElectronicsSim
virtual HcalBaseSignalGenerator::~HcalBaseSignalGenerator ( )
inlinevirtual

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 assert(), V0MonitoringClient_cfi::factor, CaloSamples::id(), HcalSimParameterMap::simParameters(), and theParameterMap.

Referenced by HcalSignalGenerator< HBHEDigitizerTraits >::samplesInPE().

24  {
25  assert(theParameterMap != 0);
26  float factor = 1./theParameterMap->simParameters(samples.id()).photoelectronsToAnalog(samples.id());
27  samples *= factor;
28  }
virtual const CaloSimParameters & simParameters(const DetId &id) const
assert(m_qm.get())
HcalSimParameterMap * theParameterMap
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
HcalSimParameterMap* HcalBaseSignalGenerator::theParameterMap
protected