CMS 3D CMS Logo

SiPixelActionExecutor.h
Go to the documentation of this file.
1 #ifndef _SiPixelActionExecutor_h_
2 #define _SiPixelActionExecutor_h_
3 
15 #include <fstream>
16 #include <map>
17 #include <string>
18 #include <vector>
19 
20 // For Tracker Map
22 #define PI_12 0.261799
23 #define PI 3.141592
24 #define PI_2 1.570796
25 
26 // Number of HalfCylinders in Endcap or number of Shells in Barrel, which is bigger
27 #define NLev1 4
28 // Number of Disks in Endcap or number of Layers in Barrel, which is bigger
29 #define NLev2 3
30 // Number of Blades in Endcap or number of Ladders in Barrel, which is bigger
31 #define NLev3 22
32 // Number of Modules - different for Endcap and Barrel, which is bigger
33 #define NLev4 7
34 
35 #define NCyl 4
36 #define NDisk 2
37 #define NBlade 12
38 #define NModuleE 7
39 
40 #define NShell 4
41 #define NLayer 3
42 #define NModuleB 4
43 
44 #define NPoints 5
45 
46 // End for Tracker Map
47 
49 public:
52 
53  SiPixelActionExecutor(bool offlineXMLfile, bool Tier0Flag);
55 
56  void createSummary(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool isUpgrade);
57  void bookDeviations(DQMStore::IBooker &iBooker, bool isUpgrade);
58  void bookEfficiency(DQMStore::IBooker &iBooker, bool isUpgrade);
59  void createEfficiency(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool isUpgrade);
60  void fillEfficiency(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool isbarrel, bool isUpgrade);
62  void bookOccupancyPlots(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool hiRes, bool isbarrel);
63  void bookOccupancyPlots(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool hiRes);
64  void createOccupancy(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter);
66  void normaliseAvDigiOccVsLumi(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, int lumisec);
67  bool readConfiguration(int &tkmap_freq,
68  int &sum_barrel_freq,
69  int &sum_endcap_freq,
70  int &sum_grandbarrel_freq,
71  int &sum_grandendcap_freq,
72  int &message_limit,
73  int &source_type,
74  int &calib_type);
75  bool readConfiguration(int &tkmap_freq, int &summary_freq);
76  void readConfiguration();
77  int getLadder(const std::string &dname);
78  int getBlade(const std::string &dname);
79 
80 private:
82  DQMStore::IGetter &iGetter,
83  std::string me_name,
84  bool isUpgrade);
86  void GetBladeSubdirs(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, std::vector<std::string> &blade_subdirs);
87  void fillSummary(DQMStore::IBooker &iBooker,
88  DQMStore::IGetter &iGetter,
90  std::vector<std::string> &me_names,
91  bool isbarrel,
92  bool isUpgrade);
94  DQMStore::IGetter &iGetter,
96  std::vector<std::string> &me_names);
98  DQMStore::IGetter &iGetter,
99  std::vector<std::string> &me_names,
100  bool isUpgrade);
102  DQMStore::IGetter &iGetter,
103  std::vector<std::string> &me_names,
104  bool isUpgrade);
105  void getGrandSummaryME(DQMStore::IBooker &iBooker,
106  DQMStore::IGetter &iGetter,
107  int nbin,
108  std::string &me_name,
109  std::vector<MonitorElement *> &mes);
110 
111  void fillOccupancy(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool isbarrel);
112 
116 
117  std::vector<std::string> summaryMENames;
118  std::vector<std::string> tkMapMENames;
119 
123  int ndet_;
126 
150 
151  TH2F *temp_H;
152  TH2F *temp_1x2;
153  TH2F *temp_1x5;
154  TH2F *temp_2x3;
155  TH2F *temp_2x4;
156  TH2F *temp_2x5;
157 };
158 #endif
SiPixelActionExecutor::configWriter_
SiPixelConfigWriter * configWriter_
Definition: SiPixelActionExecutor.h:114
SiPixelActionExecutor::getFEDSummaryME
MonitorElement * getFEDSummaryME(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, std::string me_name)
Definition: SiPixelActionExecutor.cc:1680
SiPixelConfigParser.h
SiPixelActionExecutor::fillOccupancy
void fillOccupancy(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool isbarrel)
Definition: SiPixelActionExecutor.cc:1802
SiPixelActionExecutor::ndet_
int ndet_
Definition: SiPixelActionExecutor.h:123
SiPixelActionExecutor::normaliseAvDigiOccVsLumi
void normaliseAvDigiOccVsLumi(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, int lumisec)
Definition: SiPixelActionExecutor.cc:1888
SiPixelActionExecutor::fillEfficiencySummary
void fillEfficiencySummary(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter)
Definition: SiPixelActionExecutor.cc:2663
SiPixelConfigWriter.h
SiPixelActionExecutor::getBlade
int getBlade(const std::string &dname)
Definition: SiPixelActionExecutor.cc:2051
SiPixelActionExecutor::DEV_adc_Endcap
MonitorElement * DEV_adc_Endcap
Definition: SiPixelActionExecutor.h:145
ESHandle.h
SiPixelActionExecutor::normaliseAvDigiOcc
void normaliseAvDigiOcc(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter)
Definition: SiPixelActionExecutor.cc:1858
SiPixelActionExecutor::createEfficiency
void createEfficiency(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool isUpgrade)
Definition: SiPixelActionExecutor.cc:2024
funcType
funcType
Definition: SiPixelActionExecutor.h:21
SiPixelActionExecutor::offlineXMLfile_
bool offlineXMLfile_
Definition: SiPixelActionExecutor.h:124
SiPixelActionExecutor::getSummaryME
MonitorElement * getSummaryME(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, std::string me_name, bool isUpgrade)
Definition: SiPixelActionExecutor.cc:1619
SiPixelActionExecutor::PixelOccupancyMap
MonitorElement * PixelOccupancyMap
Definition: SiPixelActionExecutor.h:128
SiPixelActionExecutor::HitEfficiencySummary
MonitorElement * HitEfficiencySummary
Definition: SiPixelActionExecutor.h:139
SiPixelFedCablingMap.h
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
SiPixelActionExecutor::theCablingMap
edm::ESHandle< SiPixelFedCablingMap > theCablingMap
Definition: SiPixelActionExecutor.h:115
SiPixelActionExecutor::HitEfficiency_Dm1
MonitorElement * HitEfficiency_Dm1
Definition: SiPixelActionExecutor.h:136
SiPixelActionExecutor::DEV_charge_Endcap
MonitorElement * DEV_charge_Endcap
Definition: SiPixelActionExecutor.h:147
SiPixelActionExecutor::DEV_nclusters_Barrel
MonitorElement * DEV_nclusters_Barrel
Definition: SiPixelActionExecutor.h:143
SiPixelActionExecutor::bookDeviations
void bookDeviations(DQMStore::IBooker &iBooker, bool isUpgrade)
Definition: SiPixelActionExecutor.cc:230
Mean
Definition: SiPixelActionExecutor.h:21
SiPixelActionExecutor::DEV_adc_Barrel
MonitorElement * DEV_adc_Barrel
Definition: SiPixelActionExecutor.h:140
WeightedSum
Definition: SiPixelActionExecutor.h:21
DetectorIndex.h
SiPixelActionExecutor::fillEfficiency
void fillEfficiency(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool isbarrel, bool isUpgrade)
Definition: SiPixelActionExecutor.cc:2062
SiPixelActionExecutor::HitEfficiency_Dp1
MonitorElement * HitEfficiency_Dp1
Definition: SiPixelActionExecutor.h:133
SiPixelActionExecutor::getGrandSummaryME
void getGrandSummaryME(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, int nbin, std::string &me_name, std::vector< MonitorElement * > &mes)
Definition: SiPixelActionExecutor.cc:1580
SiPixelActionExecutor::OccupancyMap
MonitorElement * OccupancyMap
Definition: SiPixelActionExecutor.h:127
SiPixelActionExecutor::temp_1x2
TH2F * temp_1x2
Definition: SiPixelActionExecutor.h:152
SiPixelActionExecutor::bookEfficiency
void bookEfficiency(DQMStore::IBooker &iBooker, bool isUpgrade)
Definition: SiPixelActionExecutor.cc:1917
dqm::legacy::DQMStore
Definition: DQMStore.h:727
SiPixelActionExecutor::temp_1x5
TH2F * temp_1x5
Definition: SiPixelActionExecutor.h:153
SiPixelActionExecutor::calib_type_
int calib_type_
Definition: SiPixelActionExecutor.h:122
EachBinContent
Definition: SiPixelActionExecutor.h:21
SiPixelConfigWriter
Definition: SiPixelConfigWriter.h:25
edm::ESHandle< SiPixelFedCablingMap >
SiPixelActionExecutor::readConfiguration
void readConfiguration()
Definition: SiPixelActionExecutor.cc:52
SiPixelConfigParser
Definition: SiPixelConfigParser.h:19
SiPixelActionExecutor::MonitorElement
dqm::legacy::MonitorElement MonitorElement
Definition: SiPixelActionExecutor.h:51
Sum
Definition: SiPixelActionExecutor.h:21
SiPixelActionExecutor::HitEfficiency_L1
MonitorElement * HitEfficiency_L1
Definition: SiPixelActionExecutor.h:129
SiPixelActionExecutor::fillGrandEndcapSummaryHistos
void fillGrandEndcapSummaryHistos(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, std::vector< std::string > &me_names, bool isUpgrade)
Definition: SiPixelActionExecutor.cc:1261
SiPixelActionExecutor::fillGrandBarrelSummaryHistos
void fillGrandBarrelSummaryHistos(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, std::vector< std::string > &me_names, bool isUpgrade)
Definition: SiPixelActionExecutor.cc:879
SiPixelActionExecutor::HitEfficiency_L2
MonitorElement * HitEfficiency_L2
Definition: SiPixelActionExecutor.h:130
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiPixelActionExecutor::HitEfficiency_Dp2
MonitorElement * HitEfficiency_Dp2
Definition: SiPixelActionExecutor.h:134
Entries
Definition: SiPixelActionExecutor.h:21
SiPixelActionExecutor::source_type_
int source_type_
Definition: SiPixelActionExecutor.h:121
SiPixelFrameConverter.h
SiPixelActionExecutor::fillSummary
void fillSummary(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, std::string dir_name, std::vector< std::string > &me_names, bool isbarrel, bool isUpgrade)
Definition: SiPixelActionExecutor.cc:287
compare_using_db.dir_name
dir_name
Definition: compare_using_db.py:32
Event.h
SiPixelFedCablingMapRcd.h
SiPixelActionExecutor::~SiPixelActionExecutor
~SiPixelActionExecutor()
Definition: SiPixelActionExecutor.cc:40
SiPixelActionExecutor::message_limit_
int message_limit_
Definition: SiPixelActionExecutor.h:120
SiPixelActionExecutor::HitEfficiency_L4
MonitorElement * HitEfficiency_L4
Definition: SiPixelActionExecutor.h:132
SiPixelOfflineDQM_client_cff.Tier0Flag
Tier0Flag
Definition: SiPixelOfflineDQM_client_cff.py:17
SiPixelActionExecutor::temp_H
TH2F * temp_H
Definition: SiPixelActionExecutor.h:151
SiPixelOfflineDQM_source_cff.hiRes
hiRes
Definition: SiPixelOfflineDQM_source_cff.py:43
SiPixelActionExecutor::temp_2x5
TH2F * temp_2x5
Definition: SiPixelActionExecutor.h:156
SiPixelActionExecutor::tkMapMENames
std::vector< std::string > tkMapMENames
Definition: SiPixelActionExecutor.h:118
SiPixelActionExecutor::DEV_ndigis_Endcap
MonitorElement * DEV_ndigis_Endcap
Definition: SiPixelActionExecutor.h:146
SiPixelActionExecutor::GetBladeSubdirs
void GetBladeSubdirs(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, std::vector< std::string > &blade_subdirs)
Definition: SiPixelActionExecutor.cc:269
SiPixelActionExecutor::createOccupancy
void createOccupancy(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter)
Definition: SiPixelActionExecutor.cc:1784
SiPixelActionExecutor::fillFEDErrorSummary
void fillFEDErrorSummary(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, std::string dir_name, std::vector< std::string > &me_names)
Definition: SiPixelActionExecutor.cc:687
SiPixelActionExecutor::getLadder
int getLadder(const std::string &dname)
Definition: SiPixelActionExecutor.cc:2040
SiPixelActionExecutor::HitEfficiency_Dp3
MonitorElement * HitEfficiency_Dp3
Definition: SiPixelActionExecutor.h:135
SiPixelActionExecutor::summaryMENames
std::vector< std::string > summaryMENames
Definition: SiPixelActionExecutor.h:117
SiPixelActionExecutor::DEV_ndigis_Barrel
MonitorElement * DEV_ndigis_Barrel
Definition: SiPixelActionExecutor.h:141
SiPixelActionExecutor
Definition: SiPixelActionExecutor.h:48
SiPixelActionExecutor::temp_2x3
TH2F * temp_2x3
Definition: SiPixelActionExecutor.h:154
dqm::implementation::IGetter
Definition: DQMStore.h:484
SiPixelActionExecutor::DEV_size_Barrel
MonitorElement * DEV_size_Barrel
Definition: SiPixelActionExecutor.h:144
ZMuMuCategoriesSequences_cff.nbin
nbin
Definition: ZMuMuCategoriesSequences_cff.py:25
SiPixelActionExecutor::configParser_
SiPixelConfigParser * configParser_
Definition: SiPixelActionExecutor.h:113
EventSetup.h
RefreshWebPage.dname
dname
Definition: RefreshWebPage.py:56
SiPixelActionExecutor::SiPixelActionExecutor
SiPixelActionExecutor(bool offlineXMLfile, bool Tier0Flag)
Definition: SiPixelActionExecutor.cc:27
dqm::implementation::IBooker
Definition: DQMStore.h:43
SiPixelActionExecutor::HitEfficiency_Dm3
MonitorElement * HitEfficiency_Dm3
Definition: SiPixelActionExecutor.h:138
SiPixelActionExecutor::createSummary
void createSummary(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool isUpgrade)
Definition: SiPixelActionExecutor.cc:161
SiPixelActionExecutor::HitEfficiency_L3
MonitorElement * HitEfficiency_L3
Definition: SiPixelActionExecutor.h:131
SiPixelActionExecutor::DEV_charge_Barrel
MonitorElement * DEV_charge_Barrel
Definition: SiPixelActionExecutor.h:142
SiPixelActionExecutor::HitEfficiency_Dm2
MonitorElement * HitEfficiency_Dm2
Definition: SiPixelActionExecutor.h:137
ParameterSet.h
SiPixelOfflineDQM_client_cff.isUpgrade
isUpgrade
Definition: SiPixelOfflineDQM_client_cff.py:19
SiPixelActionExecutor::DEV_nclusters_Endcap
MonitorElement * DEV_nclusters_Endcap
Definition: SiPixelActionExecutor.h:148
SiPixelActionExecutor::DQMStore
dqm::legacy::DQMStore DQMStore
Definition: SiPixelActionExecutor.h:50
SiPixelActionExecutor::bookOccupancyPlots
void bookOccupancyPlots(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool hiRes, bool isbarrel)
Definition: SiPixelActionExecutor.cc:1708
SiPixelActionExecutor::Tier0Flag_
bool Tier0Flag_
Definition: SiPixelActionExecutor.h:125
SiPixelActionExecutor::temp_2x4
TH2F * temp_2x4
Definition: SiPixelActionExecutor.h:155
SiPixelActionExecutor::DEV_size_Endcap
MonitorElement * DEV_size_Endcap
Definition: SiPixelActionExecutor.h:149