CMS 3D CMS Logo

SiStripNoiseNormalizedWithApvGainBuilder.h
Go to the documentation of this file.
1 #ifndef SiStripNoiseNormalizedWithApvGainBuilder_H
2 #define SiStripNoiseNormalizedWithApvGainBuilder_H
3 
16 
20 
21 #include "CLHEP/Random/RandFlat.h"
22 #include "CLHEP/Random/RandGauss.h"
23 
24 class TrackerTopology;
25 class TrackerGeometry;
33 public:
35 
37 
38  void analyze(const edm::Event&, const edm::EventSetup&) override;
39 
40 private:
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,
51  const std::vector<double>& v,
52  const int subDet,
53  const unsigned short layers) const;
54 
55  inline void printLog(const uint32_t detId, const unsigned short strip, const double& noise) const {
56  edm::LogInfo("SiStripNoisesDummyCalculator")
57  << "detid: " << detId << " strip: " << strip << " noise: " << noise << " \t" << std::endl;
58  }
59 
63 
67  uint32_t printDebug_;
68 
72 };
73 
74 #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