CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes
ESDigitizer Class Reference

#include <ESDigitizer.h>

Inheritance diagram for ESDigitizer:
EcalTDigitizer< ESDigitizerTraits >

Classes

class  Triplet
 

Public Types

typedef
ESDigitizerTraits::ElectronicsSim 
ElectronicsSim
 
- Public Types inherited from EcalTDigitizer< ESDigitizerTraits >
typedef ESDigitizerTraits::Digi Digi
 
typedef
ESDigitizerTraits::DigiCollection 
DigiCollection
 
typedef
ESDigitizerTraits::EcalSamples 
EcalSamples
 
typedef
ESDigitizerTraits::ElectronicsSim 
ElectronicsSim
 

Public Member Functions

 ESDigitizer (EcalHitResponse *hitResponse, ElectronicsSim *electronicsSim, bool addNoise)
 
virtual void run (ESDigiCollection &output, CLHEP::HepRandomEngine *) override
 turns hits into digis More...
 
void setDetIds (const std::vector< DetId > &detIds)
 tell the digitizer which cells exist; cannot change during a run More...
 
void setGain (const int gain)
 
virtual ~ESDigitizer ()
 
- Public Member Functions inherited from EcalTDigitizer< ESDigitizerTraits >
void add (const std::vector< PCaloHit > &hits, int bunchCrossing, CLHEP::HepRandomEngine *)
 
void addNoiseSignals ()
 
 EcalTDigitizer (EcalHitResponse *hitResponse, ElectronicsSim *electronicsSim, bool addNoise)
 
virtual void initializeHits ()
 
virtual void run (MixCollection< PCaloHit > &input, DigiCollection &output)
 
void setNoiseSignalGenerator (EcalBaseSignalGenerator *noiseSignalGenerator)
 
virtual ~EcalTDigitizer ()
 

Private Member Functions

void createNoisyList (std::vector< DetId > &abThreshCh, CLHEP::HepRandomEngine *)
 

Private Attributes

const std::vector< DetId > * m_detIds
 
int m_ESGain
 
double m_histoBin
 
double m_histoInf
 
double m_histoWid
 
double m_meanNoisy
 
CLHEP::RandGeneral * m_ranGeneral
 
std::vector< Tripletm_trip
 

Additional Inherited Members

- Protected Member Functions inherited from EcalTDigitizer< ESDigitizerTraits >
bool addNoise () const
 
const ElectronicsSimelecSim () const
 
const EcalHitResponsehitResponse () const
 

Detailed Description

Definition at line 14 of file ESDigitizer.h.

Member Typedef Documentation

Definition at line 18 of file ESDigitizer.h.

Constructor & Destructor Documentation

ESDigitizer::ESDigitizer ( EcalHitResponse hitResponse,
ElectronicsSim electronicsSim,
bool  addNoise 
)

Definition at line 13 of file ESDigitizer.cc.

ESDigitizer::~ESDigitizer ( )
virtual

Definition at line 29 of file ESDigitizer.cc.

Member Function Documentation

void ESDigitizer::createNoisyList ( std::vector< DetId > &  abThreshCh,
CLHEP::HepRandomEngine *  engine 
)
private

Definition at line 210 of file ESDigitizer.cc.

void ESDigitizer::run ( ESDigiCollection output,
CLHEP::HepRandomEngine *  engine 
)
overridevirtual

turns hits into digis

Reimplemented from EcalTDigitizer< ESDigitizerTraits >.

Definition at line 167 of file ESDigitizer.cc.

void ESDigitizer::setDetIds ( const std::vector< DetId > &  detIds)

tell the digitizer which cells exist; cannot change during a run

Definition at line 36 of file ESDigitizer.cc.

void ESDigitizer::setGain ( const int  gain)

Definition at line 44 of file ESDigitizer.cc.

Member Data Documentation

const std::vector<DetId>* ESDigitizer::m_detIds
private

Definition at line 36 of file ESDigitizer.h.

int ESDigitizer::m_ESGain
private

Definition at line 38 of file ESDigitizer.h.

double ESDigitizer::m_histoBin
private

Definition at line 39 of file ESDigitizer.h.

double ESDigitizer::m_histoInf
private

Definition at line 40 of file ESDigitizer.h.

double ESDigitizer::m_histoWid
private

Definition at line 41 of file ESDigitizer.h.

double ESDigitizer::m_meanNoisy
private

Definition at line 42 of file ESDigitizer.h.

CLHEP::RandGeneral* ESDigitizer::m_ranGeneral
private

Definition at line 37 of file ESDigitizer.h.

std::vector<Triplet> ESDigitizer::m_trip
private

Definition at line 61 of file ESDigitizer.h.