CMS 3D CMS Logo

SiPixelDataQuality.h
Go to the documentation of this file.
1 #ifndef _SiPixelDataQuality_h_
2 #define _SiPixelDataQuality_h_
3 
9 
14 
21 
22 #include "TCanvas.h"
23 #include "TF1.h"
24 #include "TGaxis.h"
25 #include "TH2F.h"
26 #include "TPaveText.h"
27 
28 #include <fstream>
29 #include <map>
30 #include <sstream>
31 #include <string>
32 #include <vector>
33 
34 class SiPixelEDAClient;
36 public:
39 
40  SiPixelDataQuality(bool offlineXMLfile);
42 
43  int getDetId(MonitorElement *mE);
44 
45  void bookGlobalQualityFlag(DQMStore::IBooker &iBooker, bool Tier0Flag, int nFEDs);
46 
48  DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool init, int nFEDs, bool Tier0Flag);
49 
51  bool init,
52  int nFEDs,
53  bool Tier0Flag,
54  int nEvents_lastLS_,
55  int nErrorsBarrel_lastLS_,
56  int nErrorsEndcap_lastLS_);
57 
59  DQMStore::IGetter &iGetter,
60  bool init,
62  int nFEDs,
63  bool Tier0Flag,
64  int lumisec);
65 
66 private:
68 
69  TH2F *allmodsMap;
70  TH2F *errmodsMap;
71  TH2F *goodmodsMap;
72  TH1D *allmodsVec;
73  TH1D *errmodsVec;
74  TH1D *goodmodsVec;
75  int count;
76  int errcount;
77  bool gotDigis;
78 
80  bool DONE_;
81 
82  std::ofstream myfile_;
83  int nevents_;
86 
87  // Final combined Data Quality Flags:
88  MonitorElement *SummaryReportMap;
89  MonitorElement *SummaryPixel;
90  MonitorElement *SummaryBarrel;
91  MonitorElement *SummaryEndcap;
92  MonitorElement *ClusterModAll;
93  MonitorElement *ClusterMod1;
94  MonitorElement *ClusterMod2;
95  MonitorElement *ClusterMod3;
96  MonitorElement *ClusterMod4;
97 
98  float qflag_;
100 
101  // FEDErrors Cuts:
102  MonitorElement *FEDErrReportMap;
103  MonitorElement *NErrorsBarrel;
104  MonitorElement *NErrorsEndcap;
105  MonitorElement *NErrorsFEDs;
108 
113 
114  // Digis Cuts:
115  MonitorElement *NDigisBarrel;
116  MonitorElement *NDigisEndcap;
117  MonitorElement *DigiChargeBarrel;
118  MonitorElement *DigiChargeEndcap;
119 
120  // Cluster Cuts:
121  MonitorElement *ClusterSizeBarrel;
122  MonitorElement *ClusterSizeEndcap;
123  MonitorElement *ClusterChargeBarrel;
124  MonitorElement *ClusterChargeEndcap;
125  MonitorElement *NClustersBarrel;
126  MonitorElement *NClustersEndcap;
127 
128  // Track Cuts:
129  MonitorElement *NPixelTracks;
130 
131  int count1;
132  int count2;
133  int count3;
134  int count4;
135  int count5;
136  int count6;
137 
140  int lastLS_;
141  float lasterrmods_[40];
142  float lastallmods_[40];
143 };
144 #endif
MonitorElement * FEDErrReportMap
MonitorElement * ClusterChargeBarrel
MonitorElement * ClusterModAll
void fillGlobalQualityPlot(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool init, edm::ESHandle< SiPixelFedCablingMap > theCablingMap, int nFEDs, bool Tier0Flag, int lumisec)
dqm::legacy::DQMStore DQMStore
MonitorElement * SummaryBarrel
MonitorElement * ClusterSizeEndcap
int getDetId(MonitorElement *mE)
(Documentation under construction).
MonitorElement * NPixelTracks
MonitorElement * NErrorsFEDs
MonitorElement * NDigisEndcap
MonitorElement * SummaryPixel
MonitorElement * NErrorsEndcap
MonitorElement * ClusterMod3
MonitorElement * ClusterMod1
MonitorElement * ClusterMod4
MonitorElement * NErrorsBarrel
MonitorElement * ClusterMod2
MonitorElement * NClustersEndcap
MonitorElement * ClusterSizeBarrel
void computeGlobalQualityFlag(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool init, int nFEDs, bool Tier0Flag)
Definition: init.py:1
MonitorElement * SummaryReportMap
~SiPixelDataQuality()
Destructor of the SiPixelDataQuality class.
edm::ESHandle< SiPixelFedCablingMap > theCablingMap
MonitorElement * DigiChargeEndcap
MonitorElement * SummaryEndcap
void computeGlobalQualityFlagByLumi(DQMStore::IGetter &iGetter, bool init, int nFEDs, bool Tier0Flag, int nEvents_lastLS_, int nErrorsBarrel_lastLS_, int nErrorsEndcap_lastLS_)
dqm::legacy::MonitorElement MonitorElement
MonitorElement * NDigisBarrel
MonitorElement * ClusterChargeEndcap
MonitorElement * DigiChargeBarrel
MonitorElement * NClustersBarrel
SiPixelDataQuality(bool offlineXMLfile)
Constructor of the SiPixelInformationExtractor class.
void bookGlobalQualityFlag(DQMStore::IBooker &iBooker, bool Tier0Flag, int nFEDs)