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 
5 
10 
15 
22 
23 #include "xgi/Utils.h"
24 #include "xgi/Method.h"
25 
26 #include "TCanvas.h"
27 #include "TPaveText.h"
28 #include "TF1.h"
29 #include "TH2F.h"
30 #include "TGaxis.h"
31 
32 #include <fstream>
33 #include <sstream>
34 #include <map>
35 #include <vector>
36 #include <string>
37 #include <map>
38 #include <boost/cstdint.hpp>
39 
40 class DQMStore;
41 class SiPixelEDAClient;
45 
46  public:
47 
48  SiPixelDataQuality( bool offlineXMLfile);
50 
51  int getDetId( MonitorElement * mE) ;
52 
53  void bookGlobalQualityFlag (DQMStore * bei,
54  bool Tier0Flag,
55  int nFEDs);
56 
58  bool init,
59  int nFEDs,
60  bool Tier0Flag);
61 
63  bool init,
64  int nFEDs,
65  bool Tier0Flag,
66  int nEvents_lastLS_,
67  int nErrorsBarrel_lastLS_,
68  int nErrorsEndcap_lastLS_);
69 
70  void fillGlobalQualityPlot (DQMStore * bei,
71  bool init,
72  edm::EventSetup const & eSetup,
73  int nFEDs,
74  bool Tier0Flag,
75  int lumisec);
76 
77  private:
78 
80 
81 
82  TH2F * allmodsMap;
83  TH2F * errmodsMap;
84  TH2F * goodmodsMap;
85  TH1D * allmodsVec;
86  TH1D * errmodsVec;
87  TH1D * goodmodsVec;
88  int count;
89  int errcount;
90  bool gotDigis;
91 
93  bool DONE_;
94 
95 
96  ofstream myfile_;
97  int nevents_;
100 
101  // Final combined Data Quality Flags:
111 
112  float qflag_;
114 
115  // FEDErrors Cuts:
122 
127 
128  // Digis Cuts:
133 
134  // Cluster Cuts:
141 
142  // Track Cuts:
144 
145  int count1;
146  int count2;
147  int count3;
148  int count4;
149  int count5;
150  int count6;
151 
154  int lastLS_;
155  float lasterrmods_[40];
156  float lastallmods_[40];
157 
158 };
159 #endif
MonitorElement * FEDErrReportMap
void fillGlobalQualityPlot(DQMStore *bei, bool init, edm::EventSetup const &eSetup, int nFEDs, bool Tier0Flag, int lumisec)
MonitorElement * ClusterChargeBarrel
void computeGlobalQualityFlag(DQMStore *bei, bool init, int nFEDs, bool Tier0Flag)
int init
Definition: HydjetWrapper.h:63
MonitorElement * ClusterModAll
MonitorElement * SummaryBarrel
MonitorElement * ClusterSizeEndcap
int getDetId(MonitorElement *mE)
(Documentation under construction).
void computeGlobalQualityFlagByLumi(DQMStore *bei, bool init, int nFEDs, bool Tier0Flag, int nEvents_lastLS_, int nErrorsBarrel_lastLS_, int nErrorsEndcap_lastLS_)
MonitorElement * NPixelTracks
MonitorElement * NErrorsFEDs
MonitorElement * NDigisEndcap
MonitorElement * SummaryPixel
MonitorElement * NErrorsEndcap
MonitorElement * ClusterMod3
MonitorElement * ClusterMod1
MonitorElement * ClusterMod4
MonitorElement * NErrorsBarrel
MonitorElement * ClusterMod2
MonitorElement * NClustersEndcap
void bookGlobalQualityFlag(DQMStore *bei, bool Tier0Flag, int nFEDs)
MonitorElement * ClusterSizeBarrel
MonitorElement * SummaryReportMap
~SiPixelDataQuality()
Destructor of the SiPixelDataQuality class.
edm::ESHandle< SiPixelFedCablingMap > theCablingMap
MonitorElement * DigiChargeEndcap
MonitorElement * SummaryEndcap
MonitorElement * NDigisBarrel
MonitorElement * ClusterChargeEndcap
MonitorElement * DigiChargeBarrel
MonitorElement * NClustersBarrel
SiPixelDataQuality(bool offlineXMLfile)
Constructor of the SiPixelInformationExtractor class.