CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 <vector>
19 #include <string>
20 
21 // For Tracker Map
23 #define PI_12 0.261799
24 #define PI 3.141592
25 #define PI_2 1.570796
26 
27 #define NLev1 4 // Number of HalfCylinders in Endcap or number of Shells in Barrel, which is bigger
28 #define NLev2 3 // Number of Disks in Endcap or number of Layers in Barrel, which is bigger
29 #define NLev3 22 // Number of Blades in Endcap or number of Ladders in Barrel, which is bigger
30 #define NLev4 7 // Number of Modules - different for Endcap and Barrel, which is bigger
31 
32 #define NCyl 4
33 #define NDisk 2
34 #define NBlade 12
35 #define NModuleE 7
36 
37 #define NShell 4
38 #define NLayer 3
39 #define NModuleB 4
40 
41 #define NPoints 5
42 
43 // End for Tracker Map
44 
46 
47  public:
48 
49  SiPixelActionExecutor( bool offlineXMLfile,
50  bool Tier0Flag);
52 
53  void createSummary( DQMStore::IBooker & iBooker,
54  DQMStore::IGetter & iGetter,
55  bool isUpgrade);
56  void bookDeviations( DQMStore::IBooker & iBooker,
57  bool isUpgrade);
58  void bookEfficiency( DQMStore::IBooker & iBooker,
59  bool isUpgrade);
60  void createEfficiency( DQMStore::IBooker & iBooker,
61  DQMStore::IGetter & iGetter,
62  bool isUpgrade);
63  void fillEfficiency( DQMStore::IBooker & iBooker,
64  DQMStore::IGetter & iGetter,
65  bool isbarrel,
66  bool isUpgrade);
67  void bookOccupancyPlots( DQMStore::IBooker & iBooker,
68  DQMStore::IGetter & iGetter,
69  bool hiRes,
70  bool isbarrel);
71  void bookOccupancyPlots( DQMStore::IBooker & iBooker,
72  DQMStore::IGetter & iGetter,
73  bool hiRes);
74  void createOccupancy( DQMStore::IBooker & iBooker,
75  DQMStore::IGetter & iGetter);
76  bool readConfiguration( int & tkmap_freq,
77  int & sum_barrel_freq,
78  int & sum_endcap_freq,
79  int & sum_grandbarrel_freq,
80  int & sum_grandendcap_freq,
81  int & message_limit,
82  int & source_type,
83  int & calib_type);
84  bool readConfiguration( int & tkmap_freq,
85  int & summary_freq);
86  void readConfiguration( );
87 
88 
89 private:
90 
91 
93  DQMStore::IGetter & iGetter,
94  std::string me_name,
95  bool isUpgrade);
97  DQMStore::IGetter & iGetter,
98  std::string me_name);
99  void GetBladeSubdirs( DQMStore::IBooker & iBooker,
100  DQMStore::IGetter & iGetter,
101  std::vector<std::string>& blade_subdirs);
102  void fillSummary( DQMStore::IBooker & iBooker,
103  DQMStore::IGetter & iGetter,
105  std::vector<std::string> & me_names,
106  bool isbarrel,
107  bool isUpgrade);
108  void fillDeviations( DQMStore::IGetter & iGetter);
109  void fillFEDErrorSummary( DQMStore::IBooker & iBooker,
110  DQMStore::IGetter & iGetter,
111  std::string dir_name,
112  std::vector<std::string> & me_names);
114  DQMStore::IGetter & iGetter,
115  std::vector<std::string> & me_names,
116  bool isUpgrade);
118  DQMStore::IGetter & iGetter,
119  std::vector<std::string> & me_names,
120  bool isUpgrade);
121  void getGrandSummaryME( DQMStore::IBooker & iBooker,
122  DQMStore::IGetter & iGetter,
123  int nbin,
124  std::string & me_name,
125  std::vector<MonitorElement*> & mes);
126 
127  void fillOccupancy( DQMStore::IBooker & iBooker,
128  DQMStore::IGetter & iGetter,
129  bool isbarrel);
130 
134 
135  std::vector<std::string> summaryMENames;
136  std::vector<std::string> tkMapMENames;
137 
141  int ndet_;
144 
167 
168  TH2F * temp_H;
169  TH2F * temp_1x2;
170  TH2F * temp_1x5;
171  TH2F * temp_2x3;
172  TH2F * temp_2x4;
173  TH2F * temp_2x5;
174 
175 };
176 #endif
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
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)
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
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