CMS 3D CMS Logo

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