1 #ifndef SiStripNoiseNormalizedWithApvGainBuilder_H
2 #define SiStripNoiseNormalizedWithApvGainBuilder_H
19 #include "CLHEP/Random/RandFlat.h"
20 #include "CLHEP/Random/RandGauss.h"
42 void fillParameters(
std::map<
int, std::vector<double> > & mapToFill,
const std::string & parameterName)
const;
50 void fillSubDetParameter(
std::map<
int, std::vector<double> > & mapToFill,
const std::vector<double> &
v,
const int subDet,
const unsigned short layers)
const;
52 inline void printLog(
const uint32_t detId,
const unsigned short strip,
const double & noise)
const
54 edm::LogInfo(
"SiStripNoisesDummyCalculator") <<
"detid: " << detId <<
" strip: " << strip <<
" noise: " << noise <<
" \t" << std::endl;
SiStripNoiseNormalizedWithApvGainBuilder(const edm::ParameterSet &iConfig)
~SiStripNoiseNormalizedWithApvGainBuilder()
void fillParameters(std::map< int, std::vector< double > > &mapToFill, const std::string ¶meterName) const
Fills the parameters read from cfg and matching the name in the given map.
void printLog(const uint32_t detId, const unsigned short strip, const double &noise) const
void fillSubDetParameter(std::map< int, std::vector< double > > &mapToFill, const std::vector< double > &v, const int subDet, const unsigned short layers) const
virtual void analyze(const edm::Event &, const edm::EventSetup &)
std::pair< int, int > subDetAndLayer(const uint32_t detit) const
Given the map and the detid it returns the corresponding layer/ring.