CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiPixelDataQuality.h
Go to the documentation of this file.
1 #ifndef _SiPixelDataQuality_h_
2 #define _SiPixelDataQuality_h_
3 
10 
11 
16 
23 
24 #include "TCanvas.h"
25 #include "TPaveText.h"
26 #include "TF1.h"
27 #include "TH2F.h"
28 #include "TGaxis.h"
29 
30 #include <fstream>
31 #include <sstream>
32 #include <map>
33 #include <vector>
34 #include <string>
35 #include <map>
36 #include <boost/cstdint.hpp>
37 
38 class SiPixelEDAClient;
40 
41  public:
42 
43  SiPixelDataQuality( bool offlineXMLfile);
45 
46  int getDetId( MonitorElement * mE) ;
47 
49  bool Tier0Flag,
50  int nFEDs);
51 
53  DQMStore::IGetter & iGetter,
54  bool init,
55  int nFEDs,
56  bool Tier0Flag);
57 
59  bool init,
60  int nFEDs,
61  bool Tier0Flag,
62  int nEvents_lastLS_,
63  int nErrorsBarrel_lastLS_,
64  int nErrorsEndcap_lastLS_);
65 
67  DQMStore::IGetter & iGetter,
68  bool init,
70  int nFEDs,
71  bool Tier0Flag,
72  int lumisec);
73 
74  private:
75 
77 
78 
79  TH2F * allmodsMap;
80  TH2F * errmodsMap;
81  TH2F * goodmodsMap;
82  TH1D * allmodsVec;
83  TH1D * errmodsVec;
84  TH1D * goodmodsVec;
85  int count;
86  int errcount;
87  bool gotDigis;
88 
90  bool DONE_;
91 
92 
93  std::ofstream myfile_;
94  int nevents_;
97 
98  // Final combined Data Quality Flags:
108 
109  float qflag_;
111 
112  // FEDErrors Cuts:
119 
124 
125  // Digis Cuts:
130 
131  // Cluster Cuts:
138 
139  // Track Cuts:
141 
142  int count1;
143  int count2;
144  int count3;
145  int count4;
146  int count5;
147  int count6;
148 
151  int lastLS_;
152  float lasterrmods_[40];
153  float lastallmods_[40];
154 
155 };
156 #endif
MonitorElement * FEDErrReportMap
MonitorElement * ClusterChargeBarrel
int init
Definition: HydjetWrapper.h:67
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)
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)