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
SiPixelLayoutParser
Definition: SiPixelLayoutParser.h:16
SiPixelConfigParser.h
SiPixelInformationExtractor::layoutParser_
SiPixelLayoutParser * layoutParser_
Definition: SiPixelInformationExtractor.h:82
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:33
mps_update.status
status
Definition: mps_update.py:69
SiPixelLayoutParser.h
cuy.col
col
Definition: cuy.py:1010
SiPixelEDAClient
Definition: SiPixelEDAClient.h:28
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:462
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:88
DetectorIndex.h
SiPixelInformationExtractor::qtestsMap
std::map< std::string, std::map< std::string, std::string > > qtestsMap
Definition: SiPixelInformationExtractor.h:85
SiPixelInformationExtractor::EventRateBarrelPixels
MonitorElement * EventRateBarrelPixels
Definition: SiPixelInformationExtractor.h:103
SiPixelInformationExtractor::errcount
int errcount
Definition: SiPixelInformationExtractor.h:95
dqm::legacy::DQMStore
Definition: DQMStore.h:727
SiPixelConfigWriter
Definition: SiPixelConfigWriter.h:25
SiPixelInformationExtractor::layoutMap
std::map< std::string, std::vector< std::string > > layoutMap
Definition: SiPixelInformationExtractor.h:84
SiPixelInformationExtractor::configWriter_
SiPixelConfigWriter * configWriter_
Definition: SiPixelInformationExtractor.h:80
SiPixelConfigParser
Definition: SiPixelConfigParser.h:19
SiPixelInformationExtractor::noisyDetIds_
std::map< uint32_t, std::vector< std::pair< std::pair< int, int >, float > > > noisyDetIds_
Definition: SiPixelInformationExtractor.h:100
SiPixelInformationExtractor::readMeMap_
bool readMeMap_
Definition: SiPixelInformationExtractor.h:90
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiPixelInformationExtractor::gotDigis
bool gotDigis
Definition: SiPixelInformationExtractor.h:96
SiPixelInformationExtractor::actionExecutor_
SiPixelActionExecutor * actionExecutor_
Definition: SiPixelInformationExtractor.h:81
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:77
SiPixelFedCablingMapRcd.h
SiPixelInformationExtractor::meQTestsMap
std::map< std::string, std::vector< std::string > > meQTestsMap
Definition: SiPixelInformationExtractor.h:86
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
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:104
SiPixelInformationExtractor::offlineXMLfile_
bool offlineXMLfile_
Definition: SiPixelInformationExtractor.h:92
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:107
DetSetVector.h
SiPixelInformationExtractor::endOfModules_
bool endOfModules_
Definition: SiPixelInformationExtractor.h:101
SiPixelFedCablingMap
Definition: SiPixelFedCablingMap.h:19
SiPixelInformationExtractor::MonitorElement
dqm::legacy::MonitorElement MonitorElement
Definition: SiPixelInformationExtractor.h:35
SiPixelInformationExtractor::nevents_
int nevents_
Definition: SiPixelInformationExtractor.h:99
SiPixelActionExecutor.h
init
Definition: init.py:1
SiPixelActionExecutor
Definition: SiPixelActionExecutor.h:44
dqm::implementation::IGetter
Definition: DQMStore.h:484
SiPixelInformationExtractor::readQTestMap_
bool readQTestMap_
Definition: SiPixelInformationExtractor.h:89
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
SiPixelInformationExtractor::EndcapNdigisFREQProjection
MonitorElement * EndcapNdigisFREQProjection
Definition: SiPixelInformationExtractor.h:106
SiPixelInformationExtractor::findNoisyPixels
void findNoisyPixels(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool init, float noiseRate, int noiseRateDenominator, const SiPixelFedCablingMap *theCablingMap)
Definition: SiPixelInformationExtractor.cc:346
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
SiPixelInformationExtractor::configParser_
SiPixelConfigParser * configParser_
Definition: SiPixelInformationExtractor.h:79
SiPixelInformationExtractor::myfile_
std::ofstream myfile_
Definition: SiPixelInformationExtractor.h:98
SiPixelInformationExtractor::count
int count
Definition: SiPixelInformationExtractor.h:94
SiPixelInformationExtractor::flagHotModule_
bool flagHotModule_
Definition: SiPixelInformationExtractor.h:91
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:36