CMS 3D CMS Logo

SiStripNoiseNormalizedWithApvGainBuilder.h
Go to the documentation of this file.
1 #ifndef SiStripNoiseNormalizedWithApvGainBuilder_H
2 #define SiStripNoiseNormalizedWithApvGainBuilder_H
3 
15 
19 
20 #include "CLHEP/Random/RandFlat.h"
21 #include "CLHEP/Random/RandGauss.h"
22 
23 class TrackerTopology;
24 class TrackerGeometry;
32 public:
34 
36 
37  void analyze(const edm::Event&, const edm::EventSetup&) override;
38 
39 private:
41  void fillParameters(std::map<int, std::vector<double> >& mapToFill, const std::string& parameterName) const;
49  void fillSubDetParameter(std::map<int, std::vector<double> >& mapToFill,
50  const std::vector<double>& v,
51  const int subDet,
52  const unsigned short layers) const;
53 
54  inline void printLog(const uint32_t detId, const unsigned short strip, const double& noise) const {
55  edm::LogInfo("SiStripNoisesDummyCalculator")
56  << "detid: " << detId << " strip: " << strip << " noise: " << noise << " \t" << std::endl;
57  }
58 
62 
66  uint32_t printDebug_;
67 
71 };
72 
73 #endif
edm::ESGetToken< SiStripApvGain, SiStripApvGainRcd > inputApvGainToken_
void printLog(const uint32_t detId, const unsigned short strip, const double &noise) const
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
SiStripNoiseNormalizedWithApvGainBuilder(const edm::ParameterSet &iConfig)
Log< level::Info, false > LogInfo
void fillSubDetParameter(std::map< int, std::vector< double > > &mapToFill, const std::vector< double > &v, const int subDet, const unsigned short layers) const
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > tGeomToken_
void fillParameters(std::map< int, std::vector< double > > &mapToFill, const std::string &parameterName) const
Fills the parameters read from cfg and matching the name in the given map.
void analyze(const edm::Event &, const edm::EventSetup &) override