test
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 "TCanvas.h"
24 #include "TPaveText.h"
25 #include "TF1.h"
26 #include "TH2F.h"
27 #include "TGaxis.h"
28 
29 #include <fstream>
30 #include <sstream>
31 #include <map>
32 #include <vector>
33 #include <string>
34 #include <map>
35 #include <boost/cstdint.hpp>
36 
37 class DQMStore;
38 class SiPixelEDAClient;
39 class SiPixelWebInterface;
42 
43  public:
44 
45  SiPixelDataQuality( bool offlineXMLfile);
47 
48  int getDetId( MonitorElement * mE) ;
49 
50  void bookGlobalQualityFlag (DQMStore * bei,
51  bool Tier0Flag,
52  int nFEDs);
53 
55  bool init,
56  int nFEDs,
57  bool Tier0Flag);
58 
60  bool init,
61  int nFEDs,
62  bool Tier0Flag,
63  int nEvents_lastLS_,
64  int nErrorsBarrel_lastLS_,
65  int nErrorsEndcap_lastLS_);
66 
67  void fillGlobalQualityPlot (DQMStore * bei,
68  bool init,
69  edm::EventSetup const & eSetup,
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
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:62
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.