#include <HPDNoiseGenerator.h>
Public Member Functions | |
void | fillNoiseSignals () |
HPDNoiseGenerator (const edm::ParameterSet &pset) | |
virtual | ~HPDNoiseGenerator () |
Private Attributes | |
HPDNoiseLibraryReader | theLibraryReader |
Definition at line 10 of file HPDNoiseGenerator.h.
HPDNoiseGenerator::HPDNoiseGenerator | ( | const edm::ParameterSet & | pset | ) |
Definition at line 3 of file HPDNoiseGenerator.cc.
: HcalBaseSignalGenerator(), theLibraryReader(pset) { }
virtual HPDNoiseGenerator::~HPDNoiseGenerator | ( | ) | [inline, virtual] |
Definition at line 14 of file HPDNoiseGenerator.h.
{}
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); } }
Definition at line 19 of file HPDNoiseGenerator.h.
Referenced by fillNoiseSignals().