CMS 3D CMS Logo

SiPixelDataQuality.h
Go to the documentation of this file.
1 #ifndef _SiPixelDataQuality_h_
2 #define _SiPixelDataQuality_h_
3 
9 
14 
21 
22 #include "TCanvas.h"
23 #include "TF1.h"
24 #include "TGaxis.h"
25 #include "TH2F.h"
26 #include "TPaveText.h"
27 
28 #include <fstream>
29 #include <map>
30 #include <sstream>
31 #include <string>
32 #include <vector>
33 
34 class SiPixelEDAClient;
36 public:
39 
40  SiPixelDataQuality(bool offlineXMLfile);
42 
43  int getDetId(MonitorElement *mE);
44 
45  void bookGlobalQualityFlag(DQMStore::IBooker &iBooker, bool Tier0Flag, int nFEDs);
46 
48  DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool init, int nFEDs, bool Tier0Flag);
49 
51  bool init,
52  int nFEDs,
53  bool Tier0Flag,
54  int nEvents_lastLS_,
55  int nErrorsBarrel_lastLS_,
56  int nErrorsEndcap_lastLS_);
57 
59  DQMStore::IGetter &iGetter,
60  bool init,
62  int nFEDs,
63  bool Tier0Flag,
64  int lumisec);
65 
66 private:
68 
69  TH2F *allmodsMap;
70  TH2F *errmodsMap;
71  TH2F *goodmodsMap;
72  TH1D *allmodsVec;
73  TH1D *errmodsVec;
74  TH1D *goodmodsVec;
75  int count;
76  int errcount;
77  bool gotDigis;
78 
80  bool DONE_;
81 
82  std::ofstream myfile_;
83  int nevents_;
86 
87  // Final combined Data Quality Flags:
97 
98  float qflag_;
100 
101  // FEDErrors Cuts:
108 
113 
114  // Digis Cuts:
119 
120  // Cluster Cuts:
127 
128  // Track Cuts:
130 
131  int count1;
132  int count2;
133  int count3;
134  int count4;
135  int count5;
136  int count6;
137 
140  int lastLS_;
141  float lasterrmods_[40];
142  float lastallmods_[40];
143 };
144 #endif
SiPixelDataQuality::DQMStore
dqm::legacy::DQMStore DQMStore
Definition: SiPixelDataQuality.h:38
SiPixelConfigParser.h
SiPixelDataQuality::digiStatsEndcap
bool digiStatsEndcap
Definition: SiPixelDataQuality.h:111
SiPixelDataQuality::ClusterModAll
MonitorElement * ClusterModAll
Definition: SiPixelDataQuality.h:92
SiPixelConfigWriter.h
SiPixelDataQuality::DigiChargeBarrel
MonitorElement * DigiChargeBarrel
Definition: SiPixelDataQuality.h:117
ESHandle.h
SiPixelDataQuality::getDetId
int getDetId(MonitorElement *mE)
(Documentation under construction).
Definition: SiPixelDataQuality.cc:114
SiPixelDataQuality::trackCounterEndcap
int trackCounterEndcap
Definition: SiPixelDataQuality.h:112
SiPixelDataQuality::errmodsVec
TH1D * errmodsVec
Definition: SiPixelDataQuality.h:73
SiPixelDataQuality::ClusterChargeEndcap
MonitorElement * ClusterChargeEndcap
Definition: SiPixelDataQuality.h:124
SiPixelDataQuality::NClustersBarrel
MonitorElement * NClustersBarrel
Definition: SiPixelDataQuality.h:125
SiPixelLayoutParser.h
SiPixelDataQuality::digiStatsBarrel
bool digiStatsBarrel
Definition: SiPixelDataQuality.h:109
SiPixelDataQuality::bookGlobalQualityFlag
void bookGlobalQualityFlag(DQMStore::IBooker &iBooker, bool Tier0Flag, int nFEDs)
Definition: SiPixelDataQuality.cc:131
SiPixelEDAClient
Definition: SiPixelEDAClient.h:29
SiPixelDataQuality::n_errors_endcap_
int n_errors_endcap_
Definition: SiPixelDataQuality.h:106
SiPixelDataQuality::errorMods_
int errorMods_
Definition: SiPixelDataQuality.h:99
SiPixelFedCablingMap.h
DQMStore.h
SiPixelDataQuality::FEDErrReportMap
MonitorElement * FEDErrReportMap
Definition: SiPixelDataQuality.h:102
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
PixelDigi.h
SiPixelDataQuality::ClusterMod1
MonitorElement * ClusterMod1
Definition: SiPixelDataQuality.h:93
SiPixelDataQuality::NErrorsEndcap
MonitorElement * NErrorsEndcap
Definition: SiPixelDataQuality.h:104
SiPixelDataQuality::digiCounterBarrel
int digiCounterBarrel
Definition: SiPixelDataQuality.h:110
SiPixelDataQuality::ClusterMod3
MonitorElement * ClusterMod3
Definition: SiPixelDataQuality.h:95
SiPixelDataQuality::digiCounterEndcap
int digiCounterEndcap
Definition: SiPixelDataQuality.h:112
SiPixelDataQuality::goodmodsMap
TH2F * goodmodsMap
Definition: SiPixelDataQuality.h:71
SiPixelDataQuality::count3
int count3
Definition: SiPixelDataQuality.h:133
SiPixelDataQuality::n_errors_pixel_
int n_errors_pixel_
Definition: SiPixelDataQuality.h:106
DetectorIndex.h
SiPixelDataQuality::lastallmods_
float lastallmods_[40]
Definition: SiPixelDataQuality.h:142
SiPixelDataQuality::ClusterMod4
MonitorElement * ClusterMod4
Definition: SiPixelDataQuality.h:96
SiPixelDataQuality::NErrorsBarrel
MonitorElement * NErrorsBarrel
Definition: SiPixelDataQuality.h:103
dqm::legacy::DQMStore
Definition: DQMStore.h:727
SiPixelDataQuality::SummaryBarrel
MonitorElement * SummaryBarrel
Definition: SiPixelDataQuality.h:90
SiPixelDataQuality::clusterCounterBarrel
int clusterCounterBarrel
Definition: SiPixelDataQuality.h:110
SiPixelDataQuality::count5
int count5
Definition: SiPixelDataQuality.h:135
SiPixelDataQuality::trackStatsEndcap
bool trackStatsEndcap
Definition: SiPixelDataQuality.h:111
SiPixelDataQuality::ClusterSizeBarrel
MonitorElement * ClusterSizeBarrel
Definition: SiPixelDataQuality.h:121
SiPixelDataQuality::trackCounterBarrel
int trackCounterBarrel
Definition: SiPixelDataQuality.h:110
SiPixelDataQuality::fillGlobalQualityPlot
void fillGlobalQualityPlot(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool init, edm::ESHandle< SiPixelFedCablingMap > theCablingMap, int nFEDs, bool Tier0Flag, int lumisec)
Definition: SiPixelDataQuality.cc:790
edm::ESHandle< SiPixelFedCablingMap >
SiPixelDataQuality::ClusterSizeEndcap
MonitorElement * ClusterSizeEndcap
Definition: SiPixelDataQuality.h:122
SiPixelDataQuality::allMods_
int allMods_
Definition: SiPixelDataQuality.h:99
SiPixelDataQuality::gotDigis
bool gotDigis
Definition: SiPixelDataQuality.h:77
SiPixelDataQuality::clusterCounterEndcap
int clusterCounterEndcap
Definition: SiPixelDataQuality.h:112
SiPixelDataQuality::lastLS_
int lastLS_
Definition: SiPixelDataQuality.h:140
SiPixelDataQuality::count6
int count6
Definition: SiPixelDataQuality.h:136
SiPixelDataQuality::pixel_error_flag_
float pixel_error_flag_
Definition: SiPixelDataQuality.h:107
SiPixelDataQuality::theCablingMap
edm::ESHandle< SiPixelFedCablingMap > theCablingMap
Definition: SiPixelDataQuality.h:85
SiPixelDataQuality::errmodsMap
TH2F * errmodsMap
Definition: SiPixelDataQuality.h:70
SiPixelDataQuality::NDigisEndcap
MonitorElement * NDigisEndcap
Definition: SiPixelDataQuality.h:116
SiPixelDataQuality::~SiPixelDataQuality
~SiPixelDataQuality()
Destructor of the SiPixelDataQuality class.
Definition: SiPixelDataQuality.cc:92
SiPixelDataQuality::n_errors_barrel_
int n_errors_barrel_
Definition: SiPixelDataQuality.h:106
SiPixelFrameConverter.h
SiPixelDataQuality::objectCount_
int objectCount_
Definition: SiPixelDataQuality.h:79
SiPixelDataQuality::NPixelTracks
MonitorElement * NPixelTracks
Definition: SiPixelDataQuality.h:129
SiPixelDataQuality::NErrorsFEDs
MonitorElement * NErrorsFEDs
Definition: SiPixelDataQuality.h:105
Event.h
SiPixelDataQuality::SummaryPixel
MonitorElement * SummaryPixel
Definition: SiPixelDataQuality.h:89
SiPixelFedCablingMapRcd.h
SiPixelDataQuality::count2
int count2
Definition: SiPixelDataQuality.h:132
SiPixelDataQuality::count1
int count1
Definition: SiPixelDataQuality.h:131
SiPixelDataQuality::clusterStatsEndcap
bool clusterStatsEndcap
Definition: SiPixelDataQuality.h:111
SiPixelDataQuality::computeGlobalQualityFlagByLumi
void computeGlobalQualityFlagByLumi(DQMStore::IGetter &iGetter, bool init, int nFEDs, bool Tier0Flag, int nEvents_lastLS_, int nErrorsBarrel_lastLS_, int nErrorsEndcap_lastLS_)
Definition: SiPixelDataQuality.cc:698
SiPixelOfflineDQM_client_cff.Tier0Flag
Tier0Flag
Definition: SiPixelOfflineDQM_client_cff.py:17
SiPixelDataQuality::endOfModules_
bool endOfModules_
Definition: SiPixelDataQuality.h:84
SiPixelDataQuality
Definition: SiPixelDataQuality.h:35
SiPixelDataQuality::NDigisBarrel
MonitorElement * NDigisBarrel
Definition: SiPixelDataQuality.h:115
SiPixelDataQuality::endcapMods_
int endcapMods_
Definition: SiPixelDataQuality.h:99
SiPixelDataQuality::timeoutCounter_
int timeoutCounter_
Definition: SiPixelDataQuality.h:138
DetSetVector.h
SiPixelDataQuality::clusterStatsBarrel
bool clusterStatsBarrel
Definition: SiPixelDataQuality.h:109
SiPixelDataQuality::ClusterMod2
MonitorElement * ClusterMod2
Definition: SiPixelDataQuality.h:94
SiPixelDataQuality::count4
int count4
Definition: SiPixelDataQuality.h:134
SiPixelDataQuality::NClustersEndcap
MonitorElement * NClustersEndcap
Definition: SiPixelDataQuality.h:126
SiPixelActionExecutor.h
SiPixelDataQuality::barrel_error_flag_
float barrel_error_flag_
Definition: SiPixelDataQuality.h:107
SiPixelDataQuality::nevents_
int nevents_
Definition: SiPixelDataQuality.h:83
SiPixelDataQuality::offlineXMLfile_
bool offlineXMLfile_
Definition: SiPixelDataQuality.h:67
SiPixelDataQuality::barrelMods_
int barrelMods_
Definition: SiPixelDataQuality.h:99
SiPixelDataQuality::trackStatsBarrel
bool trackStatsBarrel
Definition: SiPixelDataQuality.h:109
init
Definition: init.py:1
SiPixelDataQuality::SiPixelDataQuality
SiPixelDataQuality(bool offlineXMLfile)
Constructor of the SiPixelInformationExtractor class.
Definition: SiPixelDataQuality.cc:66
dqm::implementation::IGetter
Definition: DQMStore.h:484
SiPixelDataQuality::goodmodsVec
TH1D * goodmodsVec
Definition: SiPixelDataQuality.h:74
SiPixelDataQuality::computeGlobalQualityFlag
void computeGlobalQualityFlag(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool init, int nFEDs, bool Tier0Flag)
Definition: SiPixelDataQuality.cc:280
SiPixelDataQuality::errcount
int errcount
Definition: SiPixelDataQuality.h:76
SiPixelDataQuality::DONE_
bool DONE_
Definition: SiPixelDataQuality.h:80
SiPixelDataQuality::lasterrmods_
float lasterrmods_[40]
Definition: SiPixelDataQuality.h:141
EventSetup.h
dqm::implementation::IBooker
Definition: DQMStore.h:43
SiPixelDataQuality::allmodsVec
TH1D * allmodsVec
Definition: SiPixelDataQuality.h:72
SiPixelDataQuality::count
int count
Definition: SiPixelDataQuality.h:75
SiPixelDataQuality::SummaryReportMap
MonitorElement * SummaryReportMap
Definition: SiPixelDataQuality.h:88
ParameterSet.h
SiPixelDataQuality::DigiChargeEndcap
MonitorElement * DigiChargeEndcap
Definition: SiPixelDataQuality.h:118
SiPixelDataQuality::myfile_
std::ofstream myfile_
Definition: SiPixelDataQuality.h:82
SiPixelDataQuality::SummaryEndcap
MonitorElement * SummaryEndcap
Definition: SiPixelDataQuality.h:91
SiPixelDataQuality::ClusterChargeBarrel
MonitorElement * ClusterChargeBarrel
Definition: SiPixelDataQuality.h:123
SiPixelDataQuality::qflag_
float qflag_
Definition: SiPixelDataQuality.h:98
SiPixelDataQuality::endcap_error_flag_
float endcap_error_flag_
Definition: SiPixelDataQuality.h:107
SiPixelDataQuality::allmodsMap
TH2F * allmodsMap
Definition: SiPixelDataQuality.h:69
SiPixelDataQuality::modCounter_
int modCounter_
Definition: SiPixelDataQuality.h:139
SiPixelDataQuality::MonitorElement
dqm::legacy::MonitorElement MonitorElement
Definition: SiPixelDataQuality.h:37