CMS 3D CMS Logo

SiPixelInformationExtractor.h
Go to the documentation of this file.
1 #ifndef _SiPixelInformationExtractor_h_
2 #define _SiPixelInformationExtractor_h_
3 
5 
10 
15 
22 
23 #include "TCanvas.h"
24 #include "TF1.h"
25 #include "TGaxis.h"
26 #include "TH2F.h"
27 #include "TPaveText.h"
28 
29 #include <fstream>
30 #include <map>
31 #include <sstream>
32 #include <string>
33 #include <vector>
34 #include <cstdint>
35 
36 class SiPixelEDAClient;
37 class SiPixelWebInterface;
39 public:
42 
43  SiPixelInformationExtractor(bool offlineXMLfile);
45 
46  void computeStatus(MonitorElement *mE, double &colorValue, std::pair<double, double> &norm);
47  void getNormalization(MonitorElement *mE, std::pair<double, double> &norm, std::string theMEType);
48  void getNormalization2D(MonitorElement *mE,
49  std::pair<double, double> &normX,
50  std::pair<double, double> &normY,
51  std::string theMEType);
52  int getDetId(MonitorElement *mE);
53  std::string getMEType(MonitorElement *mE);
54 
55  void readConfiguration();
56  bool readConfiguration(std::map<std::string, std::vector<std::string>> &layoutMap,
57  std::map<std::string, std::map<std::string, std::string>> &qtestsMap,
58  std::map<std::string, std::vector<std::string>> &meQTestsMap);
59 
60  void bookNoisyPixels(DQMStore::IBooker &iBooker, float noiseRate, bool Tier0Flag);
61 
62  void findNoisyPixels(DQMStore::IBooker &iBooker,
63  DQMStore::IGetter &iGetter,
64  bool init,
65  float noiseRate,
66  int noiseRateDenominator,
68 
69 private:
70  void getItemList(const std::multimap<std::string, std::string> &req_map,
71  std::string item_name,
72  std::vector<std::string> &items);
73  bool hasItem(std::multimap<std::string, std::string> &req_map, std::string item_name);
74  std::string getItemValue(const std::multimap<std::string, std::string> &req_map, std::string item_name);
75  std::string getItemValue(std::multimap<std::string, std::string> &req_map, std::string item_name);
77  void selectImage(std::string &name, int status);
78  void selectImage(std::string &name, std::vector<QReport *> &reports);
79  void selectColor(std::string &col, int status);
80  void selectColor(std::string &col, std::vector<QReport *> &reports);
81 
83 
88 
89  std::map<std::string, std::vector<std::string>> layoutMap;
90  std::map<std::string, std::map<std::string, std::string>> qtestsMap;
91  std::map<std::string, std::vector<std::string>> meQTestsMap;
92 
95  bool readMeMap_;
98 
99  int count;
100  int errcount;
101  bool gotDigis;
102 
103  std::ofstream myfile_;
104  int nevents_;
105  std::map<uint32_t, std::vector<std::pair<std::pair<int, int>, float>>> noisyDetIds_;
107 
108  MonitorElement *EventRateBarrelPixels;
109  MonitorElement *EventRateEndcapPixels;
110 
111  MonitorElement *EndcapNdigisFREQProjection;
112  MonitorElement *BarrelNdigisFREQProjection;
113 };
114 #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)
dqm::legacy::MonitorElement MonitorElement
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.