CMS 3D CMS Logo

SiPixelDataQuality.h
Go to the documentation of this file.
1 #ifndef _SiPixelDataQuality_h_
2 #define _SiPixelDataQuality_h_
3 
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 <boost/cstdint.hpp>
30 #include <fstream>
31 #include <map>
32 #include <sstream>
33 #include <string>
34 #include <vector>
35 
36 class SiPixelEDAClient;
38 public:
39  SiPixelDataQuality(bool offlineXMLfile);
41 
42  int getDetId(MonitorElement *mE);
43 
44  void bookGlobalQualityFlag(DQMStore::IBooker &iBooker, bool Tier0Flag, int nFEDs);
45 
47  DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool init, int nFEDs, bool Tier0Flag);
48 
50  bool init,
51  int nFEDs,
52  bool Tier0Flag,
53  int nEvents_lastLS_,
54  int nErrorsBarrel_lastLS_,
55  int nErrorsEndcap_lastLS_);
56 
58  DQMStore::IGetter &iGetter,
59  bool init,
61  int nFEDs,
62  bool Tier0Flag,
63  int lumisec);
64 
65 private:
67 
68  TH2F *allmodsMap;
69  TH2F *errmodsMap;
70  TH2F *goodmodsMap;
71  TH1D *allmodsVec;
72  TH1D *errmodsVec;
73  TH1D *goodmodsVec;
74  int count;
75  int errcount;
76  bool gotDigis;
77 
79  bool DONE_;
80 
81  std::ofstream myfile_;
82  int nevents_;
85 
86  // Final combined Data Quality Flags:
96 
97  float qflag_;
99 
100  // FEDErrors Cuts:
107 
112 
113  // Digis Cuts:
118 
119  // Cluster Cuts:
126 
127  // Track Cuts:
129 
130  int count1;
131  int count2;
132  int count3;
133  int count4;
134  int count5;
135  int count6;
136 
139  int lastLS_;
140  float lasterrmods_[40];
141  float lastallmods_[40];
142 };
143 #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)
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_)
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)