CMS 3D CMS Logo

SiPixelActionExecutor.h
Go to the documentation of this file.
1 #ifndef _SiPixelActionExecutor_h_
2 #define _SiPixelActionExecutor_h_
3 
16 #include <fstream>
17 #include <map>
18 #include <string>
19 #include <vector>
20 
21 // For Tracker Map
23 #define PI_12 0.261799
24 #define PI 3.141592
25 #define PI_2 1.570796
26 
27 // Number of HalfCylinders in Endcap or number of Shells in Barrel, which is bigger
28 #define NLev1 4
29 // Number of Disks in Endcap or number of Layers in Barrel, which is bigger
30 #define NLev2 3
31 // Number of Blades in Endcap or number of Ladders in Barrel, which is bigger
32 #define NLev3 22
33 // Number of Modules - different for Endcap and Barrel, which is bigger
34 #define NLev4 7
35 
36 #define NCyl 4
37 #define NDisk 2
38 #define NBlade 12
39 #define NModuleE 7
40 
41 #define NShell 4
42 #define NLayer 3
43 #define NModuleB 4
44 
45 #define NPoints 5
46 
47 // End for Tracker Map
48 
50 public:
51  SiPixelActionExecutor(bool offlineXMLfile, bool Tier0Flag);
53 
54  void createSummary(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool isUpgrade);
55  void bookDeviations(DQMStore::IBooker &iBooker, bool isUpgrade);
56  void bookEfficiency(DQMStore::IBooker &iBooker, bool isUpgrade);
57  void createEfficiency(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool isUpgrade);
58  void fillEfficiency(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool isbarrel, bool isUpgrade);
60  void bookOccupancyPlots(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool hiRes, bool isbarrel);
61  void bookOccupancyPlots(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool hiRes);
62  void createOccupancy(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter);
64  void normaliseAvDigiOccVsLumi(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, int lumisec);
65  bool readConfiguration(int &tkmap_freq,
66  int &sum_barrel_freq,
67  int &sum_endcap_freq,
68  int &sum_grandbarrel_freq,
69  int &sum_grandendcap_freq,
70  int &message_limit,
71  int &source_type,
72  int &calib_type);
73  bool readConfiguration(int &tkmap_freq, int &summary_freq);
74  void readConfiguration();
75  int getLadder(const std::string &dname);
76  int getBlade(const std::string &dname);
77 
78 private:
80  DQMStore::IGetter &iGetter,
81  std::string me_name,
82  bool isUpgrade);
84  void GetBladeSubdirs(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, std::vector<std::string> &blade_subdirs);
85  void fillSummary(DQMStore::IBooker &iBooker,
86  DQMStore::IGetter &iGetter,
88  std::vector<std::string> &me_names,
89  bool isbarrel,
90  bool isUpgrade);
91  void fillDeviations(DQMStore::IGetter &iGetter);
93  DQMStore::IGetter &iGetter,
94  std::string dir_name,
95  std::vector<std::string> &me_names);
97  DQMStore::IGetter &iGetter,
98  std::vector<std::string> &me_names,
99  bool isUpgrade);
101  DQMStore::IGetter &iGetter,
102  std::vector<std::string> &me_names,
103  bool isUpgrade);
104  void getGrandSummaryME(DQMStore::IBooker &iBooker,
105  DQMStore::IGetter &iGetter,
106  int nbin,
107  std::string &me_name,
108  std::vector<MonitorElement *> &mes);
109 
110  void fillOccupancy(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool isbarrel);
111 
115 
116  std::vector<std::string> summaryMENames;
117  std::vector<std::string> tkMapMENames;
118 
122  int ndet_;
125 
149 
150  TH2F *temp_H;
151  TH2F *temp_1x2;
152  TH2F *temp_1x5;
153  TH2F *temp_2x3;
154  TH2F *temp_2x4;
155  TH2F *temp_2x5;
156 };
157 #endif
void normaliseAvDigiOccVsLumi(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, int lumisec)
MonitorElement * PixelOccupancyMap
MonitorElement * HitEfficiency_Dp3
void fillDeviations(DQMStore::IGetter &iGetter)
void createEfficiency(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool isUpgrade)
void getGrandSummaryME(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, int nbin, std::string &me_name, std::vector< MonitorElement * > &mes)
MonitorElement * HitEfficiency_L4
MonitorElement * getFEDSummaryME(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, std::string me_name)
void bookOccupancyPlots(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool hiRes, bool isbarrel)
MonitorElement * DEV_size_Barrel
MonitorElement * HitEfficiency_L3
SiPixelConfigParser * configParser_
MonitorElement * DEV_nclusters_Barrel
void fillGrandEndcapSummaryHistos(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, std::vector< std::string > &me_names, bool isUpgrade)
MonitorElement * HitEfficiency_Dm2
MonitorElement * HitEfficiency_L2
int getBlade(const std::string &dname)
void normaliseAvDigiOcc(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter)
void fillEfficiency(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool isbarrel, bool isUpgrade)
std::vector< std::string > summaryMENames
SiPixelConfigWriter * configWriter_
std::vector< std::string > tkMapMENames
edm::ESHandle< SiPixelFedCablingMap > theCablingMap
void bookDeviations(DQMStore::IBooker &iBooker, bool isUpgrade)
void createSummary(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool isUpgrade)
MonitorElement * DEV_adc_Endcap
void fillFEDErrorSummary(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, std::string dir_name, std::vector< std::string > &me_names)
MonitorElement * DEV_charge_Endcap
MonitorElement * getSummaryME(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, std::string me_name, bool isUpgrade)
int getLadder(const std::string &dname)
void fillOccupancy(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool isbarrel)
SiPixelActionExecutor(bool offlineXMLfile, bool Tier0Flag)
MonitorElement * DEV_charge_Barrel
MonitorElement * HitEfficiency_Dm3
MonitorElement * HitEfficiency_L1
MonitorElement * DEV_nclusters_Endcap
MonitorElement * HitEfficiency_Dp1
MonitorElement * DEV_size_Endcap
MonitorElement * HitEfficiencySummary
void fillEfficiencySummary(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter)
void createOccupancy(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter)
MonitorElement * HitEfficiency_Dp2
void fillGrandBarrelSummaryHistos(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, std::vector< std::string > &me_names, bool isUpgrade)
void fillSummary(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, std::string dir_name, std::vector< std::string > &me_names, bool isbarrel, bool isUpgrade)
MonitorElement * DEV_ndigis_Endcap
void GetBladeSubdirs(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, std::vector< std::string > &blade_subdirs)
MonitorElement * HitEfficiency_Dm1
MonitorElement * DEV_ndigis_Barrel
void bookEfficiency(DQMStore::IBooker &iBooker, bool isUpgrade)
MonitorElement * DEV_adc_Barrel