CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
void normaliseAvDigiOccVsLumi(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, int lumisec)
MonitorElement * PixelOccupancyMap
MonitorElement * HitEfficiency_Dp3
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
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
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)
dqm::legacy::MonitorElement MonitorElement
MonitorElement * DEV_charge_Endcap
int getLadder(const std::string &dname)
MonitorElement * getSummaryME(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, std::string me_name, bool isUpgrade)
void fillOccupancy(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, bool isbarrel)
MonitorElement * getFEDSummaryME(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, std::string me_name)
SiPixelActionExecutor(bool offlineXMLfile, bool Tier0Flag)
MonitorElement * DEV_charge_Barrel
MonitorElement * HitEfficiency_Dm3
MonitorElement * HitEfficiency_L1
MonitorElement * DEV_nclusters_Endcap
MonitorElement * HitEfficiency_Dp1
dqm::legacy::DQMStore DQMStore
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