CMS 3D CMS Logo

Public Member Functions | Private Attributes

HPDNoiseGenerator Class Reference

#include <HPDNoiseGenerator.h>

Inheritance diagram for HPDNoiseGenerator:
HcalBaseSignalGenerator CaloVNoiseSignalGenerator

List of all members.

Public Member Functions

void fillNoiseSignals ()
 HPDNoiseGenerator (const edm::ParameterSet &pset)
virtual ~HPDNoiseGenerator ()

Private Attributes

HPDNoiseLibraryReader theLibraryReader

Detailed Description

Definition at line 10 of file HPDNoiseGenerator.h.


Constructor & Destructor Documentation

HPDNoiseGenerator::HPDNoiseGenerator ( const edm::ParameterSet pset)

Definition at line 3 of file HPDNoiseGenerator.cc.

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

Definition at line 14 of file HPDNoiseGenerator.h.

{}

Member Function Documentation

void HPDNoiseGenerator::fillNoiseSignals ( ) [virtual]

if you want to fill signals on demand, override this subclass is responsible for clearing theNoiseSignals before adding

Reimplemented from CaloVNoiseSignalGenerator.

Definition at line 10 of file HPDNoiseGenerator.cc.

References HcalBaseSignalGenerator::fC2pe(), HPDNoiseLibraryReader::getNoisyHcalDetIds(), i, theLibraryReader, and CaloVNoiseSignalGenerator::theNoiseSignals.

{
  theNoiseSignals.clear();
  std::vector<std::pair <HcalDetId, const float* > > noise = theLibraryReader.getNoisyHcalDetIds();
  for(std::vector<std::pair <HcalDetId, const float* > >::const_iterator noiseItr = noise.begin();
      noiseItr != noise.end(); ++noiseItr)
  {
    CaloSamples newSamples(noiseItr->first, 10);
    for(unsigned i = 0; i < 10; ++i)
    {
      newSamples[i] = (noiseItr->second)[i];
    }
    // result should come back in units of photoelectrons
    fC2pe(newSamples);
    theNoiseSignals.push_back(newSamples);
  }
}

Member Data Documentation

Definition at line 19 of file HPDNoiseGenerator.h.

Referenced by fillNoiseSignals().