CMS 3D CMS Logo

SiStripDigiValid.cc
Go to the documentation of this file.
23 
25  : dbe_(nullptr),
26  runStandalone(ps.getParameter<bool>("runStandalone")),
27  outputFile_(ps.getUntrackedParameter<std::string>("outputFile", "stripdigihisto.root")),
28  edmDetSetVector_SiStripDigi_Token_(
29  consumes<edm::DetSetVector<SiStripDigi>>(ps.getParameter<edm::InputTag>("src"))) {}
30 
32 
35 
36  if (dbe_) {
37  ibooker.setCurrentFolder("TrackerDigisV/TrackerDigis/Strip");
38 
39  for (int i = 0; i < 3; i++) {
40  Char_t histo[200];
41  // Z Plus Side
42  sprintf(histo, "adc_tib_layer1_extmodule%d_zp", i + 1);
43  meAdcTIBLayer1Extzp_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
44  sprintf(histo, "adc_tib_layer1_intmodule%d_zp", i + 1);
45  meAdcTIBLayer1Intzp_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
46  sprintf(histo, "adc_tib_layer2_extmodule%d_zp", i + 1);
47  meAdcTIBLayer2Extzp_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
48  sprintf(histo, "adc_tib_layer2_intmodule%d_zp", i + 1);
49  meAdcTIBLayer2Intzp_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
50  sprintf(histo, "adc_tib_layer3_extmodule%d_zp", i + 1);
51  meAdcTIBLayer3Extzp_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
52  sprintf(histo, "adc_tib_layer3_intmodule%d_zp", i + 1);
53  meAdcTIBLayer3Intzp_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
54  sprintf(histo, "adc_tib_layer4_extmodule%d_zp", i + 1);
55  meAdcTIBLayer4Extzp_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
56  sprintf(histo, "adc_tib_layer4_intmodule%d_zp", i + 1);
57  meAdcTIBLayer4Intzp_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
58  sprintf(histo, "strip_tib_layer1_extmodule%d_zp", i + 1);
59  meStripTIBLayer1Extzp_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
60  sprintf(histo, "strip_tib_layer1_intmodule%d_zp", i + 1);
61  meStripTIBLayer1Intzp_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
62  sprintf(histo, "strip_tib_layer2_extmodule%d_zp", i + 1);
63  meStripTIBLayer2Extzp_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
64  sprintf(histo, "strip_tib_layer2_intmodule%d_zp", i + 1);
65  meStripTIBLayer2Intzp_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
66  sprintf(histo, "strip_tib_layer3_extmodule%d_zp", i + 1);
67  meStripTIBLayer3Extzp_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
68  sprintf(histo, "strip_tib_layer3_intmodule%d_zp", i + 1);
69  meStripTIBLayer3Intzp_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
70  sprintf(histo, "strip_tib_layer4_extmodule%d_zp", i + 1);
71  meStripTIBLayer4Extzp_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
72  sprintf(histo, "strip_tib_layer4_intmodule%d_zp", i + 1);
73  meStripTIBLayer4Intzp_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
74  // Z Minus Side
75  sprintf(histo, "adc_tib_layer1_extmodule%d_zm", i + 1);
76  meAdcTIBLayer1Extzm_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
77  sprintf(histo, "adc_tib_layer1_intmodule%d_zm", i + 1);
78  meAdcTIBLayer1Intzm_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
79  sprintf(histo, "adc_tib_layer2_extmodule%d_zm", i + 1);
80  meAdcTIBLayer2Extzm_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
81  sprintf(histo, "adc_tib_layer2_intmodule%d_zm", i + 1);
82  meAdcTIBLayer2Intzm_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
83  sprintf(histo, "adc_tib_layer3_extmodule%d_zm", i + 1);
84  meAdcTIBLayer3Extzm_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
85  sprintf(histo, "adc_tib_layer3_intmodule%d_zm", i + 1);
86  meAdcTIBLayer3Intzm_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
87  sprintf(histo, "adc_tib_layer4_extmodule%d_zm", i + 1);
88  meAdcTIBLayer4Extzm_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
89  sprintf(histo, "adc_tib_layer4_intmodule%d_zm", i + 1);
90  meAdcTIBLayer4Intzm_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
91  sprintf(histo, "strip_tib_layer1_extmodule%d_zm", i + 1);
92  meStripTIBLayer1Extzm_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
93  sprintf(histo, "strip_tib_layer1_intmodule%d_zm", i + 1);
94  meStripTIBLayer1Intzm_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
95  sprintf(histo, "strip_tib_layer2_extmodule%d_zm", i + 1);
96  meStripTIBLayer2Extzm_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
97  sprintf(histo, "strip_tib_layer2_intmodule%d_zm", i + 1);
98  meStripTIBLayer2Intzm_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
99  sprintf(histo, "strip_tib_layer3_extmodule%d_zm", i + 1);
100  meStripTIBLayer3Extzm_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
101  sprintf(histo, "strip_tib_layer3_intmodule%d_zm", i + 1);
102  meStripTIBLayer3Intzm_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
103  sprintf(histo, "strip_tib_layer4_extmodule%d_zm", i + 1);
104  meStripTIBLayer4Extzm_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
105  sprintf(histo, "strip_tib_layer4_intmodule%d_zm", i + 1);
106  meStripTIBLayer4Intzm_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
107  }
108 
109  for (int i = 0; i < 6; i++) {
110  Char_t histo[200];
111  // Z Plus Side
112  sprintf(histo, "adc_tob_layer1_module%d_zp", i + 1);
113  meAdcTOBLayer1zp_[i] = ibooker.book1D(histo, "Digis ADC", 10, 0., 300.);
114  sprintf(histo, "strip_tob_layer1_module%d_zp", i + 1);
115  meStripTOBLayer1zp_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
116  sprintf(histo, "adc_tob_layer2_module%d_zp", i + 1);
117  meAdcTOBLayer2zp_[i] = ibooker.book1D(histo, "Digis ADC", 10, 0., 300.);
118  sprintf(histo, "strip_tob_layer2_module%d_zp", i + 1);
119  meStripTOBLayer2zp_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
120  sprintf(histo, "adc_tob_layer3_module%d_zp", i + 1);
121  meAdcTOBLayer3zp_[i] = ibooker.book1D(histo, "Digis ADC", 10, 0., 300.);
122  sprintf(histo, "strip_tob_layer3_module%d_zp", i + 1);
123  meStripTOBLayer3zp_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
124  sprintf(histo, "adc_tob_layer4_module%d_zp", i + 1);
125  meAdcTOBLayer4zp_[i] = ibooker.book1D(histo, "Digis ADC", 10, 0., 300.);
126  sprintf(histo, "strip_tob_layer4_module%d_zp", i + 1);
127  meStripTOBLayer4zp_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
128  sprintf(histo, "adc_tob_layer5_module%d_zp", i + 1);
129  meAdcTOBLayer5zp_[i] = ibooker.book1D(histo, "Digis ADC", 10, 0., 300.);
130  sprintf(histo, "strip_tob_layer5_module%d_zp", i + 1);
131  meStripTOBLayer5zp_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
132  sprintf(histo, "adc_tob_layer6_module%d_zp", i + 1);
133  meAdcTOBLayer6zp_[i] = ibooker.book1D(histo, "Digis ADC", 10, 0., 300.);
134  sprintf(histo, "strip_tob_layer6_module%d_zp", i + 1);
135  meStripTOBLayer6zp_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
136  // Z Minus Side
137  sprintf(histo, "adc_tob_layer1_module%d_zm", i + 1);
138  meAdcTOBLayer1zm_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
139  sprintf(histo, "strip_tob_layer1_module%d_zm", i + 1);
140  meStripTOBLayer1zm_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
141  sprintf(histo, "adc_tob_layer2_module%d_zm", i + 1);
142  meAdcTOBLayer2zm_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
143  sprintf(histo, "strip_tob_layer2_module%d_zm", i + 1);
144  meStripTOBLayer2zm_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
145  sprintf(histo, "adc_tob_layer3_module%d_zm", i + 1);
146  meAdcTOBLayer3zm_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
147  sprintf(histo, "strip_tob_layer3_module%d_zm", i + 1);
148  meStripTOBLayer3zm_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
149  sprintf(histo, "adc_tob_layer4_module%d_zm", i + 1);
150  meAdcTOBLayer4zm_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
151  sprintf(histo, "strip_tob_layer4_module%d_zm", i + 1);
152  meStripTOBLayer4zm_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
153  sprintf(histo, "adc_tob_layer5_module%d_zm", i + 1);
154  meAdcTOBLayer5zm_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
155  sprintf(histo, "strip_tob_layer5_module%d_zm", i + 1);
156  meStripTOBLayer5zm_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
157  sprintf(histo, "adc_tob_layer6_module%d_zm", i + 1);
158  meAdcTOBLayer6zm_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
159  sprintf(histo, "strip_tob_layer6_module%d_zm", i + 1);
160  meStripTOBLayer6zm_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
161  }
162 
163  for (int i = 0; i < 3; i++) {
164  Char_t histo[200];
165  // Z Plus Side
166  sprintf(histo, "adc_tid_wheel1_ring%d_zp", i + 1);
167  meAdcTIDWheel1zp_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
168  sprintf(histo, "adc_tid_wheel2_ring%d_zp", i + 1);
169  meAdcTIDWheel2zp_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
170  sprintf(histo, "adc_tid_wheel3_ring%d_zp", i + 1);
171  meAdcTIDWheel3zp_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
172  sprintf(histo, "strip_tid_wheel1_ring%d_zp", i + 1);
173  meStripTIDWheel1zp_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
174  sprintf(histo, "strip_tid_wheel2_ring%d_zp", i + 1);
175  meStripTIDWheel2zp_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
176  sprintf(histo, "strip_tid_wheel3_ring%d_zp", i + 1);
177  meStripTIDWheel3zp_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
178  // Z minus Side
179  sprintf(histo, "adc_tid_wheel1_ring%d_zm", i + 1);
180  meAdcTIDWheel1zm_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
181  sprintf(histo, "adc_tid_wheel2_ring%d_zm", i + 1);
182  meAdcTIDWheel2zm_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
183  sprintf(histo, "adc_tid_wheel3_ring%d_zm", i + 1);
184  meAdcTIDWheel3zm_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
185  sprintf(histo, "strip_tid_wheel1_ring%d_zm", i + 1);
186  meStripTIDWheel1zm_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
187  sprintf(histo, "strip_tid_wheel2_ring%d_zm", i + 1);
188  meStripTIDWheel2zm_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
189  sprintf(histo, "strip_tid_wheel3_ring%d_zm", i + 1);
190  meStripTIDWheel3zm_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
191  }
192 
193  for (int i = 0; i < 7; i++) {
194  Char_t histo[200];
195  // Z Plus Side
196  sprintf(histo, "adc_tec_wheel1_ring%d_zp", i + 1);
197  meAdcTECWheel1zp_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
198  sprintf(histo, "adc_tec_wheel2_ring%d_zp", i + 1);
199  meAdcTECWheel2zp_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
200  sprintf(histo, "adc_tec_wheel3_ring%d_zp", i + 1);
201  meAdcTECWheel3zp_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
202  sprintf(histo, "strip_tec_wheel1_ring%d_zp", i + 1);
203  meStripTECWheel1zp_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
204  sprintf(histo, "strip_tec_wheel2_ring%d_zp", i + 1);
205  meStripTECWheel2zp_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
206  sprintf(histo, "strip_tec_wheel3_ring%d_zp", i + 1);
207  meStripTECWheel3zp_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
208 
209  // Z Minus Side
210  sprintf(histo, "adc_tec_wheel1_ring%d_zm", i + 1);
211  meAdcTECWheel1zm_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
212  sprintf(histo, "adc_tec_wheel2_ring%d_zm", i + 1);
213  meAdcTECWheel2zm_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
214  sprintf(histo, "adc_tec_wheel3_ring%d_zm", i + 1);
215  meAdcTECWheel3zm_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
216  sprintf(histo, "strip_tec_wheel1_ring%d_zm", i + 1);
217  meStripTECWheel1zm_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
218  sprintf(histo, "strip_tec_wheel2_ring%d_zm", i + 1);
219  meStripTECWheel2zm_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
220  sprintf(histo, "strip_tec_wheel3_ring%d_zm", i + 1);
221  meStripTECWheel3zm_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
222  }
223 
224  for (int i = 0; i < 6; i++) {
225  Char_t histo[200];
226  // Z Plus Side
227  sprintf(histo, "adc_tec_wheel4_ring%d_zp", i + 1);
228  meAdcTECWheel4zp_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
229  sprintf(histo, "adc_tec_wheel5_ring%d_zp", i + 1);
230  meAdcTECWheel5zp_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
231  sprintf(histo, "adc_tec_wheel6_ring%d_zp", i + 1);
232  meAdcTECWheel6zp_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
233  sprintf(histo, "strip_tec_wheel4_ring%d_zp", i + 1);
234  meStripTECWheel4zp_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
235  sprintf(histo, "strip_tec_wheel5_ring%d_zp", i + 1);
236  meStripTECWheel5zp_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
237  sprintf(histo, "strip_tec_wheel6_ring%d_zp", i + 1);
238  meStripTECWheel6zp_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
239 
240  // Z Minus Side
241  sprintf(histo, "adc_tec_wheel4_ring%d_zm", i + 1);
242  meAdcTECWheel4zm_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
243  sprintf(histo, "adc_tec_wheel5_ring%d_zm", i + 1);
244  meAdcTECWheel5zm_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
245  sprintf(histo, "adc_tec_wheel6_ring%d_zm", i + 1);
246  meAdcTECWheel6zm_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
247  sprintf(histo, "strip_tec_wheel4_ring%d_zm", i + 1);
248  meStripTECWheel4zm_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
249  sprintf(histo, "strip_tec_wheel5_ring%d_zm", i + 1);
250  meStripTECWheel5zm_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
251  sprintf(histo, "strip_tec_wheel6_ring%d_zm", i + 1);
252  meStripTECWheel6zm_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
253  }
254 
255  for (int i = 0; i < 5; i++) {
256  Char_t histo[200];
257  // Z Plus Side
258  sprintf(histo, "adc_tec_wheel7_ring%d_zp", i + 1);
259  meAdcTECWheel7zp_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
260  sprintf(histo, "adc_tec_wheel8_ring%d_zp", i + 1);
261  meAdcTECWheel8zp_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
262  sprintf(histo, "strip_tec_wheel7_ring%d_zp", i + 1);
263  meStripTECWheel7zp_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
264  sprintf(histo, "strip_tec_wheel8_ring%d_zp", i + 1);
265  meStripTECWheel8zp_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
266 
267  // Z Minus Side
268  sprintf(histo, "adc_tec_wheel7_ring%d_zm", i + 1);
269  meAdcTECWheel7zm_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
270  sprintf(histo, "adc_tec_wheel8_ring%d_zm", i + 1);
271  meAdcTECWheel8zm_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
272  sprintf(histo, "strip_tec_wheel7_ring%d_zm", i + 1);
273  meStripTECWheel7zm_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
274  sprintf(histo, "strip_tec_wheel8_ring%d_zm", i + 1);
275  meStripTECWheel8zm_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
276  }
277 
278  for (int i = 0; i < 4; i++) {
279  Char_t histo[200];
280  // Z Plus Side
281  sprintf(histo, "adc_tec_wheel9_ring%d_zp", i + 1);
282  meAdcTECWheel9zp_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
283  sprintf(histo, "strip_tec_wheel9_ring%d_zp", i + 1);
284  meStripTECWheel9zp_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
285 
286  // Z Minus Side
287  sprintf(histo, "adc_tec_wheel9_ring%d_zm", i + 1);
288  meAdcTECWheel9zm_[i] = ibooker.book1D(histo, "Digis ADC", 50, 0., 300.);
289  sprintf(histo, "strip_tec_wheel9_ring%d_zm", i + 1);
290  meStripTECWheel9zm_[i] = ibooker.book1D(histo, "Digis Strip Num.", 200, 0., 800.);
291  }
292 
293  for (int i = 0; i < 4; i++) {
294  Char_t histo[200];
295  sprintf(histo, "ndigi_tib_layer_%d_zm", i + 1);
296  meNDigiTIBLayerzm_[i] = ibooker.book1D(histo, "Digi Multiplicity", 100, 0., 500.);
297  sprintf(histo, "ndigi_tib_layer_%d_zp", i + 1);
298  meNDigiTIBLayerzp_[i] = ibooker.book1D(histo, "Digi Multiplicity", 100, 0., 500.);
299  }
300 
301  for (int i = 0; i < 6; i++) {
302  Char_t histo[200];
303  sprintf(histo, "ndigi_tob_layer_%d_zm", i + 1);
304  meNDigiTOBLayerzm_[i] = ibooker.book1D(histo, "Digi Multiplicity", 100, 0., 500.);
305  sprintf(histo, "ndigi_tob_layer_%d_zp", i + 1);
306  meNDigiTOBLayerzp_[i] = ibooker.book1D(histo, "Digi Multiplicity", 100, 0., 500.);
307  }
308 
309  for (int i = 0; i < 3; i++) {
310  Char_t histo[200];
311  sprintf(histo, "ndigi_tid_wheel_%d_zm", i + 1);
312  meNDigiTIDWheelzm_[i] = ibooker.book1D(histo, "Digi Multiplicity", 100, 0., 500.);
313  sprintf(histo, "ndigi_tid_wheel_%d_zp", i + 1);
314  meNDigiTIDWheelzp_[i] = ibooker.book1D(histo, "Digi Multiplicity", 100, 0., 500.);
315  }
316 
317  for (int i = 0; i < 9; i++) {
318  Char_t histo[200];
319  sprintf(histo, "ndigi_tec_wheel_%d_zm", i + 1);
320  meNDigiTECWheelzm_[i] = ibooker.book1D(histo, "Digi Multiplicity", 100, 0., 500.);
321  sprintf(histo, "ndigi_tec_wheel_%d_zp", i + 1);
322  meNDigiTECWheelzp_[i] = ibooker.book1D(histo, "Digi Multiplicity", 100, 0., 500.);
323  }
324  }
325 }
326 
328  if (runStandalone && !outputFile_.empty() && dbe_) {
330  }
331 }
332 
334  // Retrieve tracker topology from geometry
335  edm::ESHandle<TrackerTopology> tTopoHandle;
336  c.get<TrackerTopologyRcd>().get(tTopoHandle);
337  const TrackerTopology *const tTopo = tTopoHandle.product();
338 
339  int ndigilayertibzp[4];
340  int ndigilayertibzm[4];
341 
342  for (int i = 0; i < 4; i++) {
343  ndigilayertibzp[i] = 0;
344  ndigilayertibzm[i] = 0;
345  }
346 
347  int ndigilayertobzp[6];
348  int ndigilayertobzm[6];
349 
350  for (int i = 0; i < 6; i++) {
351  ndigilayertobzp[i] = 0;
352  ndigilayertobzm[i] = 0;
353  }
354 
355  int ndigiwheeltidzp[3];
356  int ndigiwheeltidzm[3];
357 
358  for (int i = 0; i < 3; i++) {
359  ndigiwheeltidzp[i] = 0;
360  ndigiwheeltidzm[i] = 0;
361  }
362 
363  int ndigiwheelteczp[9];
364  int ndigiwheelteczm[9];
365 
366  for (int i = 0; i < 9; i++) {
367  ndigiwheelteczp[i] = 0;
368  ndigiwheelteczm[i] = 0;
369  }
370 
371  // LogInfo("EventInfo") << " Run = " << e.id().run() << " Event = " <<
372  // e.id().event();
374  c.get<TrackerDigiGeometryRecord>().get(tracker);
375 
376  std::string digiProducer = "siStripDigis";
379  edm::DetSetVector<SiStripDigi>::const_iterator DSViter = stripDigis->begin();
380  for (; DSViter != stripDigis->end(); DSViter++) {
381  unsigned int id = DSViter->id;
382  DetId detId(id);
386 
387  if (detId.subdetId() == StripSubdetector::TIB) {
388  for (iter = begin; iter != end; iter++) { // loop digis
389  if (tTopo->tibStringInfo(id)[0] == 1) {
390  ++ndigilayertibzm[tTopo->tibLayer(id) - 1];
391  if (tTopo->tibLayer(id) == 1) {
392  if (tTopo->tibStringInfo(id)[1] == 1) {
393  if (tTopo->tibModule(id) == 1) {
394  meAdcTIBLayer1Intzm_[0]->Fill((*iter).adc());
395  meStripTIBLayer1Intzm_[0]->Fill((*iter).strip());
396  }
397  if (tTopo->tibModule(id) == 2) {
398  meAdcTIBLayer1Intzm_[1]->Fill((*iter).adc());
399  meStripTIBLayer1Intzm_[1]->Fill((*iter).strip());
400  }
401  if (tTopo->tibModule(id) == 3) {
402  meAdcTIBLayer1Intzm_[2]->Fill((*iter).adc());
403  meStripTIBLayer1Intzm_[2]->Fill((*iter).strip());
404  }
405  } else {
406  if (tTopo->tibModule(id) == 1) {
407  meAdcTIBLayer1Extzm_[0]->Fill((*iter).adc());
408  meStripTIBLayer1Extzm_[0]->Fill((*iter).strip());
409  }
410  if (tTopo->tibModule(id) == 2) {
411  meAdcTIBLayer1Extzm_[1]->Fill((*iter).adc());
412  meStripTIBLayer1Extzm_[1]->Fill((*iter).strip());
413  }
414  if (tTopo->tibModule(id) == 3) {
415  meAdcTIBLayer1Extzm_[2]->Fill((*iter).adc());
416  meStripTIBLayer1Extzm_[2]->Fill((*iter).strip());
417  }
418  }
419  }
420  if (tTopo->tibLayer(id) == 2) {
421  if (tTopo->tibStringInfo(id)[1] == 1) {
422  if (tTopo->tibModule(id) == 1) {
423  meAdcTIBLayer2Intzm_[0]->Fill((*iter).adc());
424  meStripTIBLayer2Intzm_[0]->Fill((*iter).strip());
425  }
426  if (tTopo->tibModule(id) == 2) {
427  meAdcTIBLayer2Intzm_[1]->Fill((*iter).adc());
428  meStripTIBLayer2Intzm_[1]->Fill((*iter).strip());
429  }
430  if (tTopo->tibModule(id) == 3) {
431  meAdcTIBLayer2Intzm_[2]->Fill((*iter).adc());
432  meStripTIBLayer2Intzm_[2]->Fill((*iter).strip());
433  }
434  } else {
435  if (tTopo->tibModule(id) == 1) {
436  meAdcTIBLayer2Extzm_[0]->Fill((*iter).adc());
437  meStripTIBLayer2Extzm_[0]->Fill((*iter).strip());
438  }
439  if (tTopo->tibModule(id) == 2) {
440  meAdcTIBLayer2Extzm_[1]->Fill((*iter).adc());
441  meStripTIBLayer2Extzm_[1]->Fill((*iter).strip());
442  }
443  if (tTopo->tibModule(id) == 3) {
444  meAdcTIBLayer2Extzm_[2]->Fill((*iter).adc());
445  meStripTIBLayer2Extzm_[2]->Fill((*iter).strip());
446  }
447  }
448  }
449  if (tTopo->tibLayer(id) == 3) {
450  if (tTopo->tibStringInfo(id)[1] == 1) {
451  if (tTopo->tibModule(id) == 1) {
452  meAdcTIBLayer3Intzm_[0]->Fill((*iter).adc());
453  meStripTIBLayer3Intzm_[0]->Fill((*iter).strip());
454  }
455  if (tTopo->tibModule(id) == 2) {
456  meAdcTIBLayer3Intzm_[1]->Fill((*iter).adc());
457  meStripTIBLayer3Intzm_[1]->Fill((*iter).strip());
458  }
459  if (tTopo->tibModule(id) == 3) {
460  meAdcTIBLayer3Intzm_[2]->Fill((*iter).adc());
461  meStripTIBLayer3Intzm_[2]->Fill((*iter).strip());
462  }
463  } else {
464  if (tTopo->tibModule(id) == 1) {
465  meAdcTIBLayer3Extzm_[0]->Fill((*iter).adc());
466  meStripTIBLayer3Extzm_[0]->Fill((*iter).strip());
467  }
468  if (tTopo->tibModule(id) == 2) {
469  meAdcTIBLayer3Extzm_[1]->Fill((*iter).adc());
470  meStripTIBLayer3Extzm_[1]->Fill((*iter).strip());
471  }
472  if (tTopo->tibModule(id) == 3) {
473  meAdcTIBLayer3Extzm_[2]->Fill((*iter).adc());
474  meStripTIBLayer3Extzm_[2]->Fill((*iter).strip());
475  }
476  }
477  }
478  if (tTopo->tibLayer(id) == 4) {
479  if (tTopo->tibStringInfo(id)[1] == 1) {
480  if (tTopo->tibModule(id) == 1) {
481  meAdcTIBLayer4Intzm_[0]->Fill((*iter).adc());
482  meStripTIBLayer4Intzm_[0]->Fill((*iter).strip());
483  }
484  if (tTopo->tibModule(id) == 2) {
485  meAdcTIBLayer4Intzm_[1]->Fill((*iter).adc());
486  meStripTIBLayer4Intzm_[1]->Fill((*iter).strip());
487  }
488  if (tTopo->tibModule(id) == 3) {
489  meAdcTIBLayer4Intzm_[2]->Fill((*iter).adc());
490  meStripTIBLayer4Intzm_[2]->Fill((*iter).strip());
491  }
492  } else {
493  if (tTopo->tibModule(id) == 1) {
494  meAdcTIBLayer4Extzm_[0]->Fill((*iter).adc());
495  meStripTIBLayer4Extzm_[0]->Fill((*iter).strip());
496  }
497  if (tTopo->tibModule(id) == 2) {
498  meAdcTIBLayer4Extzm_[1]->Fill((*iter).adc());
499  meStripTIBLayer4Extzm_[1]->Fill((*iter).strip());
500  }
501  if (tTopo->tibModule(id) == 3) {
502  meAdcTIBLayer4Extzm_[2]->Fill((*iter).adc());
503  meStripTIBLayer4Extzm_[2]->Fill((*iter).strip());
504  }
505  }
506  }
507  } else {
508  ++ndigilayertibzp[tTopo->tibLayer(id) - 1];
509  if (tTopo->tibLayer(id) == 1) {
510  if (tTopo->tibStringInfo(id)[1] == 1) {
511  if (tTopo->tibModule(id) == 1) {
512  meAdcTIBLayer1Intzp_[0]->Fill((*iter).adc());
513  meStripTIBLayer1Intzp_[0]->Fill((*iter).strip());
514  }
515  if (tTopo->tibModule(id) == 2) {
516  meAdcTIBLayer1Intzp_[1]->Fill((*iter).adc());
517  meStripTIBLayer1Intzp_[1]->Fill((*iter).strip());
518  }
519  if (tTopo->tibModule(id) == 3) {
520  meAdcTIBLayer1Intzp_[2]->Fill((*iter).adc());
521  meStripTIBLayer1Intzp_[2]->Fill((*iter).strip());
522  }
523  } else {
524  if (tTopo->tibModule(id) == 1) {
525  meAdcTIBLayer1Extzp_[0]->Fill((*iter).adc());
526  meStripTIBLayer1Extzp_[0]->Fill((*iter).strip());
527  }
528  if (tTopo->tibModule(id) == 2) {
529  meAdcTIBLayer1Extzp_[1]->Fill((*iter).adc());
530  meStripTIBLayer1Extzp_[1]->Fill((*iter).strip());
531  }
532  if (tTopo->tibModule(id) == 3) {
533  meAdcTIBLayer1Extzp_[2]->Fill((*iter).adc());
534  meStripTIBLayer1Extzp_[2]->Fill((*iter).strip());
535  }
536  }
537  }
538  if (tTopo->tibLayer(id) == 2) {
539  if (tTopo->tibStringInfo(id)[1] == 1) {
540  if (tTopo->tibModule(id) == 1) {
541  meAdcTIBLayer2Intzp_[0]->Fill((*iter).adc());
542  meStripTIBLayer2Intzp_[0]->Fill((*iter).strip());
543  }
544  if (tTopo->tibModule(id) == 2) {
545  meAdcTIBLayer2Intzp_[1]->Fill((*iter).adc());
546  meStripTIBLayer2Intzp_[1]->Fill((*iter).strip());
547  }
548  if (tTopo->tibModule(id) == 3) {
549  meAdcTIBLayer2Intzp_[2]->Fill((*iter).adc());
550  meStripTIBLayer2Intzp_[2]->Fill((*iter).strip());
551  }
552  } else {
553  if (tTopo->tibModule(id) == 1) {
554  meAdcTIBLayer2Extzp_[0]->Fill((*iter).adc());
555  meStripTIBLayer2Extzp_[0]->Fill((*iter).strip());
556  }
557  if (tTopo->tibModule(id) == 2) {
558  meAdcTIBLayer2Extzp_[1]->Fill((*iter).adc());
559  meStripTIBLayer2Extzp_[1]->Fill((*iter).strip());
560  }
561  if (tTopo->tibModule(id) == 3) {
562  meAdcTIBLayer2Extzp_[2]->Fill((*iter).adc());
563  meStripTIBLayer2Extzp_[2]->Fill((*iter).strip());
564  }
565  }
566  }
567  if (tTopo->tibLayer(id) == 3) {
568  if (tTopo->tibStringInfo(id)[1] == 1) {
569  if (tTopo->tibModule(id) == 1) {
570  meAdcTIBLayer3Intzp_[0]->Fill((*iter).adc());
571  meStripTIBLayer3Intzp_[0]->Fill((*iter).strip());
572  }
573  if (tTopo->tibModule(id) == 2) {
574  meAdcTIBLayer3Intzp_[1]->Fill((*iter).adc());
575  meStripTIBLayer3Intzp_[1]->Fill((*iter).strip());
576  }
577  if (tTopo->tibModule(id) == 3) {
578  meAdcTIBLayer3Intzp_[2]->Fill((*iter).adc());
579  meStripTIBLayer3Intzp_[2]->Fill((*iter).strip());
580  }
581  } else {
582  if (tTopo->tibModule(id) == 1) {
583  meAdcTIBLayer3Extzp_[0]->Fill((*iter).adc());
584  meStripTIBLayer3Extzp_[0]->Fill((*iter).strip());
585  }
586  if (tTopo->tibModule(id) == 2) {
587  meAdcTIBLayer3Extzp_[1]->Fill((*iter).adc());
588  meStripTIBLayer3Extzp_[1]->Fill((*iter).strip());
589  }
590  if (tTopo->tibModule(id) == 3) {
591  meAdcTIBLayer3Extzp_[2]->Fill((*iter).adc());
592  meStripTIBLayer3Extzp_[2]->Fill((*iter).strip());
593  }
594  }
595  }
596  if (tTopo->tibLayer(id) == 4) {
597  if (tTopo->tibStringInfo(id)[1] == 1) {
598  if (tTopo->tibModule(id) == 1) {
599  meAdcTIBLayer4Intzp_[0]->Fill((*iter).adc());
600  meStripTIBLayer4Intzp_[0]->Fill((*iter).strip());
601  }
602  if (tTopo->tibModule(id) == 2) {
603  meAdcTIBLayer4Intzp_[1]->Fill((*iter).adc());
604  meStripTIBLayer4Intzp_[1]->Fill((*iter).strip());
605  }
606  if (tTopo->tibModule(id) == 3) {
607  meAdcTIBLayer4Intzp_[2]->Fill((*iter).adc());
608  meStripTIBLayer4Intzp_[2]->Fill((*iter).strip());
609  }
610  } else {
611  if (tTopo->tibModule(id) == 1) {
612  meAdcTIBLayer4Extzp_[0]->Fill((*iter).adc());
613  meStripTIBLayer4Extzp_[0]->Fill((*iter).strip());
614  }
615  if (tTopo->tibModule(id) == 2) {
616  meAdcTIBLayer4Extzp_[1]->Fill((*iter).adc());
617  meStripTIBLayer4Extzp_[1]->Fill((*iter).strip());
618  }
619  if (tTopo->tibModule(id) == 3) {
620  meAdcTIBLayer4Extzp_[2]->Fill((*iter).adc());
621  meStripTIBLayer4Extzp_[2]->Fill((*iter).strip());
622  }
623  }
624  }
625  }
626  }
627  }
628  if (detId.subdetId() == StripSubdetector::TOB) {
629  for (iter = begin; iter != end; iter++) { // loop digis
630  if (tTopo->tobRodInfo(id)[0] == 1) {
631  ++ndigilayertobzm[tTopo->tobLayer(id) - 1];
632  if (tTopo->tobLayer(id) == 1) {
633  if (tTopo->tobModule(id) == 1) {
634  meAdcTOBLayer1zm_[0]->Fill((*iter).adc());
635  meStripTOBLayer1zm_[0]->Fill((*iter).strip());
636  }
637  if (tTopo->tobModule(id) == 2) {
638  meAdcTOBLayer1zm_[1]->Fill((*iter).adc());
639  meStripTOBLayer1zm_[1]->Fill((*iter).strip());
640  }
641  if (tTopo->tobModule(id) == 3) {
642  meAdcTOBLayer1zm_[2]->Fill((*iter).adc());
643  meStripTOBLayer1zm_[2]->Fill((*iter).strip());
644  }
645  if (tTopo->tobModule(id) == 4) {
646  meAdcTOBLayer1zm_[3]->Fill((*iter).adc());
647  meStripTOBLayer1zm_[3]->Fill((*iter).strip());
648  }
649  if (tTopo->tobModule(id) == 5) {
650  meAdcTOBLayer1zm_[4]->Fill((*iter).adc());
651  meStripTOBLayer1zm_[4]->Fill((*iter).strip());
652  }
653  if (tTopo->tobModule(id) == 6) {
654  meAdcTOBLayer1zm_[5]->Fill((*iter).adc());
655  meStripTOBLayer1zm_[5]->Fill((*iter).strip());
656  }
657  }
658  if (tTopo->tobLayer(id) == 2) {
659  if (tTopo->tobModule(id) == 1) {
660  meAdcTOBLayer2zm_[0]->Fill((*iter).adc());
661  meStripTOBLayer2zm_[0]->Fill((*iter).strip());
662  }
663  if (tTopo->tobModule(id) == 2) {
664  meAdcTOBLayer2zm_[1]->Fill((*iter).adc());
665  meStripTOBLayer2zm_[1]->Fill((*iter).strip());
666  }
667  if (tTopo->tobModule(id) == 3) {
668  meAdcTOBLayer2zm_[2]->Fill((*iter).adc());
669  meStripTOBLayer2zm_[2]->Fill((*iter).strip());
670  }
671  if (tTopo->tobModule(id) == 4) {
672  meAdcTOBLayer2zm_[3]->Fill((*iter).adc());
673  meStripTOBLayer2zm_[3]->Fill((*iter).strip());
674  }
675  if (tTopo->tobModule(id) == 5) {
676  meAdcTOBLayer2zm_[4]->Fill((*iter).adc());
677  meStripTOBLayer2zm_[4]->Fill((*iter).strip());
678  }
679  if (tTopo->tobModule(id) == 6) {
680  meAdcTOBLayer2zm_[5]->Fill((*iter).adc());
681  meStripTOBLayer2zm_[5]->Fill((*iter).strip());
682  }
683  }
684  if (tTopo->tobLayer(id) == 3) {
685  if (tTopo->tobModule(id) == 1) {
686  meAdcTOBLayer3zm_[0]->Fill((*iter).adc());
687  meStripTOBLayer3zm_[0]->Fill((*iter).strip());
688  }
689  if (tTopo->tobModule(id) == 2) {
690  meAdcTOBLayer3zm_[1]->Fill((*iter).adc());
691  meStripTOBLayer3zm_[1]->Fill((*iter).strip());
692  }
693  if (tTopo->tobModule(id) == 3) {
694  meAdcTOBLayer3zm_[2]->Fill((*iter).adc());
695  meStripTOBLayer3zm_[2]->Fill((*iter).strip());
696  }
697  if (tTopo->tobModule(id) == 4) {
698  meAdcTOBLayer3zm_[3]->Fill((*iter).adc());
699  meStripTOBLayer3zm_[3]->Fill((*iter).strip());
700  }
701  if (tTopo->tobModule(id) == 5) {
702  meAdcTOBLayer3zm_[4]->Fill((*iter).adc());
703  meStripTOBLayer3zm_[4]->Fill((*iter).strip());
704  }
705  if (tTopo->tobModule(id) == 6) {
706  meAdcTOBLayer3zm_[5]->Fill((*iter).adc());
707  meStripTOBLayer3zm_[5]->Fill((*iter).strip());
708  }
709  }
710  if (tTopo->tobLayer(id) == 4) {
711  if (tTopo->tobModule(id) == 1) {
712  meAdcTOBLayer4zm_[0]->Fill((*iter).adc());
713  meStripTOBLayer4zm_[0]->Fill((*iter).strip());
714  }
715  if (tTopo->tobModule(id) == 2) {
716  meAdcTOBLayer4zm_[1]->Fill((*iter).adc());
717  meStripTOBLayer4zm_[1]->Fill((*iter).strip());
718  }
719  if (tTopo->tobModule(id) == 3) {
720  meAdcTOBLayer4zm_[2]->Fill((*iter).adc());
721  meStripTOBLayer4zm_[2]->Fill((*iter).strip());
722  }
723  if (tTopo->tobModule(id) == 4) {
724  meAdcTOBLayer4zm_[3]->Fill((*iter).adc());
725  meStripTOBLayer4zm_[3]->Fill((*iter).strip());
726  }
727  if (tTopo->tobModule(id) == 5) {
728  meAdcTOBLayer4zm_[4]->Fill((*iter).adc());
729  meStripTOBLayer4zm_[4]->Fill((*iter).strip());
730  }
731  if (tTopo->tobModule(id) == 6) {
732  meAdcTOBLayer4zm_[5]->Fill((*iter).adc());
733  meStripTOBLayer4zm_[5]->Fill((*iter).strip());
734  }
735  }
736  if (tTopo->tobLayer(id) == 5) {
737  if (tTopo->tobModule(id) == 1) {
738  meAdcTOBLayer5zm_[0]->Fill((*iter).adc());
739  meStripTOBLayer5zm_[0]->Fill((*iter).strip());
740  }
741  if (tTopo->tobModule(id) == 2) {
742  meAdcTOBLayer5zm_[1]->Fill((*iter).adc());
743  meStripTOBLayer5zm_[1]->Fill((*iter).strip());
744  }
745  if (tTopo->tobModule(id) == 3) {
746  meAdcTOBLayer5zm_[2]->Fill((*iter).adc());
747  meStripTOBLayer5zm_[2]->Fill((*iter).strip());
748  }
749  if (tTopo->tobModule(id) == 4) {
750  meAdcTOBLayer5zm_[3]->Fill((*iter).adc());
751  meStripTOBLayer5zm_[3]->Fill((*iter).strip());
752  }
753  if (tTopo->tobModule(id) == 5) {
754  meAdcTOBLayer5zm_[4]->Fill((*iter).adc());
755  meStripTOBLayer5zm_[4]->Fill((*iter).strip());
756  }
757  if (tTopo->tobModule(id) == 6) {
758  meAdcTOBLayer5zm_[5]->Fill((*iter).adc());
759  meStripTOBLayer5zm_[5]->Fill((*iter).strip());
760  }
761  }
762  if (tTopo->tobLayer(id) == 6) {
763  if (tTopo->tobModule(id) == 1) {
764  meAdcTOBLayer6zm_[0]->Fill((*iter).adc());
765  meStripTOBLayer6zm_[0]->Fill((*iter).strip());
766  }
767  if (tTopo->tobModule(id) == 2) {
768  meAdcTOBLayer6zm_[1]->Fill((*iter).adc());
769  meStripTOBLayer6zm_[1]->Fill((*iter).strip());
770  }
771  if (tTopo->tobModule(id) == 3) {
772  meAdcTOBLayer6zm_[2]->Fill((*iter).adc());
773  meStripTOBLayer6zm_[2]->Fill((*iter).strip());
774  }
775  if (tTopo->tobModule(id) == 4) {
776  meAdcTOBLayer6zm_[3]->Fill((*iter).adc());
777  meStripTOBLayer6zm_[3]->Fill((*iter).strip());
778  }
779  if (tTopo->tobModule(id) == 5) {
780  meAdcTOBLayer6zm_[4]->Fill((*iter).adc());
781  meStripTOBLayer6zm_[4]->Fill((*iter).strip());
782  }
783  if (tTopo->tobModule(id) == 6) {
784  meAdcTOBLayer6zm_[5]->Fill((*iter).adc());
785  meStripTOBLayer6zm_[5]->Fill((*iter).strip());
786  }
787  }
788 
789  } else {
790  ++ndigilayertobzp[tTopo->tobLayer(id) - 1];
791  if (tTopo->tobLayer(id) == 1) {
792  if (tTopo->tobModule(id) == 1) {
793  meAdcTOBLayer1zp_[0]->Fill((*iter).adc());
794  meStripTOBLayer1zp_[0]->Fill((*iter).strip());
795  }
796  if (tTopo->tobModule(id) == 2) {
797  meAdcTOBLayer1zp_[1]->Fill((*iter).adc());
798  meStripTOBLayer1zp_[1]->Fill((*iter).strip());
799  }
800  if (tTopo->tobModule(id) == 3) {
801  meAdcTOBLayer1zp_[2]->Fill((*iter).adc());
802  meStripTOBLayer1zp_[2]->Fill((*iter).strip());
803  }
804  if (tTopo->tobModule(id) == 4) {
805  meAdcTOBLayer1zp_[3]->Fill((*iter).adc());
806  meStripTOBLayer1zp_[3]->Fill((*iter).strip());
807  }
808  if (tTopo->tobModule(id) == 5) {
809  meAdcTOBLayer1zp_[4]->Fill((*iter).adc());
810  meStripTOBLayer1zp_[4]->Fill((*iter).strip());
811  }
812  if (tTopo->tobModule(id) == 6) {
813  meAdcTOBLayer1zp_[5]->Fill((*iter).adc());
814  meStripTOBLayer1zp_[5]->Fill((*iter).strip());
815  }
816  }
817  if (tTopo->tobLayer(id) == 2) {
818  if (tTopo->tobModule(id) == 1) {
819  meAdcTOBLayer2zp_[0]->Fill((*iter).adc());
820  meStripTOBLayer2zp_[0]->Fill((*iter).strip());
821  }
822  if (tTopo->tobModule(id) == 2) {
823  meAdcTOBLayer2zp_[1]->Fill((*iter).adc());
824  meStripTOBLayer2zp_[1]->Fill((*iter).strip());
825  }
826  if (tTopo->tobModule(id) == 3) {
827  meAdcTOBLayer2zp_[2]->Fill((*iter).adc());
828  meStripTOBLayer2zp_[2]->Fill((*iter).strip());
829  }
830  if (tTopo->tobModule(id) == 4) {
831  meAdcTOBLayer2zp_[3]->Fill((*iter).adc());
832  meStripTOBLayer2zp_[3]->Fill((*iter).strip());
833  }
834  if (tTopo->tobModule(id) == 5) {
835  meAdcTOBLayer2zp_[4]->Fill((*iter).adc());
836  meStripTOBLayer2zp_[4]->Fill((*iter).strip());
837  }
838  if (tTopo->tobModule(id) == 6) {
839  meAdcTOBLayer2zp_[5]->Fill((*iter).adc());
840  meStripTOBLayer2zp_[5]->Fill((*iter).strip());
841  }
842  }
843  if (tTopo->tobLayer(id) == 3) {
844  if (tTopo->tobModule(id) == 1) {
845  meAdcTOBLayer3zp_[0]->Fill((*iter).adc());
846  meStripTOBLayer3zp_[0]->Fill((*iter).strip());
847  }
848  if (tTopo->tobModule(id) == 2) {
849  meAdcTOBLayer3zp_[1]->Fill((*iter).adc());
850  meStripTOBLayer3zp_[1]->Fill((*iter).strip());
851  }
852  if (tTopo->tobModule(id) == 3) {
853  meAdcTOBLayer3zp_[2]->Fill((*iter).adc());
854  meStripTOBLayer3zp_[2]->Fill((*iter).strip());
855  }
856  if (tTopo->tobModule(id) == 4) {
857  meAdcTOBLayer3zp_[3]->Fill((*iter).adc());
858  meStripTOBLayer3zp_[3]->Fill((*iter).strip());
859  }
860  if (tTopo->tobModule(id) == 5) {
861  meAdcTOBLayer3zp_[4]->Fill((*iter).adc());
862  meStripTOBLayer3zp_[4]->Fill((*iter).strip());
863  }
864  if (tTopo->tobModule(id) == 6) {
865  meAdcTOBLayer3zp_[5]->Fill((*iter).adc());
866  meStripTOBLayer3zp_[5]->Fill((*iter).strip());
867  }
868  }
869  if (tTopo->tobLayer(id) == 4) {
870  if (tTopo->tobModule(id) == 1) {
871  meAdcTOBLayer4zp_[0]->Fill((*iter).adc());
872  meStripTOBLayer4zp_[0]->Fill((*iter).strip());
873  }
874  if (tTopo->tobModule(id) == 2) {
875  meAdcTOBLayer4zp_[1]->Fill((*iter).adc());
876  meStripTOBLayer4zp_[1]->Fill((*iter).strip());
877  }
878  if (tTopo->tobModule(id) == 3) {
879  meAdcTOBLayer4zp_[2]->Fill((*iter).adc());
880  meStripTOBLayer4zp_[2]->Fill((*iter).strip());
881  }
882  if (tTopo->tobModule(id) == 4) {
883  meAdcTOBLayer4zp_[3]->Fill((*iter).adc());
884  meStripTOBLayer4zp_[3]->Fill((*iter).strip());
885  }
886  if (tTopo->tobModule(id) == 5) {
887  meAdcTOBLayer4zp_[4]->Fill((*iter).adc());
888  meStripTOBLayer4zp_[4]->Fill((*iter).strip());
889  }
890  if (tTopo->tobModule(id) == 6) {
891  meAdcTOBLayer4zp_[5]->Fill((*iter).adc());
892  meStripTOBLayer4zp_[5]->Fill((*iter).strip());
893  }
894  }
895  if (tTopo->tobLayer(id) == 5) {
896  if (tTopo->tobModule(id) == 1) {
897  meAdcTOBLayer5zp_[0]->Fill((*iter).adc());
898  meStripTOBLayer5zp_[0]->Fill((*iter).strip());
899  }
900  if (tTopo->tobModule(id) == 2) {
901  meAdcTOBLayer5zp_[1]->Fill((*iter).adc());
902  meStripTOBLayer5zp_[1]->Fill((*iter).strip());
903  }
904  if (tTopo->tobModule(id) == 3) {
905  meAdcTOBLayer5zp_[2]->Fill((*iter).adc());
906  meStripTOBLayer5zp_[2]->Fill((*iter).strip());
907  }
908  if (tTopo->tobModule(id) == 4) {
909  meAdcTOBLayer5zp_[3]->Fill((*iter).adc());
910  meStripTOBLayer5zp_[3]->Fill((*iter).strip());
911  }
912  if (tTopo->tobModule(id) == 5) {
913  meAdcTOBLayer5zp_[4]->Fill((*iter).adc());
914  meStripTOBLayer5zp_[4]->Fill((*iter).strip());
915  }
916  if (tTopo->tobModule(id) == 6) {
917  meAdcTOBLayer5zp_[5]->Fill((*iter).adc());
918  meStripTOBLayer5zp_[5]->Fill((*iter).strip());
919  }
920  }
921  if (tTopo->tobLayer(id) == 6) {
922  if (tTopo->tobModule(id) == 1) {
923  meAdcTOBLayer6zp_[0]->Fill((*iter).adc());
924  meStripTOBLayer6zp_[0]->Fill((*iter).strip());
925  }
926  if (tTopo->tobModule(id) == 2) {
927  meAdcTOBLayer6zp_[1]->Fill((*iter).adc());
928  meStripTOBLayer6zp_[1]->Fill((*iter).strip());
929  }
930  if (tTopo->tobModule(id) == 3) {
931  meAdcTOBLayer6zp_[2]->Fill((*iter).adc());
932  meStripTOBLayer6zp_[2]->Fill((*iter).strip());
933  }
934  if (tTopo->tobModule(id) == 4) {
935  meAdcTOBLayer6zp_[3]->Fill((*iter).adc());
936  meStripTOBLayer6zp_[3]->Fill((*iter).strip());
937  }
938  if (tTopo->tobModule(id) == 5) {
939  meAdcTOBLayer6zp_[4]->Fill((*iter).adc());
940  meStripTOBLayer6zp_[4]->Fill((*iter).strip());
941  }
942  if (tTopo->tobModule(id) == 6) {
943  meAdcTOBLayer6zp_[5]->Fill((*iter).adc());
944  meStripTOBLayer6zp_[5]->Fill((*iter).strip());
945  }
946  }
947  }
948  }
949  }
950 
951  if (detId.subdetId() == StripSubdetector::TID) {
952  for (iter = begin; iter != end; iter++) {
953  if (tTopo->tidSide(id) == 1) {
954  ++ndigiwheeltidzm[tTopo->tidWheel(id) - 1];
955  if (tTopo->tidWheel(id) == 1) {
956  if (tTopo->tidRing(id) == 1) {
957  meAdcTIDWheel1zm_[0]->Fill((*iter).adc());
958  meStripTIDWheel1zm_[0]->Fill((*iter).strip());
959  }
960  if (tTopo->tidRing(id) == 2) {
961  meAdcTIDWheel1zm_[1]->Fill((*iter).adc());
962  meStripTIDWheel1zm_[1]->Fill((*iter).strip());
963  }
964  if (tTopo->tidRing(id) == 3) {
965  meAdcTIDWheel1zm_[2]->Fill((*iter).adc());
966  meStripTIDWheel1zm_[2]->Fill((*iter).strip());
967  }
968  }
969  if (tTopo->tidWheel(id) == 2) {
970  if (tTopo->tidRing(id) == 1) {
971  meAdcTIDWheel2zm_[0]->Fill((*iter).adc());
972  meStripTIDWheel2zm_[0]->Fill((*iter).strip());
973  }
974  if (tTopo->tidRing(id) == 2) {
975  meAdcTIDWheel2zm_[1]->Fill((*iter).adc());
976  meStripTIDWheel2zm_[1]->Fill((*iter).strip());
977  }
978  if (tTopo->tidRing(id) == 3) {
979  meAdcTIDWheel2zm_[2]->Fill((*iter).adc());
980  meStripTIDWheel2zm_[2]->Fill((*iter).strip());
981  }
982  }
983  if (tTopo->tidWheel(id) == 3) {
984  if (tTopo->tidRing(id) == 1) {
985  meAdcTIDWheel3zm_[0]->Fill((*iter).adc());
986  meStripTIDWheel3zm_[0]->Fill((*iter).strip());
987  }
988  if (tTopo->tidRing(id) == 2) {
989  meAdcTIDWheel3zm_[1]->Fill((*iter).adc());
990  meStripTIDWheel3zm_[1]->Fill((*iter).strip());
991  }
992  if (tTopo->tidRing(id) == 3) {
993  meAdcTIDWheel3zm_[2]->Fill((*iter).adc());
994  meStripTIDWheel3zm_[2]->Fill((*iter).strip());
995  }
996  }
997 
998  } else {
999  ++ndigiwheeltidzp[tTopo->tidWheel(id) - 1];
1000  if (tTopo->tidWheel(id) == 1) {
1001  if (tTopo->tidRing(id) == 1) {
1002  meAdcTIDWheel1zp_[0]->Fill((*iter).adc());
1003  meStripTIDWheel1zp_[0]->Fill((*iter).strip());
1004  }
1005  if (tTopo->tidRing(id) == 2) {
1006  meAdcTIDWheel1zp_[1]->Fill((*iter).adc());
1007  meStripTIDWheel1zp_[1]->Fill((*iter).strip());
1008  }
1009  if (tTopo->tidRing(id) == 3) {
1010  meAdcTIDWheel1zp_[2]->Fill((*iter).adc());
1011  meStripTIDWheel1zp_[2]->Fill((*iter).strip());
1012  }
1013  }
1014  if (tTopo->tidWheel(id) == 2) {
1015  if (tTopo->tidRing(id) == 1) {
1016  meAdcTIDWheel2zp_[0]->Fill((*iter).adc());
1017  meStripTIDWheel2zp_[0]->Fill((*iter).strip());
1018  }
1019  if (tTopo->tidRing(id) == 2) {
1020  meAdcTIDWheel2zp_[1]->Fill((*iter).adc());
1021  meStripTIDWheel2zp_[1]->Fill((*iter).strip());
1022  }
1023  if (tTopo->tidRing(id) == 3) {
1024  meAdcTIDWheel2zp_[2]->Fill((*iter).adc());
1025  meStripTIDWheel2zp_[2]->Fill((*iter).strip());
1026  }
1027  }
1028  if (tTopo->tidWheel(id) == 3) {
1029  if (tTopo->tidRing(id) == 1) {
1030  meAdcTIDWheel3zp_[0]->Fill((*iter).adc());
1031  meStripTIDWheel3zp_[0]->Fill((*iter).strip());
1032  }
1033  if (tTopo->tidRing(id) == 2) {
1034  meAdcTIDWheel3zp_[1]->Fill((*iter).adc());
1035  meStripTIDWheel3zp_[1]->Fill((*iter).strip());
1036  }
1037  if (tTopo->tidRing(id) == 3) {
1038  meAdcTIDWheel3zp_[2]->Fill((*iter).adc());
1039  meStripTIDWheel3zp_[2]->Fill((*iter).strip());
1040  }
1041  }
1042  }
1043  }
1044  }
1045  if (detId.subdetId() == StripSubdetector::TEC) {
1046  for (iter = begin; iter != end; iter++) {
1047  if (tTopo->tecSide(id) == 1) {
1048  ++ndigiwheelteczm[tTopo->tecWheel(id) - 1];
1049  if (tTopo->tecWheel(id) == 1) {
1050  if (tTopo->tecRing(id) == 1) {
1051  meAdcTECWheel1zm_[0]->Fill((*iter).adc());
1052  meStripTECWheel1zm_[0]->Fill((*iter).strip());
1053  }
1054  if (tTopo->tecRing(id) == 2) {
1055  meAdcTECWheel1zm_[1]->Fill((*iter).adc());
1056  meStripTECWheel1zm_[1]->Fill((*iter).strip());
1057  }
1058  if (tTopo->tecRing(id) == 3) {
1059  meAdcTECWheel1zm_[2]->Fill((*iter).adc());
1060  meStripTECWheel1zm_[2]->Fill((*iter).strip());
1061  }
1062  if (tTopo->tecRing(id) == 4) {
1063  meAdcTECWheel1zm_[3]->Fill((*iter).adc());
1064  meStripTECWheel1zm_[3]->Fill((*iter).strip());
1065  }
1066  if (tTopo->tecRing(id) == 5) {
1067  meAdcTECWheel1zm_[4]->Fill((*iter).adc());
1068  meStripTECWheel1zm_[4]->Fill((*iter).strip());
1069  }
1070  if (tTopo->tecRing(id) == 6) {
1071  meAdcTECWheel1zm_[5]->Fill((*iter).adc());
1072  meStripTECWheel1zm_[5]->Fill((*iter).strip());
1073  }
1074  if (tTopo->tecRing(id) == 7) {
1075  meAdcTECWheel1zm_[6]->Fill((*iter).adc());
1076  meStripTECWheel1zm_[6]->Fill((*iter).strip());
1077  }
1078  }
1079  if (tTopo->tecWheel(id) == 2) {
1080  if (tTopo->tecRing(id) == 1) {
1081  meAdcTECWheel2zm_[0]->Fill((*iter).adc());
1082  meStripTECWheel2zm_[0]->Fill((*iter).strip());
1083  }
1084  if (tTopo->tecRing(id) == 2) {
1085  meAdcTECWheel2zm_[1]->Fill((*iter).adc());
1086  meStripTECWheel2zm_[1]->Fill((*iter).strip());
1087  }
1088  if (tTopo->tecRing(id) == 3) {
1089  meAdcTECWheel2zm_[2]->Fill((*iter).adc());
1090  meStripTECWheel2zm_[2]->Fill((*iter).strip());
1091  }
1092  if (tTopo->tecRing(id) == 4) {
1093  meAdcTECWheel2zm_[3]->Fill((*iter).adc());
1094  meStripTECWheel2zm_[3]->Fill((*iter).strip());
1095  }
1096  if (tTopo->tecRing(id) == 5) {
1097  meAdcTECWheel2zm_[4]->Fill((*iter).adc());
1098  meStripTECWheel2zm_[4]->Fill((*iter).strip());
1099  }
1100  if (tTopo->tecRing(id) == 6) {
1101  meAdcTECWheel2zm_[5]->Fill((*iter).adc());
1102  meStripTECWheel2zm_[5]->Fill((*iter).strip());
1103  }
1104  if (tTopo->tecRing(id) == 7) {
1105  meAdcTECWheel2zm_[6]->Fill((*iter).adc());
1106  meStripTECWheel2zm_[6]->Fill((*iter).strip());
1107  }
1108  }
1109  if (tTopo->tecWheel(id) == 3) {
1110  if (tTopo->tecRing(id) == 1) {
1111  meAdcTECWheel3zm_[0]->Fill((*iter).adc());
1112  meStripTECWheel3zm_[0]->Fill((*iter).strip());
1113  }
1114  if (tTopo->tecRing(id) == 2) {
1115  meAdcTECWheel3zm_[1]->Fill((*iter).adc());
1116  meStripTECWheel3zm_[1]->Fill((*iter).strip());
1117  }
1118  if (tTopo->tecRing(id) == 3) {
1119  meAdcTECWheel3zm_[2]->Fill((*iter).adc());
1120  meStripTECWheel3zm_[2]->Fill((*iter).strip());
1121  }
1122  if (tTopo->tecRing(id) == 4) {
1123  meAdcTECWheel3zm_[3]->Fill((*iter).adc());
1124  meStripTECWheel3zm_[3]->Fill((*iter).strip());
1125  }
1126  if (tTopo->tecRing(id) == 5) {
1127  meAdcTECWheel3zm_[4]->Fill((*iter).adc());
1128  meStripTECWheel3zm_[4]->Fill((*iter).strip());
1129  }
1130  if (tTopo->tecRing(id) == 6) {
1131  meAdcTECWheel3zm_[5]->Fill((*iter).adc());
1132  meStripTECWheel3zm_[5]->Fill((*iter).strip());
1133  }
1134  if (tTopo->tecRing(id) == 7) {
1135  meAdcTECWheel3zm_[6]->Fill((*iter).adc());
1136  meStripTECWheel3zm_[6]->Fill((*iter).strip());
1137  }
1138  }
1139  if (tTopo->tecWheel(id) == 4) {
1140  if (tTopo->tecRing(id) == 2) {
1141  meAdcTECWheel4zm_[0]->Fill((*iter).adc());
1142  meStripTECWheel4zm_[0]->Fill((*iter).strip());
1143  }
1144  if (tTopo->tecRing(id) == 3) {
1145  meAdcTECWheel4zm_[1]->Fill((*iter).adc());
1146  meStripTECWheel4zm_[1]->Fill((*iter).strip());
1147  }
1148  if (tTopo->tecRing(id) == 4) {
1149  meAdcTECWheel4zm_[2]->Fill((*iter).adc());
1150  meStripTECWheel4zm_[2]->Fill((*iter).strip());
1151  }
1152  if (tTopo->tecRing(id) == 5) {
1153  meAdcTECWheel4zm_[3]->Fill((*iter).adc());
1154  meStripTECWheel4zm_[3]->Fill((*iter).strip());
1155  }
1156  if (tTopo->tecRing(id) == 6) {
1157  meAdcTECWheel4zm_[4]->Fill((*iter).adc());
1158  meStripTECWheel4zm_[4]->Fill((*iter).strip());
1159  }
1160  if (tTopo->tecRing(id) == 7) {
1161  meAdcTECWheel4zm_[5]->Fill((*iter).adc());
1162  meStripTECWheel4zm_[5]->Fill((*iter).strip());
1163  }
1164  }
1165  if (tTopo->tecWheel(id) == 5) {
1166  if (tTopo->tecRing(id) == 2) {
1167  meAdcTECWheel5zm_[0]->Fill((*iter).adc());
1168  meStripTECWheel5zm_[0]->Fill((*iter).strip());
1169  }
1170  if (tTopo->tecRing(id) == 3) {
1171  meAdcTECWheel5zm_[1]->Fill((*iter).adc());
1172  meStripTECWheel5zm_[1]->Fill((*iter).strip());
1173  }
1174  if (tTopo->tecRing(id) == 4) {
1175  meAdcTECWheel5zm_[2]->Fill((*iter).adc());
1176  meStripTECWheel5zm_[2]->Fill((*iter).strip());
1177  }
1178  if (tTopo->tecRing(id) == 5) {
1179  meAdcTECWheel5zm_[3]->Fill((*iter).adc());
1180  meStripTECWheel5zm_[3]->Fill((*iter).strip());
1181  }
1182  if (tTopo->tecRing(id) == 6) {
1183  meAdcTECWheel5zm_[4]->Fill((*iter).adc());
1184  meStripTECWheel5zm_[4]->Fill((*iter).strip());
1185  }
1186  if (tTopo->tecRing(id) == 7) {
1187  meAdcTECWheel5zm_[5]->Fill((*iter).adc());
1188  meStripTECWheel5zm_[5]->Fill((*iter).strip());
1189  }
1190  }
1191  if (tTopo->tecWheel(id) == 6) {
1192  if (tTopo->tecRing(id) == 2) {
1193  meAdcTECWheel6zm_[0]->Fill((*iter).adc());
1194  meStripTECWheel6zm_[0]->Fill((*iter).strip());
1195  }
1196  if (tTopo->tecRing(id) == 3) {
1197  meAdcTECWheel6zm_[1]->Fill((*iter).adc());
1198  meStripTECWheel6zm_[1]->Fill((*iter).strip());
1199  }
1200  if (tTopo->tecRing(id) == 4) {
1201  meAdcTECWheel6zm_[2]->Fill((*iter).adc());
1202  meStripTECWheel6zm_[2]->Fill((*iter).strip());
1203  }
1204  if (tTopo->tecRing(id) == 5) {
1205  meAdcTECWheel6zm_[3]->Fill((*iter).adc());
1206  meStripTECWheel6zm_[3]->Fill((*iter).strip());
1207  }
1208  if (tTopo->tecRing(id) == 6) {
1209  meAdcTECWheel6zm_[4]->Fill((*iter).adc());
1210  meStripTECWheel6zm_[4]->Fill((*iter).strip());
1211  }
1212  if (tTopo->tecRing(id) == 7) {
1213  meAdcTECWheel6zm_[5]->Fill((*iter).adc());
1214  meStripTECWheel6zm_[5]->Fill((*iter).strip());
1215  }
1216  }
1217  if (tTopo->tecWheel(id) == 7) {
1218  if (tTopo->tecRing(id) == 3) {
1219  meAdcTECWheel7zm_[0]->Fill((*iter).adc());
1220  meStripTECWheel7zm_[0]->Fill((*iter).strip());
1221  }
1222  if (tTopo->tecRing(id) == 4) {
1223  meAdcTECWheel7zm_[1]->Fill((*iter).adc());
1224  meStripTECWheel7zm_[1]->Fill((*iter).strip());
1225  }
1226  if (tTopo->tecRing(id) == 5) {
1227  meAdcTECWheel7zm_[2]->Fill((*iter).adc());
1228  meStripTECWheel7zm_[2]->Fill((*iter).strip());
1229  }
1230  if (tTopo->tecRing(id) == 6) {
1231  meAdcTECWheel7zm_[3]->Fill((*iter).adc());
1232  meStripTECWheel7zm_[3]->Fill((*iter).strip());
1233  }
1234  if (tTopo->tecRing(id) == 7) {
1235  meAdcTECWheel7zm_[4]->Fill((*iter).adc());
1236  meStripTECWheel7zm_[4]->Fill((*iter).strip());
1237  }
1238  }
1239  if (tTopo->tecWheel(id) == 8) {
1240  if (tTopo->tecRing(id) == 3) {
1241  meAdcTECWheel8zm_[0]->Fill((*iter).adc());
1242  meStripTECWheel8zm_[0]->Fill((*iter).strip());
1243  }
1244  if (tTopo->tecRing(id) == 4) {
1245  meAdcTECWheel8zm_[1]->Fill((*iter).adc());
1246  meStripTECWheel8zm_[1]->Fill((*iter).strip());
1247  }
1248  if (tTopo->tecRing(id) == 5) {
1249  meAdcTECWheel8zm_[2]->Fill((*iter).adc());
1250  meStripTECWheel8zm_[2]->Fill((*iter).strip());
1251  }
1252  if (tTopo->tecRing(id) == 6) {
1253  meAdcTECWheel8zm_[3]->Fill((*iter).adc());
1254  meStripTECWheel8zm_[3]->Fill((*iter).strip());
1255  }
1256  if (tTopo->tecRing(id) == 7) {
1257  meAdcTECWheel8zm_[4]->Fill((*iter).adc());
1258  meStripTECWheel8zm_[4]->Fill((*iter).strip());
1259  }
1260  }
1261  if (tTopo->tecWheel(id) == 9) {
1262  if (tTopo->tecRing(id) == 4) {
1263  meAdcTECWheel9zm_[0]->Fill((*iter).adc());
1264  meStripTECWheel9zm_[0]->Fill((*iter).strip());
1265  }
1266  if (tTopo->tecRing(id) == 5) {
1267  meAdcTECWheel9zm_[1]->Fill((*iter).adc());
1268  meStripTECWheel9zm_[1]->Fill((*iter).strip());
1269  }
1270  if (tTopo->tecRing(id) == 6) {
1271  meAdcTECWheel9zm_[2]->Fill((*iter).adc());
1272  meStripTECWheel9zm_[2]->Fill((*iter).strip());
1273  }
1274  if (tTopo->tecRing(id) == 7) {
1275  meAdcTECWheel9zm_[3]->Fill((*iter).adc());
1276  meStripTECWheel9zm_[3]->Fill((*iter).strip());
1277  }
1278  }
1279  } else {
1280  ++ndigiwheelteczp[tTopo->tecWheel(id) - 1];
1281  if (tTopo->tecWheel(id) == 1) {
1282  if (tTopo->tecRing(id) == 1) {
1283  meAdcTECWheel1zp_[0]->Fill((*iter).adc());
1284  meStripTECWheel1zp_[0]->Fill((*iter).strip());
1285  }
1286  if (tTopo->tecRing(id) == 2) {
1287  meAdcTECWheel1zp_[1]->Fill((*iter).adc());
1288  meStripTECWheel1zp_[1]->Fill((*iter).strip());
1289  }
1290  if (tTopo->tecRing(id) == 3) {
1291  meAdcTECWheel1zp_[2]->Fill((*iter).adc());
1292  meStripTECWheel1zp_[2]->Fill((*iter).strip());
1293  }
1294  if (tTopo->tecRing(id) == 4) {
1295  meAdcTECWheel1zp_[3]->Fill((*iter).adc());
1296  meStripTECWheel1zp_[3]->Fill((*iter).strip());
1297  }
1298  if (tTopo->tecRing(id) == 5) {
1299  meAdcTECWheel1zp_[4]->Fill((*iter).adc());
1300  meStripTECWheel1zp_[4]->Fill((*iter).strip());
1301  }
1302  if (tTopo->tecRing(id) == 6) {
1303  meAdcTECWheel1zp_[5]->Fill((*iter).adc());
1304  meStripTECWheel1zp_[5]->Fill((*iter).strip());
1305  }
1306  if (tTopo->tecRing(id) == 7) {
1307  meAdcTECWheel1zp_[6]->Fill((*iter).adc());
1308  meStripTECWheel1zp_[6]->Fill((*iter).strip());
1309  }
1310  }
1311  if (tTopo->tecWheel(id) == 2) {
1312  if (tTopo->tecRing(id) == 1) {
1313  meAdcTECWheel2zp_[0]->Fill((*iter).adc());
1314  meStripTECWheel2zp_[0]->Fill((*iter).strip());
1315  }
1316  if (tTopo->tecRing(id) == 2) {
1317  meAdcTECWheel2zp_[1]->Fill((*iter).adc());
1318  meStripTECWheel2zp_[1]->Fill((*iter).strip());
1319  }
1320  if (tTopo->tecRing(id) == 3) {
1321  meAdcTECWheel2zp_[2]->Fill((*iter).adc());
1322  meStripTECWheel2zp_[2]->Fill((*iter).strip());
1323  }
1324  if (tTopo->tecRing(id) == 4) {
1325  meAdcTECWheel2zp_[3]->Fill((*iter).adc());
1326  meStripTECWheel2zp_[3]->Fill((*iter).strip());
1327  }
1328  if (tTopo->tecRing(id) == 5) {
1329  meAdcTECWheel2zp_[4]->Fill((*iter).adc());
1330  meStripTECWheel2zp_[4]->Fill((*iter).strip());
1331  }
1332  if (tTopo->tecRing(id) == 6) {
1333  meAdcTECWheel2zp_[5]->Fill((*iter).adc());
1334  meStripTECWheel2zp_[5]->Fill((*iter).strip());
1335  }
1336  if (tTopo->tecRing(id) == 7) {
1337  meAdcTECWheel2zp_[6]->Fill((*iter).adc());
1338  meStripTECWheel2zp_[6]->Fill((*iter).strip());
1339  }
1340  }
1341  if (tTopo->tecWheel(id) == 3) {
1342  if (tTopo->tecRing(id) == 1) {
1343  meAdcTECWheel3zp_[0]->Fill((*iter).adc());
1344  meStripTECWheel3zp_[0]->Fill((*iter).strip());
1345  }
1346  if (tTopo->tecRing(id) == 2) {
1347  meAdcTECWheel3zp_[1]->Fill((*iter).adc());
1348  meStripTECWheel3zp_[1]->Fill((*iter).strip());
1349  }
1350  if (tTopo->tecRing(id) == 3) {
1351  meAdcTECWheel3zp_[2]->Fill((*iter).adc());
1352  meStripTECWheel3zp_[2]->Fill((*iter).strip());
1353  }
1354  if (tTopo->tecRing(id) == 4) {
1355  meAdcTECWheel3zp_[3]->Fill((*iter).adc());
1356  meStripTECWheel3zp_[3]->Fill((*iter).strip());
1357  }
1358  if (tTopo->tecRing(id) == 5) {
1359  meAdcTECWheel3zp_[4]->Fill((*iter).adc());
1360  meStripTECWheel3zp_[4]->Fill((*iter).strip());
1361  }
1362  if (tTopo->tecRing(id) == 6) {
1363  meAdcTECWheel3zp_[5]->Fill((*iter).adc());
1364  meStripTECWheel3zp_[5]->Fill((*iter).strip());
1365  }
1366  if (tTopo->tecRing(id) == 7) {
1367  meAdcTECWheel3zp_[6]->Fill((*iter).adc());
1368  meStripTECWheel3zp_[6]->Fill((*iter).strip());
1369  }
1370  }
1371  if (tTopo->tecWheel(id) == 4) {
1372  if (tTopo->tecRing(id) == 2) {
1373  meAdcTECWheel4zp_[0]->Fill((*iter).adc());
1374  meStripTECWheel4zp_[0]->Fill((*iter).strip());
1375  }
1376  if (tTopo->tecRing(id) == 3) {
1377  meAdcTECWheel4zp_[1]->Fill((*iter).adc());
1378  meStripTECWheel4zp_[1]->Fill((*iter).strip());
1379  }
1380  if (tTopo->tecRing(id) == 4) {
1381  meAdcTECWheel4zp_[2]->Fill((*iter).adc());
1382  meStripTECWheel4zp_[2]->Fill((*iter).strip());
1383  }
1384  if (tTopo->tecRing(id) == 5) {
1385  meAdcTECWheel4zp_[3]->Fill((*iter).adc());
1386  meStripTECWheel4zp_[3]->Fill((*iter).strip());
1387  }
1388  if (tTopo->tecRing(id) == 6) {
1389  meAdcTECWheel4zp_[4]->Fill((*iter).adc());
1390  meStripTECWheel4zp_[4]->Fill((*iter).strip());
1391  }
1392  if (tTopo->tecRing(id) == 7) {
1393  meAdcTECWheel4zp_[5]->Fill((*iter).adc());
1394  meStripTECWheel4zp_[5]->Fill((*iter).strip());
1395  }
1396  }
1397  if (tTopo->tecWheel(id) == 5) {
1398  if (tTopo->tecRing(id) == 2) {
1399  meAdcTECWheel5zp_[0]->Fill((*iter).adc());
1400  meStripTECWheel5zp_[0]->Fill((*iter).strip());
1401  }
1402  if (tTopo->tecRing(id) == 3) {
1403  meAdcTECWheel5zp_[1]->Fill((*iter).adc());
1404  meStripTECWheel5zp_[1]->Fill((*iter).strip());
1405  }
1406  if (tTopo->tecRing(id) == 4) {
1407  meAdcTECWheel5zp_[2]->Fill((*iter).adc());
1408  meStripTECWheel5zp_[2]->Fill((*iter).strip());
1409  }
1410  if (tTopo->tecRing(id) == 5) {
1411  meAdcTECWheel5zp_[3]->Fill((*iter).adc());
1412  meStripTECWheel5zp_[3]->Fill((*iter).strip());
1413  }
1414  if (tTopo->tecRing(id) == 6) {
1415  meAdcTECWheel5zp_[4]->Fill((*iter).adc());
1416  meStripTECWheel5zp_[4]->Fill((*iter).strip());
1417  }
1418  if (tTopo->tecRing(id) == 7) {
1419  meAdcTECWheel5zp_[5]->Fill((*iter).adc());
1420  meStripTECWheel5zp_[5]->Fill((*iter).strip());
1421  }
1422  }
1423  if (tTopo->tecWheel(id) == 6) {
1424  if (tTopo->tecRing(id) == 2) {
1425  meAdcTECWheel6zp_[0]->Fill((*iter).adc());
1426  meStripTECWheel6zp_[0]->Fill((*iter).strip());
1427  }
1428  if (tTopo->tecRing(id) == 3) {
1429  meAdcTECWheel6zp_[1]->Fill((*iter).adc());
1430  meStripTECWheel6zp_[1]->Fill((*iter).strip());
1431  }
1432  if (tTopo->tecRing(id) == 4) {
1433  meAdcTECWheel6zp_[2]->Fill((*iter).adc());
1434  meStripTECWheel6zp_[2]->Fill((*iter).strip());
1435  }
1436  if (tTopo->tecRing(id) == 5) {
1437  meAdcTECWheel6zp_[3]->Fill((*iter).adc());
1438  meStripTECWheel6zp_[3]->Fill((*iter).strip());
1439  }
1440  if (tTopo->tecRing(id) == 6) {
1441  meAdcTECWheel6zp_[4]->Fill((*iter).adc());
1442  meStripTECWheel6zp_[4]->Fill((*iter).strip());
1443  }
1444  if (tTopo->tecRing(id) == 7) {
1445  meAdcTECWheel6zp_[5]->Fill((*iter).adc());
1446  meStripTECWheel6zp_[5]->Fill((*iter).strip());
1447  }
1448  }
1449  if (tTopo->tecWheel(id) == 7) {
1450  if (tTopo->tecRing(id) == 3) {
1451  meAdcTECWheel7zp_[0]->Fill((*iter).adc());
1452  meStripTECWheel7zp_[0]->Fill((*iter).strip());
1453  }
1454  if (tTopo->tecRing(id) == 4) {
1455  meAdcTECWheel7zp_[1]->Fill((*iter).adc());
1456  meStripTECWheel7zp_[1]->Fill((*iter).strip());
1457  }
1458  if (tTopo->tecRing(id) == 5) {
1459  meAdcTECWheel7zp_[2]->Fill((*iter).adc());
1460  meStripTECWheel7zp_[2]->Fill((*iter).strip());
1461  }
1462  if (tTopo->tecRing(id) == 6) {
1463  meAdcTECWheel7zp_[3]->Fill((*iter).adc());
1464  meStripTECWheel7zp_[3]->Fill((*iter).strip());
1465  }
1466  if (tTopo->tecRing(id) == 7) {
1467  meAdcTECWheel7zp_[4]->Fill((*iter).adc());
1468  meStripTECWheel7zp_[4]->Fill((*iter).strip());
1469  }
1470  }
1471  if (tTopo->tecWheel(id) == 8) {
1472  if (tTopo->tecRing(id) == 3) {
1473  meAdcTECWheel8zp_[0]->Fill((*iter).adc());
1474  meStripTECWheel8zp_[0]->Fill((*iter).strip());
1475  }
1476  if (tTopo->tecRing(id) == 4) {
1477  meAdcTECWheel8zp_[1]->Fill((*iter).adc());
1478  meStripTECWheel8zp_[1]->Fill((*iter).strip());
1479  }
1480  if (tTopo->tecRing(id) == 5) {
1481  meAdcTECWheel8zp_[2]->Fill((*iter).adc());
1482  meStripTECWheel8zp_[2]->Fill((*iter).strip());
1483  }
1484  if (tTopo->tecRing(id) == 6) {
1485  meAdcTECWheel8zp_[3]->Fill((*iter).adc());
1486  meStripTECWheel8zp_[3]->Fill((*iter).strip());
1487  }
1488  if (tTopo->tecRing(id) == 7) {
1489  meAdcTECWheel8zp_[4]->Fill((*iter).adc());
1490  meStripTECWheel8zp_[4]->Fill((*iter).strip());
1491  }
1492  }
1493  if (tTopo->tecWheel(id) == 9) {
1494  if (tTopo->tecRing(id) == 4) {
1495  meAdcTECWheel9zp_[0]->Fill((*iter).adc());
1496  meStripTECWheel9zp_[0]->Fill((*iter).strip());
1497  }
1498  if (tTopo->tecRing(id) == 5) {
1499  meAdcTECWheel9zp_[1]->Fill((*iter).adc());
1500  meStripTECWheel9zp_[1]->Fill((*iter).strip());
1501  }
1502  if (tTopo->tecRing(id) == 6) {
1503  meAdcTECWheel9zp_[2]->Fill((*iter).adc());
1504  meStripTECWheel9zp_[2]->Fill((*iter).strip());
1505  }
1506  if (tTopo->tecRing(id) == 7) {
1507  meAdcTECWheel9zp_[3]->Fill((*iter).adc());
1508  meStripTECWheel9zp_[3]->Fill((*iter).strip());
1509  }
1510  }
1511  }
1512  }
1513  }
1514  }
1515 
1516  for (int i = 0; i < 4; i++) {
1517  meNDigiTIBLayerzm_[i]->Fill(ndigilayertibzm[i]);
1518  meNDigiTIBLayerzp_[i]->Fill(ndigilayertibzp[i]);
1519  }
1520 
1521  for (int i = 0; i < 6; i++) {
1522  meNDigiTOBLayerzm_[i]->Fill(ndigilayertobzm[i]);
1523  meNDigiTOBLayerzp_[i]->Fill(ndigilayertobzp[i]);
1524  }
1525 
1526  for (int i = 0; i < 3; i++) {
1527  meNDigiTIDWheelzm_[i]->Fill(ndigiwheeltidzm[i]);
1528  meNDigiTIDWheelzp_[i]->Fill(ndigiwheeltidzp[i]);
1529  }
1530 
1531  for (int i = 0; i < 9; i++) {
1532  meNDigiTECWheelzm_[i]->Fill(ndigiwheelteczm[i]);
1533  meNDigiTECWheelzp_[i]->Fill(ndigiwheelteczp[i]);
1534  }
1535 }
MonitorElement * meAdcTOBLayer5zp_[6]
MonitorElement * meAdcTIBLayer4Extzm_[3]
MonitorElement * meStripTIBLayer4Intzm_[3]
MonitorElement * meAdcTIDWheel3zm_[3]
MonitorElement * meStripTECWheel1zm_[7]
MonitorElement * meAdcTECWheel6zp_[6]
MonitorElement * meStripTECWheel2zm_[7]
MonitorElement * meNDigiTIDWheelzm_[3]
MonitorElement * meAdcTIBLayer2Extzp_[3]
MonitorElement * meAdcTECWheel1zp_[7]
MonitorElement * meStripTECWheel8zp_[5]
MonitorElement * meStripTOBLayer2zm_[6]
MonitorElement * meStripTIBLayer2Extzm_[3]
unsigned int tibLayer(const DetId &id) const
MonitorElement * meStripTECWheel7zp_[5]
MonitorElement * meStripTIDWheel1zp_[3]
unsigned int tidRing(const DetId &id) const
std::string outputFile_
MonitorElement * meAdcTECWheel4zm_[6]
MonitorElement * meAdcTOBLayer4zp_[6]
MonitorElement * meStripTIBLayer4Intzp_[3]
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > edmDetSetVector_SiStripDigi_Token_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:517
MonitorElement * meAdcTIBLayer2Extzm_[3]
MonitorElement * meStripTOBLayer1zp_[6]
MonitorElement * meStripTECWheel9zp_[4]
MonitorElement * meStripTOBLayer3zp_[6]
MonitorElement * meNDigiTECWheelzm_[9]
MonitorElement * meAdcTECWheel9zp_[4]
MonitorElement * meAdcTOBLayer5zm_[6]
unsigned int tecRing(const DetId &id) const
ring id
MonitorElement * meStripTIBLayer2Intzp_[3]
MonitorElement * meAdcTECWheel3zm_[7]
MonitorElement * meStripTOBLayer4zm_[6]
MonitorElement * meStripTECWheel4zp_[6]
#define nullptr
MonitorElement * meNDigiTIBLayerzp_[4]
MonitorElement * meNDigiTOBLayerzp_[6]
MonitorElement * meAdcTIBLayer1Intzp_[3]
MonitorElement * meStripTECWheel5zp_[6]
unsigned int tidWheel(const DetId &id) const
MonitorElement * meAdcTIDWheel2zm_[3]
MonitorElement * meStripTOBLayer4zp_[6]
MonitorElement * meAdcTIBLayer2Intzp_[3]
MonitorElement * meAdcTECWheel8zm_[5]
MonitorElement * meStripTIBLayer3Extzp_[3]
MonitorElement * meAdcTIBLayer2Intzm_[3]
MonitorElement * meAdcTECWheel5zm_[6]
std::vector< unsigned int > tibStringInfo(const DetId &id) const
MonitorElement * meNDigiTOBLayerzm_[6]
MonitorElement * meStripTOBLayer5zp_[6]
MonitorElement * meStripTECWheel3zp_[7]
void Fill(long long x)
MonitorElement * meStripTECWheel6zm_[6]
MonitorElement * meStripTIBLayer3Intzm_[3]
MonitorElement * meAdcTOBLayer2zp_[6]
MonitorElement * meAdcTIDWheel3zp_[3]
MonitorElement * meStripTIBLayer2Intzm_[3]
MonitorElement * meAdcTIBLayer1Extzp_[3]
MonitorElement * meStripTECWheel4zm_[6]
MonitorElement * meStripTIBLayer4Extzm_[3]
MonitorElement * meAdcTOBLayer1zp_[6]
unsigned int tidSide(const DetId &id) const
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:268
std::vector< unsigned int > tobRodInfo(const DetId &id) const
MonitorElement * meAdcTOBLayer4zm_[6]
~SiStripDigiValid() override
MonitorElement * meStripTOBLayer5zm_[6]
MonitorElement * meAdcTECWheel8zp_[5]
MonitorElement * meAdcTIDWheel1zp_[3]
MonitorElement * meAdcTIBLayer1Intzm_[3]
void bookHistograms(DQMStore::IBooker &ibooker, const edm::Run &run, const edm::EventSetup &es) override
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:41
void endJob(void) override
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:106
MonitorElement * meStripTECWheel9zm_[4]
MonitorElement * meAdcTECWheel7zp_[5]
MonitorElement * meAdcTECWheel1zm_[7]
MonitorElement * meStripTIBLayer1Intzp_[3]
#define end
Definition: vmac.h:39
MonitorElement * meStripTIDWheel2zm_[3]
A Digi for the silicon strip detector, containing both strip and adc information, and suitable for st...
Definition: SiStripDigi.h:12
MonitorElement * meStripTOBLayer3zm_[6]
MonitorElement * meStripTIDWheel1zm_[3]
MonitorElement * meAdcTIBLayer3Extzp_[3]
MonitorElement * meStripTIBLayer3Extzm_[3]
MonitorElement * meStripTECWheel7zm_[5]
MonitorElement * meStripTECWheel2zp_[7]
iterator end()
Return the off-the-end iterator.
Definition: DetSetVector.h:361
MonitorElement * meAdcTIBLayer3Intzm_[3]
MonitorElement * meNDigiTIBLayerzm_[4]
DQMStore * dbe_
MonitorElement * meAdcTECWheel3zp_[7]
unsigned int tibModule(const DetId &id) const
MonitorElement * meAdcTIDWheel1zm_[3]
MonitorElement * meAdcTECWheel7zm_[5]
MonitorElement * meAdcTECWheel5zp_[6]
MonitorElement * meAdcTOBLayer1zm_[6]
Definition: DetId.h:18
MonitorElement * meStripTECWheel8zm_[5]
MonitorElement * meStripTECWheel5zm_[6]
MonitorElement * meStripTIBLayer1Intzm_[3]
MonitorElement * meAdcTIBLayer4Intzp_[3]
MonitorElement * meStripTIBLayer1Extzp_[3]
MonitorElement * meStripTIBLayer1Extzm_[3]
MonitorElement * meNDigiTIDWheelzp_[3]
MonitorElement * meAdcTOBLayer3zp_[6]
MonitorElement * meAdcTOBLayer6zm_[6]
SiStripDigiValid(const edm::ParameterSet &ps)
void analyze(const edm::Event &e, const edm::EventSetup &c) override
MonitorElement * meStripTIDWheel3zp_[3]
void save(std::string const &filename, std::string const &path="", std::string const &pattern="", std::string const &rewrite="", uint32_t run=0, uint32_t lumi=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, std::string const &fileupdate="RECREATE")
Definition: DQMStore.cc:2465
MonitorElement * meStripTOBLayer6zp_[6]
MonitorElement * meAdcTOBLayer3zm_[6]
unsigned int tobModule(const DetId &id) const
MonitorElement * meAdcTIBLayer4Intzm_[3]
MonitorElement * meAdcTECWheel2zp_[7]
MonitorElement * meAdcTOBLayer6zp_[6]
MonitorElement * meAdcTIBLayer3Extzm_[3]
MonitorElement * meAdcTIDWheel2zp_[3]
#define begin
Definition: vmac.h:32
HLT enums.
MonitorElement * meStripTOBLayer2zp_[6]
T get() const
Definition: EventSetup.h:71
MonitorElement * meStripTIDWheel2zp_[3]
MonitorElement * meStripTIBLayer4Extzp_[3]
MonitorElement * meStripTOBLayer1zm_[6]
MonitorElement * meAdcTIBLayer1Extzm_[3]
MonitorElement * meStripTECWheel3zm_[7]
MonitorElement * meAdcTOBLayer2zm_[6]
MonitorElement * meAdcTIBLayer4Extzp_[3]
MonitorElement * meStripTECWheel6zp_[6]
iterator begin()
Return an iterator to the first DetSet.
Definition: DetSetVector.h:346
MonitorElement * meStripTOBLayer6zm_[6]
MonitorElement * meNDigiTECWheelzp_[9]
MonitorElement * meAdcTIBLayer3Intzp_[3]
collection_type::const_iterator const_iterator
Definition: DetSet.h:33
collection_type::const_iterator const_iterator
Definition: DetSetVector.h:104
MonitorElement * meAdcTECWheel6zm_[6]
MonitorElement * meStripTECWheel1zp_[7]
unsigned int tecWheel(const DetId &id) const
T const * product() const
Definition: ESHandle.h:86
MonitorElement * meStripTIBLayer3Intzp_[3]
MonitorElement * meAdcTECWheel4zp_[6]
MonitorElement * meAdcTECWheel9zm_[4]
MonitorElement * meStripTIBLayer2Extzp_[3]
unsigned int tobLayer(const DetId &id) const
Definition: Run.h:45
unsigned int tecSide(const DetId &id) const
MonitorElement * meAdcTECWheel2zm_[7]
MonitorElement * meStripTIDWheel3zm_[3]