CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Protected Attributes

HcalBaseSignalGenerator Class Reference

#include <HcalBaseSignalGenerator.h>

Inheritance diagram for HcalBaseSignalGenerator:
CaloVNoiseSignalGenerator HcalSignalGenerator< HCALDIGITIZERTRAITS > HPDNoiseGenerator

List of all members.

Public Member Functions

 HcalBaseSignalGenerator ()
void setElectronicsSim (HcalElectronicsSim *electronicsSim)
void setParameterMap (HcalSimParameterMap *map)
virtual ~HcalBaseSignalGenerator ()

Protected Member Functions

void fC2pe (CaloSamples &samples) const

Protected Attributes

HcalElectronicsSimtheElectronicsSim
HcalSimParameterMaptheParameterMap

Detailed Description

Definition at line 8 of file HcalBaseSignalGenerator.h.


Constructor & Destructor Documentation

HcalBaseSignalGenerator::HcalBaseSignalGenerator ( ) [inline]

Definition at line 11 of file HcalBaseSignalGenerator.h.

virtual HcalBaseSignalGenerator::~HcalBaseSignalGenerator ( ) [inline, virtual]

Definition at line 14 of file HcalBaseSignalGenerator.h.

{}

Member Function Documentation

void HcalBaseSignalGenerator::fC2pe ( CaloSamples samples) const [inline, protected]

Definition at line 23 of file HcalBaseSignalGenerator.h.

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

Referenced by HPDNoiseGenerator::fillNoiseSignals(), and HcalSignalGenerator< HBHEDigitizerTraits >::samplesInPE().

  {
    assert(theParameterMap != 0);
    float factor = 1./theParameterMap->simParameters(samples.id()).photoelectronsToAnalog(samples.id());
    samples *= factor;
  }
void HcalBaseSignalGenerator::setElectronicsSim ( HcalElectronicsSim electronicsSim) [inline]
void HcalBaseSignalGenerator::setParameterMap ( HcalSimParameterMap map) [inline]

Member Data Documentation