CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RPCEfficiencySecond.h
Go to the documentation of this file.
1 
15 
18 
20 
21 
22 #include<string>
23 //#include<vector>
24 #include<map>
25 #include<fstream>
26 
27 class RPCDetId;
28 /* class TFile; */
29 /* class TH1F; */
30 /* class TFile; */
31 /* class TCanvas; */
32 /* class TH2F; */
33 /* class TString; */
34 /* class TGaxis; */
35 
36 
38  public:
39  explicit RPCEfficiencySecond(const edm::ParameterSet&);
41  int rollY(std::string shortname,const std::vector<std::string>& rollNames);
42 
43  /* TFile * theFile; */
44 /* TFile * theFileout; */
45 
46  /* MonitorElement * statistics; */
47 /* MonitorElement * statistics2; */
48 
49 /* MonitorElement * hGlobalResClu1La1; */
50 /* MonitorElement * hGlobalResClu1La2; */
51 /* MonitorElement * hGlobalResClu1La3; */
52 /* MonitorElement * hGlobalResClu1La4; */
53 /* MonitorElement * hGlobalResClu1La5; */
54 /* MonitorElement * hGlobalResClu1La6; */
55 
56 /* MonitorElement * hGlobalResClu2La1; */
57 /* MonitorElement * hGlobalResClu2La2; */
58 /* MonitorElement * hGlobalResClu2La3; */
59 /* MonitorElement * hGlobalResClu2La4; */
60 /* MonitorElement * hGlobalResClu2La5; */
61 /* MonitorElement * hGlobalResClu2La6; */
62 
63 /* MonitorElement * hGlobalResClu3La1; */
64 /* MonitorElement * hGlobalResClu3La2; */
65 /* MonitorElement * hGlobalResClu3La3; */
66 /* MonitorElement * hGlobalResClu3La4; */
67 /* MonitorElement * hGlobalResClu3La5; */
68 /* MonitorElement * hGlobalResClu3La6; */
69 
70 /* //Endcap */
71 /* MonitorElement * hGlobalResClu1R3C; */
72 /* MonitorElement * hGlobalResClu1R3B; */
73 /* MonitorElement * hGlobalResClu1R3A; */
74 /* MonitorElement * hGlobalResClu1R2C; */
75 /* MonitorElement * hGlobalResClu1R2B; */
76 /* MonitorElement * hGlobalResClu1R2A; */
77 
78 /* MonitorElement * hGlobalResClu2R3C; */
79 /* MonitorElement * hGlobalResClu2R3B; */
80 /* MonitorElement * hGlobalResClu2R3A; */
81 /* MonitorElement * hGlobalResClu2R2C; */
82 /* MonitorElement * hGlobalResClu2R2B; */
83 /* MonitorElement * hGlobalResClu2R2A; */
84 
85 /* MonitorElement * hGlobalResClu3R3C; */
86 /* MonitorElement * hGlobalResClu3R3B; */
87 /* MonitorElement * hGlobalResClu3R3A; */
88 /* MonitorElement * hGlobalResClu3R2C; */
89 /* MonitorElement * hGlobalResClu3R2B; */
90 /* MonitorElement * hGlobalResClu3R2A; */
91 
92 /* MonitorElement * hGlobal2ResClu1La1; */
93 /* MonitorElement * hGlobal2ResClu1La2; */
94 /* MonitorElement * hGlobal2ResClu1La3; */
95 /* MonitorElement * hGlobal2ResClu1La4; */
96 /* MonitorElement * hGlobal2ResClu1La5; */
97 /* MonitorElement * hGlobal2ResClu1La6; */
98 
99 /* //SecondHistograms */
100 
101 /* MonitorElement * hGlobal2ResClu2La1; */
102 /* MonitorElement * hGlobal2ResClu2La2; */
103 /* MonitorElement * hGlobal2ResClu2La3; */
104 /* MonitorElement * hGlobal2ResClu2La4; */
105 /* MonitorElement * hGlobal2ResClu2La5; */
106 /* MonitorElement * hGlobal2ResClu2La6; */
107 
108 /* MonitorElement * hGlobal2ResClu3La1; */
109 /* MonitorElement * hGlobal2ResClu3La2; */
110 /* MonitorElement * hGlobal2ResClu3La3; */
111 /* MonitorElement * hGlobal2ResClu3La4; */
112 /* MonitorElement * hGlobal2ResClu3La5; */
113 /* MonitorElement * hGlobal2ResClu3La6; */
114 
115 /* //Endcap */
116 /* MonitorElement * hGlobal2ResClu1R3C; */
117 /* MonitorElement * hGlobal2ResClu1R3B; */
118 /* MonitorElement * hGlobal2ResClu1R3A; */
119 /* MonitorElement * hGlobal2ResClu1R2C; */
120 /* MonitorElement * hGlobal2ResClu1R2B; */
121 /* MonitorElement * hGlobal2ResClu1R2A; */
122 
123 /* MonitorElement * hGlobal2ResClu2R3C; */
124 /* MonitorElement * hGlobal2ResClu2R3B; */
125 /* MonitorElement * hGlobal2ResClu2R3A; */
126 /* MonitorElement * hGlobal2ResClu2R2C; */
127 /* MonitorElement * hGlobal2ResClu2R2B; */
128 /* MonitorElement * hGlobal2ResClu2R2A; */
129 
130 /* MonitorElement * hGlobal2ResClu3R3C; */
131 /* MonitorElement * hGlobal2ResClu3R3B; */
132 /* MonitorElement * hGlobal2ResClu3R3A; */
133 /* MonitorElement * hGlobal2ResClu3R2C; */
134 /* MonitorElement * hGlobal2ResClu3R2B; */
135 /* MonitorElement * hGlobal2ResClu3R2A; */
136 
137  //Histograms to use
142  // MonitorElement * BXDistribution;
143 
147 
148  //For Duplication
153  // MonitorElement * BXDistribution2;
154 
155 
156  //Eff Global Barrel
162 
163  //MonitorElement * EffGlobWm2far;
164  //MonitorElement * EffGlobWm1far;
165  //MonitorElement * EffGlobW0far;
166  //MonitorElement * EffGlobW1far;
167  //MonitorElement * EffGlobW2far;
168 
169  /* //BX Barrel */
170 /* MonitorElement * BXGlobWm2; */
171 /* MonitorElement * BXGlobWm1; */
172 /* MonitorElement * BXGlobW0; */
173 /* MonitorElement * BXGlobW1; */
174 /* MonitorElement * BXGlobW2; */
175 
176 /* MonitorElement * BXGlobWm2far; */
177 /* MonitorElement * BXGlobWm1far; */
178 /* MonitorElement * BXGlobW0far; */
179 /* MonitorElement * BXGlobW1far; */
180 /* MonitorElement * BXGlobW2far; */
181 
182  //Masked Barrel
183  //MonitorElement * MaskedGlobWm2;
184  //MonitorElement * MaskedGlobWm1;
185  //MonitorElement * MaskedGlobW0;
186  //MonitorElement * MaskedGlobW1;
187  //MonitorElement * MaskedGlobW2;
188 
189  //MonitorElement * MaskedGlobWm2far;
190  //MonitorElement * MaskedGlobWm1far;
191  //MonitorElement * MaskedGlobW0far;
192  //MonitorElement * MaskedGlobW1far;
193  //MonitorElement * MaskedGlobW2far;
194 
195  //Average Eff Barrel
196  //MonitorElement * AverageEffWm2;
197  //MonitorElement * AverageEffWm1;
198  //MonitorElement * AverageEffW0;
199  //MonitorElement * AverageEffW1;
200  //MonitorElement * AverageEffW2;
201 
202  //MonitorElement * AverageEffWm2far;
203  //MonitorElement * AverageEffWm1far;
204  //MonitorElement * AverageEffW0far;
205  //MonitorElement * AverageEffW1far;
206  //MonitorElement * AverageEffW2far;
207 
208  //No Prediction Barrel
209  //MonitorElement * NoPredictionWm2;
210  //MonitorElement * NoPredictionWm1;
211  //MonitorElement * NoPredictionW0;
212  //MonitorElement * NoPredictionW1;
213  //MonitorElement * NoPredictionW2;
214 
215  //MonitorElement * NoPredictionWm2far;
216  //MonitorElement * NoPredictionWm1far;
217  //MonitorElement * NoPredictionW0far;
218  //MonitorElement * NoPredictionW1far;
219  //MonitorElement * NoPredictionW2far;
220 
221  //Eff Distro Barrel
227 
228  //MonitorElement * EffDistroWm2far;
229  //MonitorElement * EffDistroWm1far;
230  //MonitorElement * EffDistroW0far;
231  //MonitorElement * EffDistroW1far;
232  //MonitorElement * EffDistroW2far;
233 
234 
235  //Eff Global EndCap
236 
243 
244  //MonitorElement * EffGlobDm3far;
245  //MonitorElement * EffGlobDm2far;
246  //MonitorElement * EffGlobDm1far;
247  //MonitorElement * EffGlobD1far;
248  //MonitorElement * EffGlobD2far;
249  //MonitorElement * EffGlobD3far;
250 
251  //BX EndCap
252 /* MonitorElement * BXGlobDm3; */
253 /* MonitorElement * BXGlobDm2; */
254 /* MonitorElement * BXGlobDm1; */
255 /* MonitorElement * BXGlobD1; */
256 /* MonitorElement * BXGlobD2; */
257 /* MonitorElement * BXGlobD3; */
258 
259 /* MonitorElement * BXGlobDm3far; */
260 /* MonitorElement * BXGlobDm2far; */
261 /* MonitorElement * BXGlobDm1far; */
262 /* MonitorElement * BXGlobD1far; */
263 /* MonitorElement * BXGlobD2far; */
264 /* MonitorElement * BXGlobD3far; */
265 
266  //Masked EndCap
267  //MonitorElement * MaskedGlobDm3;
268  //MonitorElement * MaskedGlobDm2;
269  //MonitorElement * MaskedGlobDm1;
270  //MonitorElement * MaskedGlobD1;
271  //MonitorElement * MaskedGlobD2;
272  //MonitorElement * MaskedGlobD3;
273 
274  //MonitorElement * MaskedGlobDm3far;
275  //MonitorElement * MaskedGlobDm2far;
276  //MonitorElement * MaskedGlobDm1far;
277  //MonitorElement * MaskedGlobD1far;
278  //MonitorElement * MaskedGlobD2far;
279  //MonitorElement * MaskedGlobD3far;
280 
281  //Average Eff EndCap
282  //MonitorElement * AverageEffDm3;
283  //MonitorElement * AverageEffDm2;
284  //MonitorElement * AverageEffDm1;
285  //MonitorElement * AverageEffD1;
286  //MonitorElement * AverageEffD2;
287  //MonitorElement * AverageEffD3;
288 
289  //MonitorElement * AverageEffDm3far;
290  //MonitorElement * AverageEffDm2far;
291  //MonitorElement * AverageEffDm1far;
292  //MonitorElement * AverageEffD1far;
293  //MonitorElement * AverageEffD2far;
294  //MonitorElement * AverageEffD3far;
295 
296  //No Prediction EndCap
297  //MonitorElement * NoPredictionDm3;
298  //MonitorElement * NoPredictionDm2;
299  //MonitorElement * NoPredictionDm1;
300  //MonitorElement * NoPredictionD1;
301  //MonitorElement * NoPredictionD2;
302  //MonitorElement * NoPredictionD3;
303 
304  //MonitorElement * NoPredictionDm3far;
305  //MonitorElement * NoPredictionDm2far;
306  //MonitorElement * NoPredictionDm1far;
307  //MonitorElement * NoPredictionD1far;
308  //MonitorElement * NoPredictionD2far;
309  //MonitorElement * NoPredictionD3far;
310 
311  //EffDistro EndCap
318 
319  //MonitorElement * EffDistroDm3far;
320  //MonitorElement * EffDistroDm2far;
321  //MonitorElement * EffDistroDm1far;
322  //MonitorElement * EffDistroD1far;
323  //MonitorElement * EffDistroD2far;
324  //MonitorElement * EffDistroD3far;
325 
326  //Summary Histograms.
332 
339 
340  //Azimultal Plots
341 
347 
353 
359 
372 
385 
398 
404 
410 
411 
412 
413  private:
414  virtual void beginRun(const edm::Run&, const edm::EventSetup& iSetup) ;
415  virtual void analyze(const edm::Event&, const edm::EventSetup&);
416  virtual void endJob() ;
417  virtual void endRun(const edm::Run& , const edm::EventSetup& );
418 
419  std::map<std::string, MonitorElement*> bookDetUnitSeg(RPCDetId & detId,int nstrips,std::string folder);
420  std::map<int, std::map<std::string, MonitorElement*> > meCollection;
421 
422  bool debug;
423  bool endcap;
424  bool barrel;
425  bool SaveFile;
428 
430 
431 };
432 
MonitorElement * EffGlobD1
MonitorElement * ExpLayerW1
MonitorElement * ExpLayerWm1
MonitorElement * OcGregDm2R3
MonitorElement * GregD3R2
MonitorElement * GregDm1R3
MonitorElement * ExGregD1R3
MonitorElement * ExGregDm3R3
virtual void analyze(const edm::Event &, const edm::EventSetup &)
MonitorElement * ExGregDm2R3
MonitorElement * OcGregD3R2
MonitorElement * OcGregD1R3
MonitorElement * ExGregD3R2
MonitorElement * histoCSC2
RPCEfficiencySecond(const edm::ParameterSet &)
MonitorElement * histoCSC
MonitorElement * EffDistroD2
MonitorElement * GregD2R3
MonitorElement * EffDistroD1
MonitorElement * Diskm2Summary
MonitorElement * sectorEffWm2
MonitorElement * OcGregDm3R3
MonitorElement * ExGregDm1R2
MonitorElement * OcGregD2R2
MonitorElement * histoDT
MonitorElement * EffDistroWm2
MonitorElement * histoeffIdRPC_DT
MonitorElement * Disk3Summary
MonitorElement * GregDm3R3
MonitorElement * ExsectorEffW2
MonitorElement * GregDm2R2
MonitorElement * EffGlobW1
MonitorElement * GregD3R3
MonitorElement * EffGlobD2
MonitorElement * histoPRO
MonitorElement * OcsectorEffWm2
MonitorElement * ExsectorEffW1
MonitorElement * EffDistroDm1
MonitorElement * EffGlobW0
MonitorElement * ObsLayerWm1
MonitorElement * ExpLayerWm2
MonitorElement * ExGregDm2R2
MonitorElement * histoRealRPC2
MonitorElement * EffDistroDm3
MonitorElement * ExsectorEffWm2
MonitorElement * EffDistroWm1
virtual void endRun(const edm::Run &, const edm::EventSetup &)
MonitorElement * Diskm3Summary
MonitorElement * Wheelm1Summary
MonitorElement * ObsLayerW0
MonitorElement * EffGlobW2
MonitorElement * OcGregD3R3
MonitorElement * EffDistroD3
MonitorElement * Wheel1Summary
MonitorElement * sectorEffW2
MonitorElement * EffGlobDm2
MonitorElement * histoDT2
MonitorElement * OcGregD1R2
MonitorElement * histoeffIdRPC_CSC
MonitorElement * OcsectorEffW0
MonitorElement * GregDm1R2
MonitorElement * Disk1Summary
MonitorElement * GregD1R3
std::map< int, std::map< std::string, MonitorElement * > > meCollection
MonitorElement * EffDistroW2
MonitorElement * sectorEffW1
MonitorElement * ObsLayerWm2
MonitorElement * GregDm2R3
MonitorElement * OcGregDm1R3
MonitorElement * histoRealRPC
MonitorElement * ExsectorEffW0
MonitorElement * ObsLayerW1
MonitorElement * EffGlobD3
MonitorElement * OcGregDm1R2
MonitorElement * EffDistroW1
MonitorElement * Diskm1Summary
int rollY(std::string shortname, const std::vector< std::string > &rollNames)
MonitorElement * GregD1R2
MonitorElement * OcGregD2R3
MonitorElement * GregDm3R2
MonitorElement * histoRPC2
MonitorElement * ExGregD2R2
MonitorElement * Wheel2Summary
MonitorElement * Disk2Summary
MonitorElement * ExpLayerW0
MonitorElement * EffGlobWm1
std::map< std::string, MonitorElement * > bookDetUnitSeg(RPCDetId &detId, int nstrips, std::string folder)
MonitorElement * GregD2R2
virtual void beginRun(const edm::Run &, const edm::EventSetup &iSetup)
MonitorElement * EffGlobWm2
MonitorElement * EffDistroDm2
MonitorElement * ExGregDm1R3
MonitorElement * EffDistroW0
MonitorElement * Wheel0Summary
MonitorElement * OcsectorEffW2
MonitorElement * EffGlobDm3
MonitorElement * ExsectorEffWm1
MonitorElement * ExpLayerW2
MonitorElement * OcsectorEffW1
MonitorElement * Wheelm2Summary
MonitorElement * sectorEffW0
MonitorElement * ExGregD1R2
MonitorElement * ExGregD3R3
MonitorElement * OcsectorEffWm1
MonitorElement * ExGregD2R3
MonitorElement * OcGregDm2R2
MonitorElement * EffGlobDm1
MonitorElement * ObsLayerW2
MonitorElement * histoRPC
MonitorElement * sectorEffWm1
Definition: Run.h:41
MonitorElement * ExGregDm3R2
MonitorElement * OcGregDm3R2