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< HCALDIGITIZERTRAITS > HcalSignalGenerator< HBHEDigitizerTraits > HcalSignalGenerator< HFDigitizerTraits > HcalSignalGenerator< HODigitizerTraits > HcalSignalGenerator< ZDCDigitizerTraits > HPDNoiseGenerator

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 ()
 fill theNoiseSignals with one event's worth of noise, in units of pe More...
 
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 ()
 

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

Referenced by HPDNoiseGenerator::fillNoiseSignals(), and 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
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