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);
49  std::pair<double, double> &normX,
50  std::pair<double, double> &normY,
51  std::string theMEType);
52  int getDetId(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 
110 
113 };
114 #endif
SiPixelLayoutParser
Definition: SiPixelLayoutParser.h:16
SiPixelConfigParser.h
SiPixelInformationExtractor::layoutParser_
SiPixelLayoutParser * layoutParser_
Definition: SiPixelInformationExtractor.h:87
SiPixelInformationExtractor::getItemValue
std::string getItemValue(const std::multimap< std::string, std::string > &req_map, std::string item_name)
(Documentation under construction).
Definition: SiPixelInformationExtractor.cc:137
SiPixelConfigWriter.h
SiPixelInformationExtractor
Definition: SiPixelInformationExtractor.h:38
ESHandle.h
mps_update.status
status
Definition: mps_update.py:69
SiPixelLayoutParser.h
cuy.col
col
Definition: cuy.py:1010
SiPixelEDAClient
Definition: SiPixelEDAClient.h:29
SiPixelInformationExtractor::createDummiesFromLayout
void createDummiesFromLayout()
SiPixelInformationExtractor::SiPixelInformationExtractor
SiPixelInformationExtractor(bool offlineXMLfile)
Constructor of the SiPixelInformationExtractor class.
Definition: SiPixelInformationExtractor.cc:67
SiPixelInformationExtractor::getDetId
int getDetId(MonitorElement *mE)
(Documentation under construction).
Definition: SiPixelInformationExtractor.cc:312
SiPixelFedCablingMap.h
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
PixelDigi.h
SiPixelInformationExtractor::hasItem
bool hasItem(std::multimap< std::string, std::string > &req_map, std::string item_name)
(Documentation under construction).
Definition: SiPixelInformationExtractor.cc:125
mps_monitormerge.items
list items
Definition: mps_monitormerge.py:29
SiPixelInformationExtractor::readReference_
bool readReference_
Definition: SiPixelInformationExtractor.h:93
DetectorIndex.h
SiPixelInformationExtractor::qtestsMap
std::map< std::string, std::map< std::string, std::string > > qtestsMap
Definition: SiPixelInformationExtractor.h:90
SiPixelInformationExtractor::EventRateBarrelPixels
MonitorElement * EventRateBarrelPixels
Definition: SiPixelInformationExtractor.h:108
SiPixelInformationExtractor::errcount
int errcount
Definition: SiPixelInformationExtractor.h:100
dqm::legacy::DQMStore
Definition: DQMStore.h:727
SiPixelConfigWriter
Definition: SiPixelConfigWriter.h:25
edm::ESHandle< SiPixelFedCablingMap >
SiPixelInformationExtractor::layoutMap
std::map< std::string, std::vector< std::string > > layoutMap
Definition: SiPixelInformationExtractor.h:89
SiPixelInformationExtractor::configWriter_
SiPixelConfigWriter * configWriter_
Definition: SiPixelInformationExtractor.h:85
SiPixelConfigParser
Definition: SiPixelConfigParser.h:19
SiPixelInformationExtractor::noisyDetIds_
std::map< uint32_t, std::vector< std::pair< std::pair< int, int >, float > > > noisyDetIds_
Definition: SiPixelInformationExtractor.h:105
SiPixelInformationExtractor::readMeMap_
bool readMeMap_
Definition: SiPixelInformationExtractor.h:95
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiPixelInformationExtractor::gotDigis
bool gotDigis
Definition: SiPixelInformationExtractor.h:101
SiPixelInformationExtractor::actionExecutor_
SiPixelActionExecutor * actionExecutor_
Definition: SiPixelInformationExtractor.h:86
SiPixelInformationExtractor::getNormalization2D
void getNormalization2D(MonitorElement *mE, std::pair< double, double > &normX, std::pair< double, double > &normY, std::string theMEType)
(Documentation under construction).
Definition: SiPixelInformationExtractor.cc:290
SiPixelFrameConverter.h
SiPixelInformationExtractor::alarmCounter_
int alarmCounter_
Definition: SiPixelInformationExtractor.h:82
Event.h
SiPixelFedCablingMapRcd.h
SiPixelInformationExtractor::meQTestsMap
std::map< std::string, std::vector< std::string > > meQTestsMap
Definition: SiPixelInformationExtractor.h:91
SiPixelInformationExtractor::getItemList
void getItemList(const std::multimap< std::string, std::string > &req_map, std::string item_name, std::vector< std::string > &items)
(Documentation under construction).
Definition: SiPixelInformationExtractor.cc:109
SiPixelInformationExtractor::findNoisyPixels
void findNoisyPixels(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool init, float noiseRate, int noiseRateDenominator, edm::ESHandle< SiPixelFedCablingMap > theCablingMap)
Definition: SiPixelInformationExtractor.cc:346
SiPixelOfflineDQM_client_cff.Tier0Flag
Tier0Flag
Definition: SiPixelOfflineDQM_client_cff.py:17
SiPixelInformationExtractor::~SiPixelInformationExtractor
~SiPixelInformationExtractor()
Destructor of the SiPixelInformationExtractor class.
Definition: SiPixelInformationExtractor.cc:78
SiPixelInformationExtractor::EventRateEndcapPixels
MonitorElement * EventRateEndcapPixels
Definition: SiPixelInformationExtractor.h:109
SiPixelInformationExtractor::offlineXMLfile_
bool offlineXMLfile_
Definition: SiPixelInformationExtractor.h:97
SiPixelInformationExtractor::selectImage
void selectImage(std::string &name, int status)
SiPixelInformationExtractor::bookNoisyPixels
void bookNoisyPixels(DQMStore::IBooker &iBooker, float noiseRate, bool Tier0Flag)
Definition: SiPixelInformationExtractor.cc:328
SiPixelInformationExtractor::readConfiguration
void readConfiguration()
Read Configuration File.
Definition: SiPixelInformationExtractor.cc:87
SiPixelInformationExtractor::BarrelNdigisFREQProjection
MonitorElement * BarrelNdigisFREQProjection
Definition: SiPixelInformationExtractor.h:112
DetSetVector.h
SiPixelInformationExtractor::endOfModules_
bool endOfModules_
Definition: SiPixelInformationExtractor.h:106
SiPixelInformationExtractor::MonitorElement
dqm::legacy::MonitorElement MonitorElement
Definition: SiPixelInformationExtractor.h:40
SiPixelInformationExtractor::nevents_
int nevents_
Definition: SiPixelInformationExtractor.h:104
SiPixelActionExecutor.h
init
Definition: init.py:1
SiPixelActionExecutor
Definition: SiPixelActionExecutor.h:48
dqm::implementation::IGetter
Definition: DQMStore.h:484
SiPixelInformationExtractor::readQTestMap_
bool readQTestMap_
Definition: SiPixelInformationExtractor.h:94
SiPixelInformationExtractor::getNormalization
void getNormalization(MonitorElement *mE, std::pair< double, double > &norm, std::string theMEType)
(Documentation under construction).
Definition: SiPixelInformationExtractor.cc:273
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
EventSetup.h
SiPixelInformationExtractor::EndcapNdigisFREQProjection
MonitorElement * EndcapNdigisFREQProjection
Definition: SiPixelInformationExtractor.h:111
dqm::implementation::IBooker
Definition: DQMStore.h:43
SiPixelInformationExtractor::selectColor
void selectColor(std::string &col, int status)
genParticles_cff.map
map
Definition: genParticles_cff.py:11
ParameterSet.h
SiPixelInformationExtractor::configParser_
SiPixelConfigParser * configParser_
Definition: SiPixelInformationExtractor.h:84
SiPixelInformationExtractor::myfile_
std::ofstream myfile_
Definition: SiPixelInformationExtractor.h:103
SiPixelInformationExtractor::count
int count
Definition: SiPixelInformationExtractor.h:99
SiPixelInformationExtractor::flagHotModule_
bool flagHotModule_
Definition: SiPixelInformationExtractor.h:96
SiPixelInformationExtractor::computeStatus
void computeStatus(MonitorElement *mE, double &colorValue, std::pair< double, double > &norm)
(Documentation under construction).
Definition: SiPixelInformationExtractor.cc:217
SiPixelInformationExtractor::getMEType
std::string getMEType(MonitorElement *mE)
Definition: SiPixelInformationExtractor.cc:92
SiPixelInformationExtractor::DQMStore
dqm::legacy::DQMStore DQMStore
Definition: SiPixelInformationExtractor.h:41