CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SiPixelDataQuality.h
Go to the documentation of this file.
1 #ifndef _SiPixelDataQuality_h_
2 #define _SiPixelDataQuality_h_
3 
9 
16 
17 #include "TCanvas.h"
18 #include "TF1.h"
19 #include "TGaxis.h"
20 #include "TH2F.h"
21 #include "TPaveText.h"
22 
23 #include <fstream>
24 #include <map>
25 #include <sstream>
26 #include <string>
27 #include <vector>
28 
29 class SiPixelEDAClient;
31 public:
34 
35  SiPixelDataQuality(bool offlineXMLfile);
37 
38  int getDetId(MonitorElement *mE);
39 
40  void bookGlobalQualityFlag(DQMStore::IBooker &iBooker, bool Tier0Flag, int nFEDs);
41 
43  DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool init, int nFEDs, bool Tier0Flag);
44 
46  bool init,
47  int nFEDs,
48  bool Tier0Flag,
49  int nEvents_lastLS_,
50  int nErrorsBarrel_lastLS_,
51  int nErrorsEndcap_lastLS_);
52 
54  DQMStore::IGetter &iGetter,
55  bool init,
56  const SiPixelFedCablingMap *theCablingMap,
57  int nFEDs,
58  bool Tier0Flag,
59  int lumisec);
60 
61 private:
63 
64  TH2F *allmodsMap;
65  TH2F *errmodsMap;
66  TH2F *goodmodsMap;
67  TH1D *allmodsVec;
68  TH1D *errmodsVec;
69  TH1D *goodmodsVec;
70  int count;
71  int errcount;
72  bool gotDigis;
73 
75  bool DONE_;
76 
77  std::ofstream myfile_;
78  int nevents_;
80 
81  // Final combined Data Quality Flags:
91 
92  float qflag_;
94 
95  // FEDErrors Cuts:
102 
107 
108  // Digis Cuts:
113 
114  // Cluster Cuts:
121 
122  // Track Cuts:
124 
125  int count1;
126  int count2;
127  int count3;
128  int count4;
129  int count5;
130  int count6;
131 
134  int lastLS_;
135  float lasterrmods_[40];
136  float lastallmods_[40];
137 };
138 #endif
MonitorElement * FEDErrReportMap
MonitorElement * ClusterChargeBarrel
int init
Definition: HydjetWrapper.h:64
MonitorElement * ClusterModAll
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)
MonitorElement * SummaryReportMap
~SiPixelDataQuality()
Destructor of the SiPixelDataQuality class.
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
void fillGlobalQualityPlot(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool init, const SiPixelFedCablingMap *theCablingMap, int nFEDs, bool Tier0Flag, int lumisec)
MonitorElement * ClusterChargeEndcap
MonitorElement * DigiChargeBarrel
MonitorElement * NClustersBarrel
SiPixelDataQuality(bool offlineXMLfile)
Constructor of the SiPixelInformationExtractor class.
void bookGlobalQualityFlag(DQMStore::IBooker &iBooker, bool Tier0Flag, int nFEDs)