test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripNoisesGenerator.h
Go to the documentation of this file.
1 #ifndef CalibTracker_SiStripESProducers_SiStripNoisesGenerator_H
2 #define CalibTracker_SiStripESProducers_SiStripNoisesGenerator_H
3 
10 #include <string>
11 #include <map>
12 
13 class SiStripNoisesGenerator : public SiStripDepCondObjBuilderBase<SiStripNoises,TrackerTopology> {
14  public:
15 
18 
19  void getObj(SiStripNoises* & obj, const TrackerTopology* tTopo){obj=createObject(tTopo);}
20 
21  private:
22 
25  std::pair<int, int> subDetAndLayer(const uint32_t detit, const TrackerTopology* tTopo) const;
27  void fillParameters(std::map<int, std::vector<double> > & mapToFill, const std::string & parameterName) const;
35  void fillSubDetParameter(std::map<int, std::vector<double> > & mapToFill, const std::vector<double> & v, const int subDet, const unsigned short layers) const;
36 
37  inline void printLog(const uint32_t detId, const unsigned short strip, const double & noise) const
38  {
39  edm::LogInfo("SiStripNoisesDummyCalculator") << "detid: " << detId << " strip: " << strip << " noise: " << noise << " \t" << std::endl;
40  }
41 
45  uint32_t printDebug_;
46 };
47 
48 #endif
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.
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
Definition: LayerTriplets.cc:4
SiStripNoises * createObject(const TrackerTopology *tTopo)
void getObj(SiStripNoises *&obj, const TrackerTopology *tTopo)
SiStripNoisesGenerator(const edm::ParameterSet &, const edm::ActivityRegistry &)
void fillSubDetParameter(std::map< int, std::vector< double > > &mapToFill, const std::vector< double > &v, const int subDet, const unsigned short layers) const
std::pair< int, int > subDetAndLayer(const uint32_t detit, const TrackerTopology *tTopo) const
Given the map and the detid it returns the corresponding layer/ring.
void printLog(const uint32_t detId, const unsigned short strip, const double &noise) const