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 
17 
20 
22 
23 
24 #include<string>
25 //#include<vector>
26 #include<map>
27 #include<fstream>
28 
29 class RPCDetId;
30 /* class TFile; */
31 /* class TH1F; */
32 /* class TFile; */
33 /* class TCanvas; */
34 /* class TH2F; */
35 /* class TString; */
36 /* class TGaxis; */
37 
38 
40  public:
41  explicit RPCEfficiencySecond(const edm::ParameterSet&);
43  int rollY(std::string shortname,std::vector<std::string> rollNames);
44 
45  /* TFile * theFile; */
46 /* TFile * theFileout; */
47 
48  /* MonitorElement * statistics; */
49 /* MonitorElement * statistics2; */
50 
51 /* MonitorElement * hGlobalResClu1La1; */
52 /* MonitorElement * hGlobalResClu1La2; */
53 /* MonitorElement * hGlobalResClu1La3; */
54 /* MonitorElement * hGlobalResClu1La4; */
55 /* MonitorElement * hGlobalResClu1La5; */
56 /* MonitorElement * hGlobalResClu1La6; */
57 
58 /* MonitorElement * hGlobalResClu2La1; */
59 /* MonitorElement * hGlobalResClu2La2; */
60 /* MonitorElement * hGlobalResClu2La3; */
61 /* MonitorElement * hGlobalResClu2La4; */
62 /* MonitorElement * hGlobalResClu2La5; */
63 /* MonitorElement * hGlobalResClu2La6; */
64 
65 /* MonitorElement * hGlobalResClu3La1; */
66 /* MonitorElement * hGlobalResClu3La2; */
67 /* MonitorElement * hGlobalResClu3La3; */
68 /* MonitorElement * hGlobalResClu3La4; */
69 /* MonitorElement * hGlobalResClu3La5; */
70 /* MonitorElement * hGlobalResClu3La6; */
71 
72 /* //Endcap */
73 /* MonitorElement * hGlobalResClu1R3C; */
74 /* MonitorElement * hGlobalResClu1R3B; */
75 /* MonitorElement * hGlobalResClu1R3A; */
76 /* MonitorElement * hGlobalResClu1R2C; */
77 /* MonitorElement * hGlobalResClu1R2B; */
78 /* MonitorElement * hGlobalResClu1R2A; */
79 
80 /* MonitorElement * hGlobalResClu2R3C; */
81 /* MonitorElement * hGlobalResClu2R3B; */
82 /* MonitorElement * hGlobalResClu2R3A; */
83 /* MonitorElement * hGlobalResClu2R2C; */
84 /* MonitorElement * hGlobalResClu2R2B; */
85 /* MonitorElement * hGlobalResClu2R2A; */
86 
87 /* MonitorElement * hGlobalResClu3R3C; */
88 /* MonitorElement * hGlobalResClu3R3B; */
89 /* MonitorElement * hGlobalResClu3R3A; */
90 /* MonitorElement * hGlobalResClu3R2C; */
91 /* MonitorElement * hGlobalResClu3R2B; */
92 /* MonitorElement * hGlobalResClu3R2A; */
93 
94 /* MonitorElement * hGlobal2ResClu1La1; */
95 /* MonitorElement * hGlobal2ResClu1La2; */
96 /* MonitorElement * hGlobal2ResClu1La3; */
97 /* MonitorElement * hGlobal2ResClu1La4; */
98 /* MonitorElement * hGlobal2ResClu1La5; */
99 /* MonitorElement * hGlobal2ResClu1La6; */
100 
101 /* //SecondHistograms */
102 
103 /* MonitorElement * hGlobal2ResClu2La1; */
104 /* MonitorElement * hGlobal2ResClu2La2; */
105 /* MonitorElement * hGlobal2ResClu2La3; */
106 /* MonitorElement * hGlobal2ResClu2La4; */
107 /* MonitorElement * hGlobal2ResClu2La5; */
108 /* MonitorElement * hGlobal2ResClu2La6; */
109 
110 /* MonitorElement * hGlobal2ResClu3La1; */
111 /* MonitorElement * hGlobal2ResClu3La2; */
112 /* MonitorElement * hGlobal2ResClu3La3; */
113 /* MonitorElement * hGlobal2ResClu3La4; */
114 /* MonitorElement * hGlobal2ResClu3La5; */
115 /* MonitorElement * hGlobal2ResClu3La6; */
116 
117 /* //Endcap */
118 /* MonitorElement * hGlobal2ResClu1R3C; */
119 /* MonitorElement * hGlobal2ResClu1R3B; */
120 /* MonitorElement * hGlobal2ResClu1R3A; */
121 /* MonitorElement * hGlobal2ResClu1R2C; */
122 /* MonitorElement * hGlobal2ResClu1R2B; */
123 /* MonitorElement * hGlobal2ResClu1R2A; */
124 
125 /* MonitorElement * hGlobal2ResClu2R3C; */
126 /* MonitorElement * hGlobal2ResClu2R3B; */
127 /* MonitorElement * hGlobal2ResClu2R3A; */
128 /* MonitorElement * hGlobal2ResClu2R2C; */
129 /* MonitorElement * hGlobal2ResClu2R2B; */
130 /* MonitorElement * hGlobal2ResClu2R2A; */
131 
132 /* MonitorElement * hGlobal2ResClu3R3C; */
133 /* MonitorElement * hGlobal2ResClu3R3B; */
134 /* MonitorElement * hGlobal2ResClu3R3A; */
135 /* MonitorElement * hGlobal2ResClu3R2C; */
136 /* MonitorElement * hGlobal2ResClu3R2B; */
137 /* MonitorElement * hGlobal2ResClu3R2A; */
138 
139  //Histograms to use
144  // MonitorElement * BXDistribution;
145 
149 
150  //For Duplication
155  // MonitorElement * BXDistribution2;
156 
157 
158  //Eff Global Barrel
164 
165  //MonitorElement * EffGlobWm2far;
166  //MonitorElement * EffGlobWm1far;
167  //MonitorElement * EffGlobW0far;
168  //MonitorElement * EffGlobW1far;
169  //MonitorElement * EffGlobW2far;
170 
171  /* //BX Barrel */
172 /* MonitorElement * BXGlobWm2; */
173 /* MonitorElement * BXGlobWm1; */
174 /* MonitorElement * BXGlobW0; */
175 /* MonitorElement * BXGlobW1; */
176 /* MonitorElement * BXGlobW2; */
177 
178 /* MonitorElement * BXGlobWm2far; */
179 /* MonitorElement * BXGlobWm1far; */
180 /* MonitorElement * BXGlobW0far; */
181 /* MonitorElement * BXGlobW1far; */
182 /* MonitorElement * BXGlobW2far; */
183 
184  //Masked Barrel
185  //MonitorElement * MaskedGlobWm2;
186  //MonitorElement * MaskedGlobWm1;
187  //MonitorElement * MaskedGlobW0;
188  //MonitorElement * MaskedGlobW1;
189  //MonitorElement * MaskedGlobW2;
190 
191  //MonitorElement * MaskedGlobWm2far;
192  //MonitorElement * MaskedGlobWm1far;
193  //MonitorElement * MaskedGlobW0far;
194  //MonitorElement * MaskedGlobW1far;
195  //MonitorElement * MaskedGlobW2far;
196 
197  //Average Eff Barrel
198  //MonitorElement * AverageEffWm2;
199  //MonitorElement * AverageEffWm1;
200  //MonitorElement * AverageEffW0;
201  //MonitorElement * AverageEffW1;
202  //MonitorElement * AverageEffW2;
203 
204  //MonitorElement * AverageEffWm2far;
205  //MonitorElement * AverageEffWm1far;
206  //MonitorElement * AverageEffW0far;
207  //MonitorElement * AverageEffW1far;
208  //MonitorElement * AverageEffW2far;
209 
210  //No Prediction Barrel
211  //MonitorElement * NoPredictionWm2;
212  //MonitorElement * NoPredictionWm1;
213  //MonitorElement * NoPredictionW0;
214  //MonitorElement * NoPredictionW1;
215  //MonitorElement * NoPredictionW2;
216 
217  //MonitorElement * NoPredictionWm2far;
218  //MonitorElement * NoPredictionWm1far;
219  //MonitorElement * NoPredictionW0far;
220  //MonitorElement * NoPredictionW1far;
221  //MonitorElement * NoPredictionW2far;
222 
223  //Eff Distro Barrel
229 
230  //MonitorElement * EffDistroWm2far;
231  //MonitorElement * EffDistroWm1far;
232  //MonitorElement * EffDistroW0far;
233  //MonitorElement * EffDistroW1far;
234  //MonitorElement * EffDistroW2far;
235 
236 
237  //Eff Global EndCap
238 
245 
246  //MonitorElement * EffGlobDm3far;
247  //MonitorElement * EffGlobDm2far;
248  //MonitorElement * EffGlobDm1far;
249  //MonitorElement * EffGlobD1far;
250  //MonitorElement * EffGlobD2far;
251  //MonitorElement * EffGlobD3far;
252 
253  //BX EndCap
254 /* MonitorElement * BXGlobDm3; */
255 /* MonitorElement * BXGlobDm2; */
256 /* MonitorElement * BXGlobDm1; */
257 /* MonitorElement * BXGlobD1; */
258 /* MonitorElement * BXGlobD2; */
259 /* MonitorElement * BXGlobD3; */
260 
261 /* MonitorElement * BXGlobDm3far; */
262 /* MonitorElement * BXGlobDm2far; */
263 /* MonitorElement * BXGlobDm1far; */
264 /* MonitorElement * BXGlobD1far; */
265 /* MonitorElement * BXGlobD2far; */
266 /* MonitorElement * BXGlobD3far; */
267 
268  //Masked EndCap
269  //MonitorElement * MaskedGlobDm3;
270  //MonitorElement * MaskedGlobDm2;
271  //MonitorElement * MaskedGlobDm1;
272  //MonitorElement * MaskedGlobD1;
273  //MonitorElement * MaskedGlobD2;
274  //MonitorElement * MaskedGlobD3;
275 
276  //MonitorElement * MaskedGlobDm3far;
277  //MonitorElement * MaskedGlobDm2far;
278  //MonitorElement * MaskedGlobDm1far;
279  //MonitorElement * MaskedGlobD1far;
280  //MonitorElement * MaskedGlobD2far;
281  //MonitorElement * MaskedGlobD3far;
282 
283  //Average Eff EndCap
284  //MonitorElement * AverageEffDm3;
285  //MonitorElement * AverageEffDm2;
286  //MonitorElement * AverageEffDm1;
287  //MonitorElement * AverageEffD1;
288  //MonitorElement * AverageEffD2;
289  //MonitorElement * AverageEffD3;
290 
291  //MonitorElement * AverageEffDm3far;
292  //MonitorElement * AverageEffDm2far;
293  //MonitorElement * AverageEffDm1far;
294  //MonitorElement * AverageEffD1far;
295  //MonitorElement * AverageEffD2far;
296  //MonitorElement * AverageEffD3far;
297 
298  //No Prediction EndCap
299  //MonitorElement * NoPredictionDm3;
300  //MonitorElement * NoPredictionDm2;
301  //MonitorElement * NoPredictionDm1;
302  //MonitorElement * NoPredictionD1;
303  //MonitorElement * NoPredictionD2;
304  //MonitorElement * NoPredictionD3;
305 
306  //MonitorElement * NoPredictionDm3far;
307  //MonitorElement * NoPredictionDm2far;
308  //MonitorElement * NoPredictionDm1far;
309  //MonitorElement * NoPredictionD1far;
310  //MonitorElement * NoPredictionD2far;
311  //MonitorElement * NoPredictionD3far;
312 
313  //EffDistro EndCap
320 
321  //MonitorElement * EffDistroDm3far;
322  //MonitorElement * EffDistroDm2far;
323  //MonitorElement * EffDistroDm1far;
324  //MonitorElement * EffDistroD1far;
325  //MonitorElement * EffDistroD2far;
326  //MonitorElement * EffDistroD3far;
327 
328  //Summary Histograms.
334 
341 
342  //Azimultal Plots
343 
349 
355 
361 
374 
387 
400 
406 
412 
413 
414 
415  private:
416  virtual void beginRun(const edm::Run&, const edm::EventSetup& iSetup) ;
417  virtual void analyze(const edm::Event&, const edm::EventSetup&);
418  virtual void endJob() ;
419  virtual void endRun(const edm::Run& , const edm::EventSetup& );
420 
421  std::map<std::string, MonitorElement*> bookDetUnitSeg(RPCDetId & detId,int nstrips,std::string folder);
422  std::map<int, std::map<std::string, MonitorElement*> > meCollection;
423 
424  bool debug;
425  bool endcap;
426  bool barrel;
427  bool SaveFile;
428  std::string NameFile;
429  std::string folderPath;
430 
432 
433 };
434 
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
int rollY(std::string shortname, std::vector< std::string > rollNames)
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
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:33
MonitorElement * ExGregDm3R2
MonitorElement * OcGregDm3R2