00001 #include "SimCalorimetry/HcalSimAlgos/interface/HPDNoiseGenerator.h" 00002 #include "SimCalorimetry/HcalSimAlgos/interface/HcalSimParameterMap.h" 00003 00004 HPDNoiseGenerator::HPDNoiseGenerator(const HcalSimParameterMap * parameterMap) 00005 : theParameterMap(parameterMap) 00006 { 00007 } 00008 00009 00010 void HPDNoiseGenerator::getNoiseSignals(std::vector<CaloSamples> & result) 00011 { 00012 // result should come back in units of photoelectrons 00013 } 00014 00015 void HPDNoiseGenerator::fC2pe(CaloSamples & samples) const 00016 { 00017 float factor = 1./theParameterMap->simParameters(samples.id()).photoelectronsToAnalog(); 00018 samples *= factor; 00019 } 00020