CMS 3D CMS Logo

SiPixelInformationExtractor.h
Go to the documentation of this file.
1 #ifndef _SiPixelInformationExtractor_h_
2 #define _SiPixelInformationExtractor_h_
3 
5 
11 
16 
23 
24 #include "TCanvas.h"
25 #include "TF1.h"
26 #include "TGaxis.h"
27 #include "TH2F.h"
28 #include "TPaveText.h"
29 
30 #include <boost/cstdint.hpp>
31 #include <fstream>
32 #include <map>
33 #include <sstream>
34 #include <string>
35 #include <vector>
36 
37 class SiPixelEDAClient;
38 class SiPixelWebInterface;
40 public:
41  SiPixelInformationExtractor(bool offlineXMLfile);
43 
44  void computeStatus(MonitorElement *mE, double &colorValue, std::pair<double, double> &norm);
45  void getNormalization(MonitorElement *mE, std::pair<double, double> &norm, std::string theMEType);
47  std::pair<double, double> &normX,
48  std::pair<double, double> &normY,
49  std::string theMEType);
50  int getDetId(MonitorElement *mE);
52 
53  void readConfiguration();
54  bool readConfiguration(std::map<std::string, std::vector<std::string>> &layoutMap,
55  std::map<std::string, std::map<std::string, std::string>> &qtestsMap,
56  std::map<std::string, std::vector<std::string>> &meQTestsMap);
57 
58  void bookNoisyPixels(DQMStore::IBooker &iBooker, float noiseRate, bool Tier0Flag);
59 
60  void findNoisyPixels(DQMStore::IBooker &iBooker,
61  DQMStore::IGetter &iGetter,
62  bool init,
63  float noiseRate,
64  int noiseRateDenominator,
66 
67 private:
68  void getItemList(const std::multimap<std::string, std::string> &req_map,
69  std::string item_name,
70  std::vector<std::string> &items);
71  bool hasItem(std::multimap<std::string, std::string> &req_map, std::string item_name);
72  std::string getItemValue(const std::multimap<std::string, std::string> &req_map, std::string item_name);
73  std::string getItemValue(std::multimap<std::string, std::string> &req_map, std::string item_name);
75  void selectImage(std::string &name, int status);
76  void selectImage(std::string &name, std::vector<QReport *> &reports);
77  void selectColor(std::string &col, int status);
78  void selectColor(std::string &col, std::vector<QReport *> &reports);
79 
81 
86 
87  std::map<std::string, std::vector<std::string>> layoutMap;
88  std::map<std::string, std::map<std::string, std::string>> qtestsMap;
89  std::map<std::string, std::vector<std::string>> meQTestsMap;
90 
93  bool readMeMap_;
96 
97  int count;
98  int errcount;
99  bool gotDigis;
100 
101  std::ofstream myfile_;
102  int nevents_;
103  std::map<uint32_t, std::vector<std::pair<std::pair<int, int>, float>>> noisyDetIds_;
105 
108 
111 };
112 #endif
SiPixelInformationExtractor(bool offlineXMLfile)
Constructor of the SiPixelInformationExtractor class.
void getNormalization(MonitorElement *mE, std::pair< double, double > &norm, std::string theMEType)
(Documentation under construction).
std::map< std::string, std::vector< std::string > > meQTestsMap
void computeStatus(MonitorElement *mE, double &colorValue, std::pair< double, double > &norm)
(Documentation under construction).
SiPixelActionExecutor * actionExecutor_
bool hasItem(std::multimap< std::string, std::string > &req_map, std::string item_name)
(Documentation under construction).
void readConfiguration()
Read Configuration File.
std::map< std::string, std::map< std::string, std::string > > qtestsMap
void bookNoisyPixels(DQMStore::IBooker &iBooker, float noiseRate, bool Tier0Flag)
void findNoisyPixels(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool init, float noiseRate, int noiseRateDenominator, edm::ESHandle< SiPixelFedCablingMap > theCablingMap)
void selectImage(std::string &name, int status)
void getNormalization2D(MonitorElement *mE, std::pair< double, double > &normX, std::pair< double, double > &normY, std::string theMEType)
(Documentation under construction).
std::string getMEType(MonitorElement *mE)
Definition: init.py:1
std::map< uint32_t, std::vector< std::pair< std::pair< int, int >, float > > > noisyDetIds_
std::map< std::string, std::vector< std::string > > layoutMap
std::string getItemValue(const std::multimap< std::string, std::string > &req_map, std::string item_name)
(Documentation under construction).
void selectColor(std::string &col, int status)
void getItemList(const std::multimap< std::string, std::string > &req_map, std::string item_name, std::vector< std::string > &items)
(Documentation under construction).
int getDetId(MonitorElement *mE)
(Documentation under construction).
col
Definition: cuy.py:1010
~SiPixelInformationExtractor()
Destructor of the SiPixelInformationExtractor class.