CMS 3D CMS Logo

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
SiPixelDataQuality::DQMStore
dqm::legacy::DQMStore DQMStore
Definition: SiPixelDataQuality.h:33
SiPixelConfigParser.h
SiPixelDataQuality::digiStatsEndcap
bool digiStatsEndcap
Definition: SiPixelDataQuality.h:105
SiPixelDataQuality::ClusterModAll
MonitorElement * ClusterModAll
Definition: SiPixelDataQuality.h:86
SiPixelConfigWriter.h
SiPixelDataQuality::DigiChargeBarrel
MonitorElement * DigiChargeBarrel
Definition: SiPixelDataQuality.h:111
SiPixelDataQuality::getDetId
int getDetId(MonitorElement *mE)
(Documentation under construction).
Definition: SiPixelDataQuality.cc:114
SiPixelDataQuality::trackCounterEndcap
int trackCounterEndcap
Definition: SiPixelDataQuality.h:106
SiPixelDataQuality::errmodsVec
TH1D * errmodsVec
Definition: SiPixelDataQuality.h:68
SiPixelDataQuality::ClusterChargeEndcap
MonitorElement * ClusterChargeEndcap
Definition: SiPixelDataQuality.h:118
SiPixelDataQuality::NClustersBarrel
MonitorElement * NClustersBarrel
Definition: SiPixelDataQuality.h:119
SiPixelLayoutParser.h
SiPixelDataQuality::digiStatsBarrel
bool digiStatsBarrel
Definition: SiPixelDataQuality.h:103
SiPixelDataQuality::bookGlobalQualityFlag
void bookGlobalQualityFlag(DQMStore::IBooker &iBooker, bool Tier0Flag, int nFEDs)
Definition: SiPixelDataQuality.cc:131
SiPixelEDAClient
Definition: SiPixelEDAClient.h:28
SiPixelDataQuality::n_errors_endcap_
int n_errors_endcap_
Definition: SiPixelDataQuality.h:100
SiPixelDataQuality::errorMods_
int errorMods_
Definition: SiPixelDataQuality.h:93
SiPixelFedCablingMap.h
DQMStore.h
SiPixelDataQuality::FEDErrReportMap
MonitorElement * FEDErrReportMap
Definition: SiPixelDataQuality.h:96
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
PixelDigi.h
SiPixelDataQuality::ClusterMod1
MonitorElement * ClusterMod1
Definition: SiPixelDataQuality.h:87
SiPixelDataQuality::NErrorsEndcap
MonitorElement * NErrorsEndcap
Definition: SiPixelDataQuality.h:98
SiPixelDataQuality::digiCounterBarrel
int digiCounterBarrel
Definition: SiPixelDataQuality.h:104
SiPixelDataQuality::ClusterMod3
MonitorElement * ClusterMod3
Definition: SiPixelDataQuality.h:89
SiPixelDataQuality::digiCounterEndcap
int digiCounterEndcap
Definition: SiPixelDataQuality.h:106
SiPixelDataQuality::goodmodsMap
TH2F * goodmodsMap
Definition: SiPixelDataQuality.h:66
SiPixelDataQuality::count3
int count3
Definition: SiPixelDataQuality.h:127
SiPixelDataQuality::n_errors_pixel_
int n_errors_pixel_
Definition: SiPixelDataQuality.h:100
DetectorIndex.h
SiPixelDataQuality::lastallmods_
float lastallmods_[40]
Definition: SiPixelDataQuality.h:136
SiPixelDataQuality::ClusterMod4
MonitorElement * ClusterMod4
Definition: SiPixelDataQuality.h:90
SiPixelDataQuality::NErrorsBarrel
MonitorElement * NErrorsBarrel
Definition: SiPixelDataQuality.h:97
dqm::legacy::DQMStore
Definition: DQMStore.h:727
SiPixelDataQuality::SummaryBarrel
MonitorElement * SummaryBarrel
Definition: SiPixelDataQuality.h:84
SiPixelDataQuality::clusterCounterBarrel
int clusterCounterBarrel
Definition: SiPixelDataQuality.h:104
SiPixelDataQuality::count5
int count5
Definition: SiPixelDataQuality.h:129
SiPixelDataQuality::trackStatsEndcap
bool trackStatsEndcap
Definition: SiPixelDataQuality.h:105
SiPixelDataQuality::ClusterSizeBarrel
MonitorElement * ClusterSizeBarrel
Definition: SiPixelDataQuality.h:115
SiPixelDataQuality::trackCounterBarrel
int trackCounterBarrel
Definition: SiPixelDataQuality.h:104
SiPixelDataQuality::ClusterSizeEndcap
MonitorElement * ClusterSizeEndcap
Definition: SiPixelDataQuality.h:116
SiPixelDataQuality::allMods_
int allMods_
Definition: SiPixelDataQuality.h:93
SiPixelDataQuality::gotDigis
bool gotDigis
Definition: SiPixelDataQuality.h:72
SiPixelDataQuality::clusterCounterEndcap
int clusterCounterEndcap
Definition: SiPixelDataQuality.h:106
SiPixelDataQuality::lastLS_
int lastLS_
Definition: SiPixelDataQuality.h:134
SiPixelDataQuality::count6
int count6
Definition: SiPixelDataQuality.h:130
SiPixelDataQuality::pixel_error_flag_
float pixel_error_flag_
Definition: SiPixelDataQuality.h:101
SiPixelDataQuality::errmodsMap
TH2F * errmodsMap
Definition: SiPixelDataQuality.h:65
SiPixelDataQuality::NDigisEndcap
MonitorElement * NDigisEndcap
Definition: SiPixelDataQuality.h:110
SiPixelDataQuality::~SiPixelDataQuality
~SiPixelDataQuality()
Destructor of the SiPixelDataQuality class.
Definition: SiPixelDataQuality.cc:92
SiPixelDataQuality::n_errors_barrel_
int n_errors_barrel_
Definition: SiPixelDataQuality.h:100
SiPixelFrameConverter.h
SiPixelDataQuality::objectCount_
int objectCount_
Definition: SiPixelDataQuality.h:74
SiPixelDataQuality::NPixelTracks
MonitorElement * NPixelTracks
Definition: SiPixelDataQuality.h:123
SiPixelDataQuality::NErrorsFEDs
MonitorElement * NErrorsFEDs
Definition: SiPixelDataQuality.h:99
SiPixelDataQuality::SummaryPixel
MonitorElement * SummaryPixel
Definition: SiPixelDataQuality.h:83
SiPixelFedCablingMapRcd.h
SiPixelDataQuality::count2
int count2
Definition: SiPixelDataQuality.h:126
SiPixelDataQuality::count1
int count1
Definition: SiPixelDataQuality.h:125
SiPixelDataQuality::clusterStatsEndcap
bool clusterStatsEndcap
Definition: SiPixelDataQuality.h:105
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:79
SiPixelDataQuality
Definition: SiPixelDataQuality.h:30
SiPixelDataQuality::NDigisBarrel
MonitorElement * NDigisBarrel
Definition: SiPixelDataQuality.h:109
SiPixelDataQuality::endcapMods_
int endcapMods_
Definition: SiPixelDataQuality.h:93
SiPixelDataQuality::timeoutCounter_
int timeoutCounter_
Definition: SiPixelDataQuality.h:132
DetSetVector.h
SiPixelDataQuality::fillGlobalQualityPlot
void fillGlobalQualityPlot(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool init, const SiPixelFedCablingMap *theCablingMap, int nFEDs, bool Tier0Flag, int lumisec)
Definition: SiPixelDataQuality.cc:790
SiPixelDataQuality::clusterStatsBarrel
bool clusterStatsBarrel
Definition: SiPixelDataQuality.h:103
SiPixelFedCablingMap
Definition: SiPixelFedCablingMap.h:19
SiPixelDataQuality::ClusterMod2
MonitorElement * ClusterMod2
Definition: SiPixelDataQuality.h:88
SiPixelDataQuality::count4
int count4
Definition: SiPixelDataQuality.h:128
SiPixelDataQuality::NClustersEndcap
MonitorElement * NClustersEndcap
Definition: SiPixelDataQuality.h:120
SiPixelActionExecutor.h
SiPixelDataQuality::barrel_error_flag_
float barrel_error_flag_
Definition: SiPixelDataQuality.h:101
SiPixelDataQuality::nevents_
int nevents_
Definition: SiPixelDataQuality.h:78
SiPixelDataQuality::offlineXMLfile_
bool offlineXMLfile_
Definition: SiPixelDataQuality.h:62
SiPixelDataQuality::barrelMods_
int barrelMods_
Definition: SiPixelDataQuality.h:93
SiPixelDataQuality::trackStatsBarrel
bool trackStatsBarrel
Definition: SiPixelDataQuality.h:103
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:69
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:71
SiPixelDataQuality::DONE_
bool DONE_
Definition: SiPixelDataQuality.h:75
SiPixelDataQuality::lasterrmods_
float lasterrmods_[40]
Definition: SiPixelDataQuality.h:135
dqm::implementation::IBooker
Definition: DQMStore.h:43
SiPixelDataQuality::allmodsVec
TH1D * allmodsVec
Definition: SiPixelDataQuality.h:67
SiPixelDataQuality::count
int count
Definition: SiPixelDataQuality.h:70
SiPixelDataQuality::SummaryReportMap
MonitorElement * SummaryReportMap
Definition: SiPixelDataQuality.h:82
SiPixelDataQuality::DigiChargeEndcap
MonitorElement * DigiChargeEndcap
Definition: SiPixelDataQuality.h:112
SiPixelDataQuality::myfile_
std::ofstream myfile_
Definition: SiPixelDataQuality.h:77
SiPixelDataQuality::SummaryEndcap
MonitorElement * SummaryEndcap
Definition: SiPixelDataQuality.h:85
SiPixelDataQuality::ClusterChargeBarrel
MonitorElement * ClusterChargeBarrel
Definition: SiPixelDataQuality.h:117
SiPixelDataQuality::qflag_
float qflag_
Definition: SiPixelDataQuality.h:92
SiPixelDataQuality::endcap_error_flag_
float endcap_error_flag_
Definition: SiPixelDataQuality.h:101
SiPixelDataQuality::allmodsMap
TH2F * allmodsMap
Definition: SiPixelDataQuality.h:64
SiPixelDataQuality::modCounter_
int modCounter_
Definition: SiPixelDataQuality.h:133
SiPixelDataQuality::MonitorElement
dqm::legacy::MonitorElement MonitorElement
Definition: SiPixelDataQuality.h:32