test
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  int getLadder( const std::string & dname);
88  int getBlade( const std::string & dname);
89 
90 private:
91 
92 
94  DQMStore::IGetter & iGetter,
95  std::string me_name,
96  bool isUpgrade);
98  DQMStore::IGetter & iGetter,
99  std::string me_name);
100  void GetBladeSubdirs( DQMStore::IBooker & iBooker,
101  DQMStore::IGetter & iGetter,
102  std::vector<std::string>& blade_subdirs);
103  void fillSummary( DQMStore::IBooker & iBooker,
104  DQMStore::IGetter & iGetter,
106  std::vector<std::string> & me_names,
107  bool isbarrel,
108  bool isUpgrade);
109  void fillDeviations( DQMStore::IGetter & iGetter);
110  void fillFEDErrorSummary( DQMStore::IBooker & iBooker,
111  DQMStore::IGetter & iGetter,
112  std::string dir_name,
113  std::vector<std::string> & me_names);
115  DQMStore::IGetter & iGetter,
116  std::vector<std::string> & me_names,
117  bool isUpgrade);
119  DQMStore::IGetter & iGetter,
120  std::vector<std::string> & me_names,
121  bool isUpgrade);
122  void getGrandSummaryME( DQMStore::IBooker & iBooker,
123  DQMStore::IGetter & iGetter,
124  int nbin,
125  std::string & me_name,
126  std::vector<MonitorElement*> & mes);
127 
128  void fillOccupancy( DQMStore::IBooker & iBooker,
129  DQMStore::IGetter & iGetter,
130  bool isbarrel);
131 
135 
136  std::vector<std::string> summaryMENames;
137  std::vector<std::string> tkMapMENames;
138 
142  int ndet_;
145 
168 
169  TH2F * temp_H;
170  TH2F * temp_1x2;
171  TH2F * temp_1x5;
172  TH2F * temp_2x3;
173  TH2F * temp_2x4;
174  TH2F * temp_2x5;
175 
176 };
177 #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
int getBlade(const std::string &dname)
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
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