CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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)
 
 ~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 10 of file HcalBaseSignalGenerator.h.

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

Definition at line 12 of file HcalBaseSignalGenerator.h.

12 {}

Member Function Documentation

void HcalBaseSignalGenerator::fC2pe ( CaloSamples samples) const
inlineprotected

Definition at line 20 of file HcalBaseSignalGenerator.h.

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

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

20  {
21  assert(theParameterMap != nullptr);
22  float factor = 1. / theParameterMap->simParameters(samples.id()).photoelectronsToAnalog(samples.id());
23  samples *= factor;
24  }
const CaloSimParameters & simParameters(const DetId &id) const override
assert(be >=bs)
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