CMS 3D CMS Logo

SiPixelInformationExtractor.h
Go to the documentation of this file.
1 #ifndef _SiPixelInformationExtractor_h_
2 #define _SiPixelInformationExtractor_h_
3 
5 
10 
17 
18 #include "TCanvas.h"
19 #include "TF1.h"
20 #include "TGaxis.h"
21 #include "TH2F.h"
22 #include "TPaveText.h"
23 
24 #include <fstream>
25 #include <map>
26 #include <sstream>
27 #include <string>
28 #include <vector>
29 #include <cstdint>
30 
31 class SiPixelEDAClient;
32 class SiPixelWebInterface;
34 public:
37 
38  SiPixelInformationExtractor(bool offlineXMLfile);
40 
41  void computeStatus(MonitorElement *mE, double &colorValue, std::pair<double, double> &norm);
42  void getNormalization(MonitorElement *mE, std::pair<double, double> &norm, std::string theMEType);
44  std::pair<double, double> &normX,
45  std::pair<double, double> &normY,
46  std::string theMEType);
47  int getDetId(MonitorElement *mE);
49 
50  void readConfiguration();
51  bool readConfiguration(std::map<std::string, std::vector<std::string>> &layoutMap,
52  std::map<std::string, std::map<std::string, std::string>> &qtestsMap,
53  std::map<std::string, std::vector<std::string>> &meQTestsMap);
54 
55  void bookNoisyPixels(DQMStore::IBooker &iBooker, float noiseRate, bool Tier0Flag);
56 
57  void findNoisyPixels(DQMStore::IBooker &iBooker,
58  DQMStore::IGetter &iGetter,
59  bool init,
60  float noiseRate,
61  int noiseRateDenominator,
62  const SiPixelFedCablingMap *theCablingMap);
63 
64 private:
65  void getItemList(const std::multimap<std::string, std::string> &req_map,
66  std::string item_name,
67  std::vector<std::string> &items);
68  bool hasItem(std::multimap<std::string, std::string> &req_map, std::string item_name);
69  std::string getItemValue(const std::multimap<std::string, std::string> &req_map, std::string item_name);
70  std::string getItemValue(std::multimap<std::string, std::string> &req_map, std::string item_name);
72  void selectImage(std::string &name, int status);
73  void selectImage(std::string &name, std::vector<QReport *> &reports);
74  void selectColor(std::string &col, int status);
75  void selectColor(std::string &col, std::vector<QReport *> &reports);
76 
78 
83 
84  std::map<std::string, std::vector<std::string>> layoutMap;
85  std::map<std::string, std::map<std::string, std::string>> qtestsMap;
86  std::map<std::string, std::vector<std::string>> meQTestsMap;
87 
90  bool readMeMap_;
93 
94  int count;
95  int errcount;
96  bool gotDigis;
97 
98  std::ofstream myfile_;
99  int nevents_;
100  std::map<uint32_t, std::vector<std::pair<std::pair<int, int>, float>>> noisyDetIds_;
102 
105 
108 };
109 #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 findNoisyPixels(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool init, float noiseRate, int noiseRateDenominator, const SiPixelFedCablingMap *theCablingMap)
void bookNoisyPixels(DQMStore::IBooker &iBooker, float noiseRate, bool Tier0Flag)
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:1009
~SiPixelInformationExtractor()
Destructor of the SiPixelInformationExtractor class.