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_( consumes< edm::DetSetVector<SiStripDigi> >( ps.getParameter<edm::InputTag>( "src" ) ) ) {
29 
30 }
31 
33 }
34 
35 
36 
39 
40  if ( dbe_ ) {
41  ibooker.setCurrentFolder("TrackerDigisV/TrackerDigis/Strip");
42 
43  for(int i = 0 ;i<3 ; i++) {
44  Char_t histo[200];
45  // Z Plus Side
46  sprintf(histo,"adc_tib_layer1_extmodule%d_zp",i+1);
47  meAdcTIBLayer1Extzp_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
48  sprintf(histo,"adc_tib_layer1_intmodule%d_zp",i+1);
49  meAdcTIBLayer1Intzp_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
50  sprintf(histo,"adc_tib_layer2_extmodule%d_zp",i+1);
51  meAdcTIBLayer2Extzp_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
52  sprintf(histo,"adc_tib_layer2_intmodule%d_zp",i+1);
53  meAdcTIBLayer2Intzp_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
54  sprintf(histo,"adc_tib_layer3_extmodule%d_zp",i+1);
55  meAdcTIBLayer3Extzp_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
56  sprintf(histo,"adc_tib_layer3_intmodule%d_zp",i+1);
57  meAdcTIBLayer3Intzp_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
58  sprintf(histo,"adc_tib_layer4_extmodule%d_zp",i+1);
59  meAdcTIBLayer4Extzp_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
60  sprintf(histo,"adc_tib_layer4_intmodule%d_zp",i+1);
61  meAdcTIBLayer4Intzp_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
62  sprintf(histo,"strip_tib_layer1_extmodule%d_zp",i+1);
63  meStripTIBLayer1Extzp_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
64  sprintf(histo,"strip_tib_layer1_intmodule%d_zp",i+1);
65  meStripTIBLayer1Intzp_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
66  sprintf(histo,"strip_tib_layer2_extmodule%d_zp",i+1);
67  meStripTIBLayer2Extzp_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
68  sprintf(histo,"strip_tib_layer2_intmodule%d_zp",i+1);
69  meStripTIBLayer2Intzp_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
70  sprintf(histo,"strip_tib_layer3_extmodule%d_zp",i+1);
71  meStripTIBLayer3Extzp_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
72  sprintf(histo,"strip_tib_layer3_intmodule%d_zp",i+1);
73  meStripTIBLayer3Intzp_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
74  sprintf(histo,"strip_tib_layer4_extmodule%d_zp",i+1);
75  meStripTIBLayer4Extzp_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
76  sprintf(histo,"strip_tib_layer4_intmodule%d_zp",i+1);
77  meStripTIBLayer4Intzp_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
78  // Z Minus Side
79  sprintf(histo,"adc_tib_layer1_extmodule%d_zm",i+1);
80  meAdcTIBLayer1Extzm_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
81  sprintf(histo,"adc_tib_layer1_intmodule%d_zm",i+1);
82  meAdcTIBLayer1Intzm_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
83  sprintf(histo,"adc_tib_layer2_extmodule%d_zm",i+1);
84  meAdcTIBLayer2Extzm_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
85  sprintf(histo,"adc_tib_layer2_intmodule%d_zm",i+1);
86  meAdcTIBLayer2Intzm_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
87  sprintf(histo,"adc_tib_layer3_extmodule%d_zm",i+1);
88  meAdcTIBLayer3Extzm_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
89  sprintf(histo,"adc_tib_layer3_intmodule%d_zm",i+1);
90  meAdcTIBLayer3Intzm_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
91  sprintf(histo,"adc_tib_layer4_extmodule%d_zm",i+1);
92  meAdcTIBLayer4Extzm_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
93  sprintf(histo,"adc_tib_layer4_intmodule%d_zm",i+1);
94  meAdcTIBLayer4Intzm_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
95  sprintf(histo,"strip_tib_layer1_extmodule%d_zm",i+1);
96  meStripTIBLayer1Extzm_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
97  sprintf(histo,"strip_tib_layer1_intmodule%d_zm",i+1);
98  meStripTIBLayer1Intzm_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
99  sprintf(histo,"strip_tib_layer2_extmodule%d_zm",i+1);
100  meStripTIBLayer2Extzm_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
101  sprintf(histo,"strip_tib_layer2_intmodule%d_zm",i+1);
102  meStripTIBLayer2Intzm_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
103  sprintf(histo,"strip_tib_layer3_extmodule%d_zm",i+1);
104  meStripTIBLayer3Extzm_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
105  sprintf(histo,"strip_tib_layer3_intmodule%d_zm",i+1);
106  meStripTIBLayer3Intzm_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
107  sprintf(histo,"strip_tib_layer4_extmodule%d_zm",i+1);
108  meStripTIBLayer4Extzm_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
109  sprintf(histo,"strip_tib_layer4_intmodule%d_zm",i+1);
110  meStripTIBLayer4Intzm_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
111  }
112 
113  for(int i = 0 ;i<6 ; i++) {
114  Char_t histo[200];
115  // Z Plus Side
116  sprintf(histo,"adc_tob_layer1_module%d_zp",i+1);
117  meAdcTOBLayer1zp_[i] = ibooker.book1D(histo,"Digis ADC",10,0.,300.);
118  sprintf(histo,"strip_tob_layer1_module%d_zp",i+1);
119  meStripTOBLayer1zp_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
120  sprintf(histo,"adc_tob_layer2_module%d_zp",i+1);
121  meAdcTOBLayer2zp_[i] = ibooker.book1D(histo,"Digis ADC",10,0.,300.);
122  sprintf(histo,"strip_tob_layer2_module%d_zp",i+1);
123  meStripTOBLayer2zp_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
124  sprintf(histo,"adc_tob_layer3_module%d_zp",i+1);
125  meAdcTOBLayer3zp_[i] = ibooker.book1D(histo,"Digis ADC",10,0.,300.);
126  sprintf(histo,"strip_tob_layer3_module%d_zp",i+1);
127  meStripTOBLayer3zp_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
128  sprintf(histo,"adc_tob_layer4_module%d_zp",i+1);
129  meAdcTOBLayer4zp_[i] = ibooker.book1D(histo,"Digis ADC",10,0.,300.);
130  sprintf(histo,"strip_tob_layer4_module%d_zp",i+1);
131  meStripTOBLayer4zp_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
132  sprintf(histo,"adc_tob_layer5_module%d_zp",i+1);
133  meAdcTOBLayer5zp_[i] = ibooker.book1D(histo,"Digis ADC",10,0.,300.);
134  sprintf(histo,"strip_tob_layer5_module%d_zp",i+1);
135  meStripTOBLayer5zp_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
136  sprintf(histo,"adc_tob_layer6_module%d_zp",i+1);
137  meAdcTOBLayer6zp_[i] = ibooker.book1D(histo,"Digis ADC",10,0.,300.);
138  sprintf(histo,"strip_tob_layer6_module%d_zp",i+1);
139  meStripTOBLayer6zp_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
140  // Z Minus Side
141  sprintf(histo,"adc_tob_layer1_module%d_zm",i+1);
142  meAdcTOBLayer1zm_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
143  sprintf(histo,"strip_tob_layer1_module%d_zm",i+1);
144  meStripTOBLayer1zm_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
145  sprintf(histo,"adc_tob_layer2_module%d_zm",i+1);
146  meAdcTOBLayer2zm_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
147  sprintf(histo,"strip_tob_layer2_module%d_zm",i+1);
148  meStripTOBLayer2zm_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
149  sprintf(histo,"adc_tob_layer3_module%d_zm",i+1);
150  meAdcTOBLayer3zm_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
151  sprintf(histo,"strip_tob_layer3_module%d_zm",i+1);
152  meStripTOBLayer3zm_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
153  sprintf(histo,"adc_tob_layer4_module%d_zm",i+1);
154  meAdcTOBLayer4zm_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
155  sprintf(histo,"strip_tob_layer4_module%d_zm",i+1);
156  meStripTOBLayer4zm_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
157  sprintf(histo,"adc_tob_layer5_module%d_zm",i+1);
158  meAdcTOBLayer5zm_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
159  sprintf(histo,"strip_tob_layer5_module%d_zm",i+1);
160  meStripTOBLayer5zm_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
161  sprintf(histo,"adc_tob_layer6_module%d_zm",i+1);
162  meAdcTOBLayer6zm_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
163  sprintf(histo,"strip_tob_layer6_module%d_zm",i+1);
164  meStripTOBLayer6zm_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
165  }
166 
167  for(int i = 0 ;i<3 ; i++) {
168  Char_t histo[200];
169  // Z Plus Side
170  sprintf(histo,"adc_tid_wheel1_ring%d_zp",i+1);
171  meAdcTIDWheel1zp_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
172  sprintf(histo,"adc_tid_wheel2_ring%d_zp",i+1);
173  meAdcTIDWheel2zp_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
174  sprintf(histo,"adc_tid_wheel3_ring%d_zp",i+1);
175  meAdcTIDWheel3zp_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
176  sprintf(histo,"strip_tid_wheel1_ring%d_zp",i+1);
177  meStripTIDWheel1zp_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
178  sprintf(histo,"strip_tid_wheel2_ring%d_zp",i+1);
179  meStripTIDWheel2zp_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
180  sprintf(histo,"strip_tid_wheel3_ring%d_zp",i+1);
181  meStripTIDWheel3zp_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
182  // Z minus Side
183  sprintf(histo,"adc_tid_wheel1_ring%d_zm",i+1);
184  meAdcTIDWheel1zm_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
185  sprintf(histo,"adc_tid_wheel2_ring%d_zm",i+1);
186  meAdcTIDWheel2zm_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
187  sprintf(histo,"adc_tid_wheel3_ring%d_zm",i+1);
188  meAdcTIDWheel3zm_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
189  sprintf(histo,"strip_tid_wheel1_ring%d_zm",i+1);
190  meStripTIDWheel1zm_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
191  sprintf(histo,"strip_tid_wheel2_ring%d_zm",i+1);
192  meStripTIDWheel2zm_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
193  sprintf(histo,"strip_tid_wheel3_ring%d_zm",i+1);
194  meStripTIDWheel3zm_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
195  }
196 
197  for(int i = 0 ;i<7 ; i++) {
198  Char_t histo[200];
199  // Z Plus Side
200  sprintf(histo,"adc_tec_wheel1_ring%d_zp",i+1);
201  meAdcTECWheel1zp_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
202  sprintf(histo,"adc_tec_wheel2_ring%d_zp",i+1);
203  meAdcTECWheel2zp_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
204  sprintf(histo,"adc_tec_wheel3_ring%d_zp",i+1);
205  meAdcTECWheel3zp_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
206  sprintf(histo,"strip_tec_wheel1_ring%d_zp",i+1);
207  meStripTECWheel1zp_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
208  sprintf(histo,"strip_tec_wheel2_ring%d_zp",i+1);
209  meStripTECWheel2zp_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
210  sprintf(histo,"strip_tec_wheel3_ring%d_zp",i+1);
211  meStripTECWheel3zp_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
212 
213  // Z Minus Side
214  sprintf(histo,"adc_tec_wheel1_ring%d_zm",i+1);
215  meAdcTECWheel1zm_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
216  sprintf(histo,"adc_tec_wheel2_ring%d_zm",i+1);
217  meAdcTECWheel2zm_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
218  sprintf(histo,"adc_tec_wheel3_ring%d_zm",i+1);
219  meAdcTECWheel3zm_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
220  sprintf(histo,"strip_tec_wheel1_ring%d_zm",i+1);
221  meStripTECWheel1zm_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
222  sprintf(histo,"strip_tec_wheel2_ring%d_zm",i+1);
223  meStripTECWheel2zm_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
224  sprintf(histo,"strip_tec_wheel3_ring%d_zm",i+1);
225  meStripTECWheel3zm_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
226  }
227 
228  for(int i = 0 ;i<6 ; i++) {
229  Char_t histo[200];
230  // Z Plus Side
231  sprintf(histo,"adc_tec_wheel4_ring%d_zp",i+1);
232  meAdcTECWheel4zp_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
233  sprintf(histo,"adc_tec_wheel5_ring%d_zp",i+1);
234  meAdcTECWheel5zp_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
235  sprintf(histo,"adc_tec_wheel6_ring%d_zp",i+1);
236  meAdcTECWheel6zp_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
237  sprintf(histo,"strip_tec_wheel4_ring%d_zp",i+1);
238  meStripTECWheel4zp_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
239  sprintf(histo,"strip_tec_wheel5_ring%d_zp",i+1);
240  meStripTECWheel5zp_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
241  sprintf(histo,"strip_tec_wheel6_ring%d_zp",i+1);
242  meStripTECWheel6zp_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
243 
244  // Z Minus Side
245  sprintf(histo,"adc_tec_wheel4_ring%d_zm",i+1);
246  meAdcTECWheel4zm_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
247  sprintf(histo,"adc_tec_wheel5_ring%d_zm",i+1);
248  meAdcTECWheel5zm_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
249  sprintf(histo,"adc_tec_wheel6_ring%d_zm",i+1);
250  meAdcTECWheel6zm_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
251  sprintf(histo,"strip_tec_wheel4_ring%d_zm",i+1);
252  meStripTECWheel4zm_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
253  sprintf(histo,"strip_tec_wheel5_ring%d_zm",i+1);
254  meStripTECWheel5zm_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
255  sprintf(histo,"strip_tec_wheel6_ring%d_zm",i+1);
256  meStripTECWheel6zm_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
257  }
258 
259  for(int i = 0 ;i<5 ; i++) {
260  Char_t histo[200];
261  // Z Plus Side
262  sprintf(histo,"adc_tec_wheel7_ring%d_zp",i+1);
263  meAdcTECWheel7zp_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
264  sprintf(histo,"adc_tec_wheel8_ring%d_zp",i+1);
265  meAdcTECWheel8zp_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
266  sprintf(histo,"strip_tec_wheel7_ring%d_zp",i+1);
267  meStripTECWheel7zp_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
268  sprintf(histo,"strip_tec_wheel8_ring%d_zp",i+1);
269  meStripTECWheel8zp_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
270 
271  // Z Minus Side
272  sprintf(histo,"adc_tec_wheel7_ring%d_zm",i+1);
273  meAdcTECWheel7zm_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
274  sprintf(histo,"adc_tec_wheel8_ring%d_zm",i+1);
275  meAdcTECWheel8zm_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
276  sprintf(histo,"strip_tec_wheel7_ring%d_zm",i+1);
277  meStripTECWheel7zm_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
278  sprintf(histo,"strip_tec_wheel8_ring%d_zm",i+1);
279  meStripTECWheel8zm_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
280  }
281 
282  for(int i = 0 ;i<4 ; i++) {
283  Char_t histo[200];
284  // Z Plus Side
285  sprintf(histo,"adc_tec_wheel9_ring%d_zp",i+1);
286  meAdcTECWheel9zp_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
287  sprintf(histo,"strip_tec_wheel9_ring%d_zp",i+1);
288  meStripTECWheel9zp_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
289 
290  // Z Minus Side
291  sprintf(histo,"adc_tec_wheel9_ring%d_zm",i+1);
292  meAdcTECWheel9zm_[i] = ibooker.book1D(histo,"Digis ADC",50,0.,300.);
293  sprintf(histo,"strip_tec_wheel9_ring%d_zm",i+1);
294  meStripTECWheel9zm_[i] = ibooker.book1D(histo,"Digis Strip Num.",200,0.,800.);
295  }
296 
297  for(int i = 0 ;i<4 ; i++) {
298  Char_t histo[200];
299  sprintf(histo,"ndigi_tib_layer_%d_zm",i+1);
300  meNDigiTIBLayerzm_[i] = ibooker.book1D(histo, "Digi Multiplicity",100,0.,500.);
301  sprintf(histo,"ndigi_tib_layer_%d_zp",i+1);
302  meNDigiTIBLayerzp_[i] = ibooker.book1D(histo, "Digi Multiplicity",100,0.,500.);
303  }
304 
305  for(int i = 0 ;i<6 ; i++) {
306  Char_t histo[200];
307  sprintf(histo,"ndigi_tob_layer_%d_zm",i+1);
308  meNDigiTOBLayerzm_[i] = ibooker.book1D(histo, "Digi Multiplicity",100,0.,500.);
309  sprintf(histo,"ndigi_tob_layer_%d_zp",i+1);
310  meNDigiTOBLayerzp_[i] = ibooker.book1D(histo, "Digi Multiplicity",100,0.,500.);
311  }
312 
313  for(int i = 0 ;i<3 ; i++) {
314  Char_t histo[200];
315  sprintf(histo,"ndigi_tid_wheel_%d_zm",i+1);
316  meNDigiTIDWheelzm_[i] = ibooker.book1D(histo, "Digi Multiplicity",100,0.,500.);
317  sprintf(histo,"ndigi_tid_wheel_%d_zp",i+1);
318  meNDigiTIDWheelzp_[i] = ibooker.book1D(histo, "Digi Multiplicity",100,0.,500.);
319  }
320 
321  for(int i = 0 ;i<9 ; i++) {
322  Char_t histo[200];
323  sprintf(histo,"ndigi_tec_wheel_%d_zm",i+1);
324  meNDigiTECWheelzm_[i] = ibooker.book1D(histo, "Digi Multiplicity",100,0.,500.);
325  sprintf(histo,"ndigi_tec_wheel_%d_zp",i+1);
326  meNDigiTECWheelzp_[i] = ibooker.book1D(histo, "Digi Multiplicity",100,0.,500.);
327  }
328  }
329 }
330 
332  if ( runStandalone && !outputFile_.empty() && dbe_ ){ dbe_->save(outputFile_);}
333 
334 }
335 
336 
338  //Retrieve tracker topology from geometry
339  edm::ESHandle<TrackerTopology> tTopoHandle;
340  c.get<TrackerTopologyRcd>().get(tTopoHandle);
341  const TrackerTopology* const tTopo = tTopoHandle.product();
342 
343 
344 
345  int ndigilayertibzp[4];
346  int ndigilayertibzm[4];
347 
348  for( int i = 0; i< 4; i++ ) {
349  ndigilayertibzp[i] = 0;
350  ndigilayertibzm[i] = 0;
351  }
352 
353  int ndigilayertobzp[6];
354  int ndigilayertobzm[6];
355 
356  for( int i = 0; i< 6; i++ ) {
357  ndigilayertobzp[i] = 0;
358  ndigilayertobzm[i] = 0;
359  }
360 
361  int ndigiwheeltidzp[3];
362  int ndigiwheeltidzm[3];
363 
364  for( int i = 0; i< 3; i++ ) {
365  ndigiwheeltidzp[i] = 0;
366  ndigiwheeltidzm[i] = 0;
367  }
368 
369  int ndigiwheelteczp[9];
370  int ndigiwheelteczm[9];
371 
372  for( int i = 0; i< 9; i++ ) {
373  ndigiwheelteczp[i] = 0;
374  ndigiwheelteczm[i] = 0;
375  }
376 
377 
378 
379  //LogInfo("EventInfo") << " Run = " << e.id().run() << " Event = " << e.id().event();
381  c.get<TrackerDigiGeometryRecord>().get( tracker );
382 
383  std::string digiProducer = "siStripDigis";
386  edm::DetSetVector<SiStripDigi>::const_iterator DSViter = stripDigis->begin();
387  for( ; DSViter != stripDigis->end(); DSViter++) {
388  unsigned int id = DSViter->id;
389  DetId detId(id);
393 
394  if(detId.subdetId()==StripSubdetector::TIB){
395 
396  for ( iter = begin ; iter != end; iter++ ) { // loop digis
397  if( tTopo->tibStringInfo(id)[0] == 1) {
398  ++ndigilayertibzm[tTopo->tibLayer(id)-1];
399  if( tTopo->tibLayer(id) == 1 ) {
400  if ( tTopo->tibStringInfo(id)[1] == 1 ) {
401  if( tTopo->tibModule(id) == 1 ) { meAdcTIBLayer1Intzm_[0] -> Fill((*iter).adc()); meStripTIBLayer1Intzm_[0] ->Fill((*iter).strip()); }
402  if( tTopo->tibModule(id) == 2 ) { meAdcTIBLayer1Intzm_[1] -> Fill((*iter).adc()); meStripTIBLayer1Intzm_[1] ->Fill((*iter).strip()); }
403  if( tTopo->tibModule(id) == 3 ) { meAdcTIBLayer1Intzm_[2] -> Fill((*iter).adc()); meStripTIBLayer1Intzm_[2] ->Fill((*iter).strip()); }
404  }else {
405  if( tTopo->tibModule(id) == 1 ) { meAdcTIBLayer1Extzm_[0] -> Fill((*iter).adc()); meStripTIBLayer1Extzm_[0] ->Fill((*iter).strip()); }
406  if( tTopo->tibModule(id) == 2 ) { meAdcTIBLayer1Extzm_[1] -> Fill((*iter).adc()); meStripTIBLayer1Extzm_[1] ->Fill((*iter).strip()); }
407  if( tTopo->tibModule(id) == 3 ) { meAdcTIBLayer1Extzm_[2] -> Fill((*iter).adc()); meStripTIBLayer1Extzm_[2] ->Fill((*iter).strip()); }
408  }
409  }
410  if( tTopo->tibLayer(id) == 2 ) {
411  if ( tTopo->tibStringInfo(id)[1] == 1 ) {
412  if( tTopo->tibModule(id) == 1 ) { meAdcTIBLayer2Intzm_[0] -> Fill((*iter).adc()); meStripTIBLayer2Intzm_[0] ->Fill((*iter).strip()); }
413  if( tTopo->tibModule(id) == 2 ) { meAdcTIBLayer2Intzm_[1] -> Fill((*iter).adc()); meStripTIBLayer2Intzm_[1] ->Fill((*iter).strip()); }
414  if( tTopo->tibModule(id) == 3 ) { meAdcTIBLayer2Intzm_[2] -> Fill((*iter).adc()); meStripTIBLayer2Intzm_[2] ->Fill((*iter).strip()); }
415  }else {
416  if( tTopo->tibModule(id) == 1 ) { meAdcTIBLayer2Extzm_[0] -> Fill((*iter).adc()); meStripTIBLayer2Extzm_[0] ->Fill((*iter).strip()); }
417  if( tTopo->tibModule(id) == 2 ) { meAdcTIBLayer2Extzm_[1] -> Fill((*iter).adc()); meStripTIBLayer2Extzm_[1] ->Fill((*iter).strip()); }
418  if( tTopo->tibModule(id) == 3 ) { meAdcTIBLayer2Extzm_[2] -> Fill((*iter).adc()); meStripTIBLayer2Extzm_[2] ->Fill((*iter).strip()); }
419  }
420  }
421  if( tTopo->tibLayer(id) == 3 ) {
422  if ( tTopo->tibStringInfo(id)[1] == 1 ) {
423  if( tTopo->tibModule(id) == 1 ) { meAdcTIBLayer3Intzm_[0] -> Fill((*iter).adc()); meStripTIBLayer3Intzm_[0] ->Fill((*iter).strip()); }
424  if( tTopo->tibModule(id) == 2 ) { meAdcTIBLayer3Intzm_[1] -> Fill((*iter).adc()); meStripTIBLayer3Intzm_[1] ->Fill((*iter).strip()); }
425  if( tTopo->tibModule(id) == 3 ) { meAdcTIBLayer3Intzm_[2] -> Fill((*iter).adc()); meStripTIBLayer3Intzm_[2] ->Fill((*iter).strip()); }
426  }else {
427  if( tTopo->tibModule(id) == 1 ) { meAdcTIBLayer3Extzm_[0] -> Fill((*iter).adc()); meStripTIBLayer3Extzm_[0] ->Fill((*iter).strip()); }
428  if( tTopo->tibModule(id) == 2 ) { meAdcTIBLayer3Extzm_[1] -> Fill((*iter).adc()); meStripTIBLayer3Extzm_[1] ->Fill((*iter).strip()); }
429  if( tTopo->tibModule(id) == 3 ) { meAdcTIBLayer3Extzm_[2] -> Fill((*iter).adc()); meStripTIBLayer3Extzm_[2] ->Fill((*iter).strip()); }
430  }
431  }
432  if( tTopo->tibLayer(id) == 4 ) {
433  if ( tTopo->tibStringInfo(id)[1] == 1 ) {
434  if( tTopo->tibModule(id) == 1 ) { meAdcTIBLayer4Intzm_[0] -> Fill((*iter).adc()); meStripTIBLayer4Intzm_[0] ->Fill((*iter).strip()); }
435  if( tTopo->tibModule(id) == 2 ) { meAdcTIBLayer4Intzm_[1] -> Fill((*iter).adc()); meStripTIBLayer4Intzm_[1] ->Fill((*iter).strip()); }
436  if( tTopo->tibModule(id) == 3 ) { meAdcTIBLayer4Intzm_[2] -> Fill((*iter).adc()); meStripTIBLayer4Intzm_[2] ->Fill((*iter).strip()); }
437  }else {
438  if( tTopo->tibModule(id) == 1 ) { meAdcTIBLayer4Extzm_[0] -> Fill((*iter).adc()); meStripTIBLayer4Extzm_[0] ->Fill((*iter).strip()); }
439  if( tTopo->tibModule(id) == 2 ) { meAdcTIBLayer4Extzm_[1] -> Fill((*iter).adc()); meStripTIBLayer4Extzm_[1] ->Fill((*iter).strip()); }
440  if( tTopo->tibModule(id) == 3 ) { meAdcTIBLayer4Extzm_[2] -> Fill((*iter).adc()); meStripTIBLayer4Extzm_[2] ->Fill((*iter).strip()); }
441  }
442  }
443  }else {
444  ++ndigilayertibzp[tTopo->tibLayer(id)-1];
445  if( tTopo->tibLayer(id) == 1 ) {
446  if ( tTopo->tibStringInfo(id)[1] == 1 ) {
447  if( tTopo->tibModule(id) == 1 ) { meAdcTIBLayer1Intzp_[0] -> Fill((*iter).adc()); meStripTIBLayer1Intzp_[0] ->Fill((*iter).strip()); }
448  if( tTopo->tibModule(id) == 2 ) { meAdcTIBLayer1Intzp_[1] -> Fill((*iter).adc()); meStripTIBLayer1Intzp_[1] ->Fill((*iter).strip()); }
449  if( tTopo->tibModule(id) == 3 ) { meAdcTIBLayer1Intzp_[2] -> Fill((*iter).adc()); meStripTIBLayer1Intzp_[2] ->Fill((*iter).strip()); }
450  }else {
451  if( tTopo->tibModule(id) == 1 ) { meAdcTIBLayer1Extzp_[0] -> Fill((*iter).adc()); meStripTIBLayer1Extzp_[0] ->Fill((*iter).strip()); }
452  if( tTopo->tibModule(id) == 2 ) { meAdcTIBLayer1Extzp_[1] -> Fill((*iter).adc()); meStripTIBLayer1Extzp_[1] ->Fill((*iter).strip()); }
453  if( tTopo->tibModule(id) == 3 ) { meAdcTIBLayer1Extzp_[2] -> Fill((*iter).adc()); meStripTIBLayer1Extzp_[2] ->Fill((*iter).strip()); }
454  }
455  }
456  if( tTopo->tibLayer(id) == 2 ) {
457  if ( tTopo->tibStringInfo(id)[1] == 1 ) {
458  if( tTopo->tibModule(id) == 1 ) { meAdcTIBLayer2Intzp_[0] -> Fill((*iter).adc()); meStripTIBLayer2Intzp_[0] ->Fill((*iter).strip()); }
459  if( tTopo->tibModule(id) == 2 ) { meAdcTIBLayer2Intzp_[1] -> Fill((*iter).adc()); meStripTIBLayer2Intzp_[1] ->Fill((*iter).strip()); }
460  if( tTopo->tibModule(id) == 3 ) { meAdcTIBLayer2Intzp_[2] -> Fill((*iter).adc()); meStripTIBLayer2Intzp_[2] ->Fill((*iter).strip()); }
461  }else {
462  if( tTopo->tibModule(id) == 1 ) { meAdcTIBLayer2Extzp_[0] -> Fill((*iter).adc()); meStripTIBLayer2Extzp_[0] ->Fill((*iter).strip()); }
463  if( tTopo->tibModule(id) == 2 ) { meAdcTIBLayer2Extzp_[1] -> Fill((*iter).adc()); meStripTIBLayer2Extzp_[1] ->Fill((*iter).strip()); }
464  if( tTopo->tibModule(id) == 3 ) { meAdcTIBLayer2Extzp_[2] -> Fill((*iter).adc()); meStripTIBLayer2Extzp_[2] ->Fill((*iter).strip()); }
465  }
466  }
467  if( tTopo->tibLayer(id) == 3 ) {
468  if ( tTopo->tibStringInfo(id)[1] == 1 ) {
469  if( tTopo->tibModule(id) == 1 ) { meAdcTIBLayer3Intzp_[0] -> Fill((*iter).adc()); meStripTIBLayer3Intzp_[0] ->Fill((*iter).strip()); }
470  if( tTopo->tibModule(id) == 2 ) { meAdcTIBLayer3Intzp_[1] -> Fill((*iter).adc()); meStripTIBLayer3Intzp_[1] ->Fill((*iter).strip()); }
471  if( tTopo->tibModule(id) == 3 ) { meAdcTIBLayer3Intzp_[2] -> Fill((*iter).adc()); meStripTIBLayer3Intzp_[2] ->Fill((*iter).strip()); }
472  }else {
473  if( tTopo->tibModule(id) == 1 ) { meAdcTIBLayer3Extzp_[0] -> Fill((*iter).adc()); meStripTIBLayer3Extzp_[0] ->Fill((*iter).strip()); }
474  if( tTopo->tibModule(id) == 2 ) { meAdcTIBLayer3Extzp_[1] -> Fill((*iter).adc()); meStripTIBLayer3Extzp_[1] ->Fill((*iter).strip()); }
475  if( tTopo->tibModule(id) == 3 ) { meAdcTIBLayer3Extzp_[2] -> Fill((*iter).adc()); meStripTIBLayer3Extzp_[2] ->Fill((*iter).strip()); }
476  }
477  }
478  if( tTopo->tibLayer(id) == 4 ) {
479  if ( tTopo->tibStringInfo(id)[1] == 1) {
480  if( tTopo->tibModule(id) == 1 ) { meAdcTIBLayer4Intzp_[0] -> Fill((*iter).adc()); meStripTIBLayer4Intzp_[0] ->Fill((*iter).strip()); }
481  if( tTopo->tibModule(id) == 2 ) { meAdcTIBLayer4Intzp_[1] -> Fill((*iter).adc()); meStripTIBLayer4Intzp_[1] ->Fill((*iter).strip()); }
482  if( tTopo->tibModule(id) == 3 ) { meAdcTIBLayer4Intzp_[2] -> Fill((*iter).adc()); meStripTIBLayer4Intzp_[2] ->Fill((*iter).strip()); }
483  }else {
484  if( tTopo->tibModule(id) == 1 ) { meAdcTIBLayer4Extzp_[0] -> Fill((*iter).adc()); meStripTIBLayer4Extzp_[0] ->Fill((*iter).strip()); }
485  if( tTopo->tibModule(id) == 2 ) { meAdcTIBLayer4Extzp_[1] -> Fill((*iter).adc()); meStripTIBLayer4Extzp_[1] ->Fill((*iter).strip()); }
486  if( tTopo->tibModule(id) == 3 ) { meAdcTIBLayer4Extzp_[2] -> Fill((*iter).adc()); meStripTIBLayer4Extzp_[2] ->Fill((*iter).strip()); }
487  }
488  }
489 
490  }
491  }
492  }
493  if(detId.subdetId()==StripSubdetector::TOB){
494 
495  for ( iter = begin ; iter != end; iter++ ) { // loop digis
496  if( tTopo->tobRodInfo(id)[0] == 1) {
497  ++ndigilayertobzm[tTopo->tobLayer(id)-1];
498  if( tTopo->tobLayer(id) == 1 ) {
499  if ( tTopo->tobModule(id) == 1 ) { meAdcTOBLayer1zm_[0] -> Fill((*iter).adc()); meStripTOBLayer1zm_[0] ->Fill((*iter).strip()); }
500  if ( tTopo->tobModule(id) == 2 ) { meAdcTOBLayer1zm_[1] -> Fill((*iter).adc()); meStripTOBLayer1zm_[1] ->Fill((*iter).strip()); }
501  if ( tTopo->tobModule(id) == 3 ) { meAdcTOBLayer1zm_[2] -> Fill((*iter).adc()); meStripTOBLayer1zm_[2] ->Fill((*iter).strip()); }
502  if ( tTopo->tobModule(id) == 4 ) { meAdcTOBLayer1zm_[3] -> Fill((*iter).adc()); meStripTOBLayer1zm_[3] ->Fill((*iter).strip()); }
503  if ( tTopo->tobModule(id) == 5 ) { meAdcTOBLayer1zm_[4] -> Fill((*iter).adc()); meStripTOBLayer1zm_[4] ->Fill((*iter).strip()); }
504  if ( tTopo->tobModule(id) == 6 ) { meAdcTOBLayer1zm_[5] -> Fill((*iter).adc()); meStripTOBLayer1zm_[5] ->Fill((*iter).strip()); }
505  }
506  if( tTopo->tobLayer(id) == 2 ) {
507  if ( tTopo->tobModule(id) == 1 ) { meAdcTOBLayer2zm_[0] -> Fill((*iter).adc()); meStripTOBLayer2zm_[0] ->Fill((*iter).strip()); }
508  if ( tTopo->tobModule(id) == 2 ) { meAdcTOBLayer2zm_[1] -> Fill((*iter).adc()); meStripTOBLayer2zm_[1] ->Fill((*iter).strip()); }
509  if ( tTopo->tobModule(id) == 3 ) { meAdcTOBLayer2zm_[2] -> Fill((*iter).adc()); meStripTOBLayer2zm_[2] ->Fill((*iter).strip()); }
510  if ( tTopo->tobModule(id) == 4 ) { meAdcTOBLayer2zm_[3] -> Fill((*iter).adc()); meStripTOBLayer2zm_[3] ->Fill((*iter).strip()); }
511  if ( tTopo->tobModule(id) == 5 ) { meAdcTOBLayer2zm_[4] -> Fill((*iter).adc()); meStripTOBLayer2zm_[4] ->Fill((*iter).strip()); }
512  if ( tTopo->tobModule(id) == 6 ) { meAdcTOBLayer2zm_[5] -> Fill((*iter).adc()); meStripTOBLayer2zm_[5] ->Fill((*iter).strip()); }
513  }
514  if( tTopo->tobLayer(id) == 3 ) {
515  if ( tTopo->tobModule(id) == 1 ) { meAdcTOBLayer3zm_[0] -> Fill((*iter).adc()); meStripTOBLayer3zm_[0] ->Fill((*iter).strip()); }
516  if ( tTopo->tobModule(id) == 2 ) { meAdcTOBLayer3zm_[1] -> Fill((*iter).adc()); meStripTOBLayer3zm_[1] ->Fill((*iter).strip()); }
517  if ( tTopo->tobModule(id) == 3 ) { meAdcTOBLayer3zm_[2] -> Fill((*iter).adc()); meStripTOBLayer3zm_[2] ->Fill((*iter).strip()); }
518  if ( tTopo->tobModule(id) == 4 ) { meAdcTOBLayer3zm_[3] -> Fill((*iter).adc()); meStripTOBLayer3zm_[3] ->Fill((*iter).strip()); }
519  if ( tTopo->tobModule(id) == 5 ) { meAdcTOBLayer3zm_[4] -> Fill((*iter).adc()); meStripTOBLayer3zm_[4] ->Fill((*iter).strip()); }
520  if ( tTopo->tobModule(id) == 6 ) { meAdcTOBLayer3zm_[5] -> Fill((*iter).adc()); meStripTOBLayer3zm_[5] ->Fill((*iter).strip()); }
521  }
522  if( tTopo->tobLayer(id) == 4 ) {
523  if ( tTopo->tobModule(id) == 1 ) { meAdcTOBLayer4zm_[0] -> Fill((*iter).adc()); meStripTOBLayer4zm_[0] ->Fill((*iter).strip()); }
524  if ( tTopo->tobModule(id) == 2 ) { meAdcTOBLayer4zm_[1] -> Fill((*iter).adc()); meStripTOBLayer4zm_[1] ->Fill((*iter).strip()); }
525  if ( tTopo->tobModule(id) == 3 ) { meAdcTOBLayer4zm_[2] -> Fill((*iter).adc()); meStripTOBLayer4zm_[2] ->Fill((*iter).strip()); }
526  if ( tTopo->tobModule(id) == 4 ) { meAdcTOBLayer4zm_[3] -> Fill((*iter).adc()); meStripTOBLayer4zm_[3] ->Fill((*iter).strip()); }
527  if ( tTopo->tobModule(id) == 5 ) { meAdcTOBLayer4zm_[4] -> Fill((*iter).adc()); meStripTOBLayer4zm_[4] ->Fill((*iter).strip()); }
528  if ( tTopo->tobModule(id) == 6 ) { meAdcTOBLayer4zm_[5] -> Fill((*iter).adc()); meStripTOBLayer4zm_[5] ->Fill((*iter).strip()); }
529  }
530  if( tTopo->tobLayer(id) == 5 ) {
531  if ( tTopo->tobModule(id) == 1 ) { meAdcTOBLayer5zm_[0] -> Fill((*iter).adc()); meStripTOBLayer5zm_[0] ->Fill((*iter).strip()); }
532  if ( tTopo->tobModule(id) == 2 ) { meAdcTOBLayer5zm_[1] -> Fill((*iter).adc()); meStripTOBLayer5zm_[1] ->Fill((*iter).strip()); }
533  if ( tTopo->tobModule(id) == 3 ) { meAdcTOBLayer5zm_[2] -> Fill((*iter).adc()); meStripTOBLayer5zm_[2] ->Fill((*iter).strip()); }
534  if ( tTopo->tobModule(id) == 4 ) { meAdcTOBLayer5zm_[3] -> Fill((*iter).adc()); meStripTOBLayer5zm_[3] ->Fill((*iter).strip()); }
535  if ( tTopo->tobModule(id) == 5 ) { meAdcTOBLayer5zm_[4] -> Fill((*iter).adc()); meStripTOBLayer5zm_[4] ->Fill((*iter).strip()); }
536  if ( tTopo->tobModule(id) == 6 ) { meAdcTOBLayer5zm_[5] -> Fill((*iter).adc()); meStripTOBLayer5zm_[5] ->Fill((*iter).strip()); }
537  }
538  if( tTopo->tobLayer(id) == 6 ) {
539  if ( tTopo->tobModule(id) == 1 ) { meAdcTOBLayer6zm_[0] -> Fill((*iter).adc()); meStripTOBLayer6zm_[0] ->Fill((*iter).strip()); }
540  if ( tTopo->tobModule(id) == 2 ) { meAdcTOBLayer6zm_[1] -> Fill((*iter).adc()); meStripTOBLayer6zm_[1] ->Fill((*iter).strip()); }
541  if ( tTopo->tobModule(id) == 3 ) { meAdcTOBLayer6zm_[2] -> Fill((*iter).adc()); meStripTOBLayer6zm_[2] ->Fill((*iter).strip()); }
542  if ( tTopo->tobModule(id) == 4 ) { meAdcTOBLayer6zm_[3] -> Fill((*iter).adc()); meStripTOBLayer6zm_[3] ->Fill((*iter).strip()); }
543  if ( tTopo->tobModule(id) == 5 ) { meAdcTOBLayer6zm_[4] -> Fill((*iter).adc()); meStripTOBLayer6zm_[4] ->Fill((*iter).strip()); }
544  if ( tTopo->tobModule(id) == 6 ) { meAdcTOBLayer6zm_[5] -> Fill((*iter).adc()); meStripTOBLayer6zm_[5] ->Fill((*iter).strip()); }
545  }
546 
547  }else {
548  ++ndigilayertobzp[tTopo->tobLayer(id)-1];
549  if( tTopo->tobLayer(id) == 1 ) {
550  if ( tTopo->tobModule(id) == 1 ) { meAdcTOBLayer1zp_[0] -> Fill((*iter).adc()); meStripTOBLayer1zp_[0] ->Fill((*iter).strip()); }
551  if ( tTopo->tobModule(id) == 2 ) { meAdcTOBLayer1zp_[1] -> Fill((*iter).adc()); meStripTOBLayer1zp_[1] ->Fill((*iter).strip()); }
552  if ( tTopo->tobModule(id) == 3 ) { meAdcTOBLayer1zp_[2] -> Fill((*iter).adc()); meStripTOBLayer1zp_[2] ->Fill((*iter).strip()); }
553  if ( tTopo->tobModule(id) == 4 ) { meAdcTOBLayer1zp_[3] -> Fill((*iter).adc()); meStripTOBLayer1zp_[3] ->Fill((*iter).strip()); }
554  if ( tTopo->tobModule(id) == 5 ) { meAdcTOBLayer1zp_[4] -> Fill((*iter).adc()); meStripTOBLayer1zp_[4] ->Fill((*iter).strip()); }
555  if ( tTopo->tobModule(id) == 6 ) { meAdcTOBLayer1zp_[5] -> Fill((*iter).adc()); meStripTOBLayer1zp_[5] ->Fill((*iter).strip()); }
556  }
557  if( tTopo->tobLayer(id) == 2 ) {
558  if ( tTopo->tobModule(id) == 1 ) { meAdcTOBLayer2zp_[0] -> Fill((*iter).adc()); meStripTOBLayer2zp_[0] ->Fill((*iter).strip()); }
559  if ( tTopo->tobModule(id) == 2 ) { meAdcTOBLayer2zp_[1] -> Fill((*iter).adc()); meStripTOBLayer2zp_[1] ->Fill((*iter).strip()); }
560  if ( tTopo->tobModule(id) == 3 ) { meAdcTOBLayer2zp_[2] -> Fill((*iter).adc()); meStripTOBLayer2zp_[2] ->Fill((*iter).strip()); }
561  if ( tTopo->tobModule(id) == 4 ) { meAdcTOBLayer2zp_[3] -> Fill((*iter).adc()); meStripTOBLayer2zp_[3] ->Fill((*iter).strip()); }
562  if ( tTopo->tobModule(id) == 5 ) { meAdcTOBLayer2zp_[4] -> Fill((*iter).adc()); meStripTOBLayer2zp_[4] ->Fill((*iter).strip()); }
563  if ( tTopo->tobModule(id) == 6 ) { meAdcTOBLayer2zp_[5] -> Fill((*iter).adc()); meStripTOBLayer2zp_[5] ->Fill((*iter).strip()); }
564  }
565  if( tTopo->tobLayer(id) == 3 ) {
566  if ( tTopo->tobModule(id) == 1 ) { meAdcTOBLayer3zp_[0] -> Fill((*iter).adc()); meStripTOBLayer3zp_[0] ->Fill((*iter).strip()); }
567  if ( tTopo->tobModule(id) == 2 ) { meAdcTOBLayer3zp_[1] -> Fill((*iter).adc()); meStripTOBLayer3zp_[1] ->Fill((*iter).strip()); }
568  if ( tTopo->tobModule(id) == 3 ) { meAdcTOBLayer3zp_[2] -> Fill((*iter).adc()); meStripTOBLayer3zp_[2] ->Fill((*iter).strip()); }
569  if ( tTopo->tobModule(id) == 4 ) { meAdcTOBLayer3zp_[3] -> Fill((*iter).adc()); meStripTOBLayer3zp_[3] ->Fill((*iter).strip()); }
570  if ( tTopo->tobModule(id) == 5 ) { meAdcTOBLayer3zp_[4] -> Fill((*iter).adc()); meStripTOBLayer3zp_[4] ->Fill((*iter).strip()); }
571  if ( tTopo->tobModule(id) == 6 ) { meAdcTOBLayer3zp_[5] -> Fill((*iter).adc()); meStripTOBLayer3zp_[5] ->Fill((*iter).strip()); }
572  }
573  if( tTopo->tobLayer(id) == 4 ) {
574  if ( tTopo->tobModule(id) == 1 ) { meAdcTOBLayer4zp_[0] -> Fill((*iter).adc()); meStripTOBLayer4zp_[0] ->Fill((*iter).strip()); }
575  if ( tTopo->tobModule(id) == 2 ) { meAdcTOBLayer4zp_[1] -> Fill((*iter).adc()); meStripTOBLayer4zp_[1] ->Fill((*iter).strip()); }
576  if ( tTopo->tobModule(id) == 3 ) { meAdcTOBLayer4zp_[2] -> Fill((*iter).adc()); meStripTOBLayer4zp_[2] ->Fill((*iter).strip()); }
577  if ( tTopo->tobModule(id) == 4 ) { meAdcTOBLayer4zp_[3] -> Fill((*iter).adc()); meStripTOBLayer4zp_[3] ->Fill((*iter).strip()); }
578  if ( tTopo->tobModule(id) == 5 ) { meAdcTOBLayer4zp_[4] -> Fill((*iter).adc()); meStripTOBLayer4zp_[4] ->Fill((*iter).strip()); }
579  if ( tTopo->tobModule(id) == 6 ) { meAdcTOBLayer4zp_[5] -> Fill((*iter).adc()); meStripTOBLayer4zp_[5] ->Fill((*iter).strip()); }
580  }
581  if( tTopo->tobLayer(id) == 5 ) {
582  if ( tTopo->tobModule(id) == 1 ) { meAdcTOBLayer5zp_[0] -> Fill((*iter).adc()); meStripTOBLayer5zp_[0] ->Fill((*iter).strip()); }
583  if ( tTopo->tobModule(id) == 2 ) { meAdcTOBLayer5zp_[1] -> Fill((*iter).adc()); meStripTOBLayer5zp_[1] ->Fill((*iter).strip()); }
584  if ( tTopo->tobModule(id) == 3 ) { meAdcTOBLayer5zp_[2] -> Fill((*iter).adc()); meStripTOBLayer5zp_[2] ->Fill((*iter).strip()); }
585  if ( tTopo->tobModule(id) == 4 ) { meAdcTOBLayer5zp_[3] -> Fill((*iter).adc()); meStripTOBLayer5zp_[3] ->Fill((*iter).strip()); }
586  if ( tTopo->tobModule(id) == 5 ) { meAdcTOBLayer5zp_[4] -> Fill((*iter).adc()); meStripTOBLayer5zp_[4] ->Fill((*iter).strip()); }
587  if ( tTopo->tobModule(id) == 6 ) { meAdcTOBLayer5zp_[5] -> Fill((*iter).adc()); meStripTOBLayer5zp_[5] ->Fill((*iter).strip()); }
588  }
589  if( tTopo->tobLayer(id) == 6 ) {
590  if ( tTopo->tobModule(id) == 1 ) { meAdcTOBLayer6zp_[0] -> Fill((*iter).adc()); meStripTOBLayer6zp_[0] ->Fill((*iter).strip()); }
591  if ( tTopo->tobModule(id) == 2 ) { meAdcTOBLayer6zp_[1] -> Fill((*iter).adc()); meStripTOBLayer6zp_[1] ->Fill((*iter).strip()); }
592  if ( tTopo->tobModule(id) == 3 ) { meAdcTOBLayer6zp_[2] -> Fill((*iter).adc()); meStripTOBLayer6zp_[2] ->Fill((*iter).strip()); }
593  if ( tTopo->tobModule(id) == 4 ) { meAdcTOBLayer6zp_[3] -> Fill((*iter).adc()); meStripTOBLayer6zp_[3] ->Fill((*iter).strip()); }
594  if ( tTopo->tobModule(id) == 5 ) { meAdcTOBLayer6zp_[4] -> Fill((*iter).adc()); meStripTOBLayer6zp_[4] ->Fill((*iter).strip()); }
595  if ( tTopo->tobModule(id) == 6 ) { meAdcTOBLayer6zp_[5] -> Fill((*iter).adc()); meStripTOBLayer6zp_[5] ->Fill((*iter).strip()); }
596  }
597 
598 
599  }
600  }
601  }
602 
603  if (detId.subdetId()==StripSubdetector::TID) {
604 
605  for ( iter = begin ; iter != end; iter++ ) {
606  if( tTopo->tidSide(id) == 1){
607  ++ndigiwheeltidzm[tTopo->tidWheel(id)-1];
608  if( tTopo->tidWheel(id) == 1 ) {
609  if(tTopo->tidRing(id)== 1) { meAdcTIDWheel1zm_[0] -> Fill((*iter).adc()); meStripTIDWheel1zm_[0] ->Fill((*iter).strip());}
610  if(tTopo->tidRing(id)== 2) { meAdcTIDWheel1zm_[1] -> Fill((*iter).adc()); meStripTIDWheel1zm_[1] ->Fill((*iter).strip());}
611  if(tTopo->tidRing(id)== 3) { meAdcTIDWheel1zm_[2] -> Fill((*iter).adc()); meStripTIDWheel1zm_[2] ->Fill((*iter).strip());}
612  }
613  if( tTopo->tidWheel(id) == 2 ) {
614  if(tTopo->tidRing(id)== 1) { meAdcTIDWheel2zm_[0] -> Fill((*iter).adc()); meStripTIDWheel2zm_[0] ->Fill((*iter).strip());}
615  if(tTopo->tidRing(id)== 2) { meAdcTIDWheel2zm_[1] -> Fill((*iter).adc()); meStripTIDWheel2zm_[1] ->Fill((*iter).strip());}
616  if(tTopo->tidRing(id)== 3) { meAdcTIDWheel2zm_[2] -> Fill((*iter).adc()); meStripTIDWheel2zm_[2] ->Fill((*iter).strip());}
617  }
618  if( tTopo->tidWheel(id) == 3 ) {
619  if(tTopo->tidRing(id)== 1) { meAdcTIDWheel3zm_[0] -> Fill((*iter).adc()); meStripTIDWheel3zm_[0] ->Fill((*iter).strip());}
620  if(tTopo->tidRing(id)== 2) { meAdcTIDWheel3zm_[1] -> Fill((*iter).adc()); meStripTIDWheel3zm_[1] ->Fill((*iter).strip());}
621  if(tTopo->tidRing(id)== 3) { meAdcTIDWheel3zm_[2] -> Fill((*iter).adc()); meStripTIDWheel3zm_[2] ->Fill((*iter).strip());}
622  }
623 
624  }else{
625  ++ndigiwheeltidzp[tTopo->tidWheel(id)-1];
626  if( tTopo->tidWheel(id) == 1 ) {
627  if(tTopo->tidRing(id)== 1) { meAdcTIDWheel1zp_[0] -> Fill((*iter).adc()); meStripTIDWheel1zp_[0] ->Fill((*iter).strip());}
628  if(tTopo->tidRing(id)== 2) { meAdcTIDWheel1zp_[1] -> Fill((*iter).adc()); meStripTIDWheel1zp_[1] ->Fill((*iter).strip());}
629  if(tTopo->tidRing(id)== 3) { meAdcTIDWheel1zp_[2] -> Fill((*iter).adc()); meStripTIDWheel1zp_[2] ->Fill((*iter).strip());}
630  }
631  if( tTopo->tidWheel(id) == 2 ) {
632  if(tTopo->tidRing(id)== 1) { meAdcTIDWheel2zp_[0] -> Fill((*iter).adc()); meStripTIDWheel2zp_[0] ->Fill((*iter).strip());}
633  if(tTopo->tidRing(id)== 2) { meAdcTIDWheel2zp_[1] -> Fill((*iter).adc()); meStripTIDWheel2zp_[1] ->Fill((*iter).strip());}
634  if(tTopo->tidRing(id)== 3) { meAdcTIDWheel2zp_[2] -> Fill((*iter).adc()); meStripTIDWheel2zp_[2] ->Fill((*iter).strip());}
635  }
636  if( tTopo->tidWheel(id) == 3 ) {
637  if(tTopo->tidRing(id)== 1) { meAdcTIDWheel3zp_[0] -> Fill((*iter).adc()); meStripTIDWheel3zp_[0] ->Fill((*iter).strip());}
638  if(tTopo->tidRing(id)== 2) { meAdcTIDWheel3zp_[1] -> Fill((*iter).adc()); meStripTIDWheel3zp_[1] ->Fill((*iter).strip());}
639  if(tTopo->tidRing(id)== 3) { meAdcTIDWheel3zp_[2] -> Fill((*iter).adc()); meStripTIDWheel3zp_[2] ->Fill((*iter).strip());}
640  }
641 
642  }
643  }
644  }
645  if (detId.subdetId()==StripSubdetector::TEC) {
646 
647  for ( iter = begin ; iter != end; iter++ ) {
648  if(tTopo->tecSide(id) == 1) {
649  ++ndigiwheelteczm[tTopo->tecWheel(id)-1];
650  if( tTopo->tecWheel(id) == 1 ) {
651  if ( tTopo->tecRing(id) == 1 ) { meAdcTECWheel1zm_[0] -> Fill((*iter).adc()); meStripTECWheel1zm_[0] ->Fill((*iter).strip()); }
652  if ( tTopo->tecRing(id) == 2 ) { meAdcTECWheel1zm_[1] -> Fill((*iter).adc()); meStripTECWheel1zm_[1] ->Fill((*iter).strip()); }
653  if ( tTopo->tecRing(id) == 3 ) { meAdcTECWheel1zm_[2] -> Fill((*iter).adc()); meStripTECWheel1zm_[2] ->Fill((*iter).strip()); }
654  if ( tTopo->tecRing(id) == 4 ) { meAdcTECWheel1zm_[3] -> Fill((*iter).adc()); meStripTECWheel1zm_[3] ->Fill((*iter).strip()); }
655  if ( tTopo->tecRing(id) == 5 ) { meAdcTECWheel1zm_[4] -> Fill((*iter).adc()); meStripTECWheel1zm_[4] ->Fill((*iter).strip()); }
656  if ( tTopo->tecRing(id) == 6 ) { meAdcTECWheel1zm_[5] -> Fill((*iter).adc()); meStripTECWheel1zm_[5] ->Fill((*iter).strip()); }
657  if ( tTopo->tecRing(id) == 7 ) { meAdcTECWheel1zm_[6] -> Fill((*iter).adc()); meStripTECWheel1zm_[6] ->Fill((*iter).strip()); }
658  }
659  if( tTopo->tecWheel(id) == 2 ) {
660  if ( tTopo->tecRing(id) == 1 ) { meAdcTECWheel2zm_[0] -> Fill((*iter).adc()); meStripTECWheel2zm_[0] ->Fill((*iter).strip()); }
661  if ( tTopo->tecRing(id) == 2 ) { meAdcTECWheel2zm_[1] -> Fill((*iter).adc()); meStripTECWheel2zm_[1] ->Fill((*iter).strip()); }
662  if ( tTopo->tecRing(id) == 3 ) { meAdcTECWheel2zm_[2] -> Fill((*iter).adc()); meStripTECWheel2zm_[2] ->Fill((*iter).strip()); }
663  if ( tTopo->tecRing(id) == 4 ) { meAdcTECWheel2zm_[3] -> Fill((*iter).adc()); meStripTECWheel2zm_[3] ->Fill((*iter).strip()); }
664  if ( tTopo->tecRing(id) == 5 ) { meAdcTECWheel2zm_[4] -> Fill((*iter).adc()); meStripTECWheel2zm_[4] ->Fill((*iter).strip()); }
665  if ( tTopo->tecRing(id) == 6 ) { meAdcTECWheel2zm_[5] -> Fill((*iter).adc()); meStripTECWheel2zm_[5] ->Fill((*iter).strip()); }
666  if ( tTopo->tecRing(id) == 7 ) { meAdcTECWheel2zm_[6] -> Fill((*iter).adc()); meStripTECWheel2zm_[6] ->Fill((*iter).strip()); }
667  }
668  if( tTopo->tecWheel(id) == 3 ) {
669  if ( tTopo->tecRing(id) == 1 ) { meAdcTECWheel3zm_[0] -> Fill((*iter).adc()); meStripTECWheel3zm_[0] ->Fill((*iter).strip()); }
670  if ( tTopo->tecRing(id) == 2 ) { meAdcTECWheel3zm_[1] -> Fill((*iter).adc()); meStripTECWheel3zm_[1] ->Fill((*iter).strip()); }
671  if ( tTopo->tecRing(id) == 3 ) { meAdcTECWheel3zm_[2] -> Fill((*iter).adc()); meStripTECWheel3zm_[2] ->Fill((*iter).strip()); }
672  if ( tTopo->tecRing(id) == 4 ) { meAdcTECWheel3zm_[3] -> Fill((*iter).adc()); meStripTECWheel3zm_[3] ->Fill((*iter).strip()); }
673  if ( tTopo->tecRing(id) == 5 ) { meAdcTECWheel3zm_[4] -> Fill((*iter).adc()); meStripTECWheel3zm_[4] ->Fill((*iter).strip()); }
674  if ( tTopo->tecRing(id) == 6 ) { meAdcTECWheel3zm_[5] -> Fill((*iter).adc()); meStripTECWheel3zm_[5] ->Fill((*iter).strip()); }
675  if ( tTopo->tecRing(id) == 7 ) { meAdcTECWheel3zm_[6] -> Fill((*iter).adc()); meStripTECWheel3zm_[6] ->Fill((*iter).strip()); }
676  }
677  if( tTopo->tecWheel(id) == 4 ) {
678  if ( tTopo->tecRing(id) == 2 ) { meAdcTECWheel4zm_[0] -> Fill((*iter).adc()); meStripTECWheel4zm_[0] ->Fill((*iter).strip()); }
679  if ( tTopo->tecRing(id) == 3 ) { meAdcTECWheel4zm_[1] -> Fill((*iter).adc()); meStripTECWheel4zm_[1] ->Fill((*iter).strip()); }
680  if ( tTopo->tecRing(id) == 4 ) { meAdcTECWheel4zm_[2] -> Fill((*iter).adc()); meStripTECWheel4zm_[2] ->Fill((*iter).strip()); }
681  if ( tTopo->tecRing(id) == 5 ) { meAdcTECWheel4zm_[3] -> Fill((*iter).adc()); meStripTECWheel4zm_[3] ->Fill((*iter).strip()); }
682  if ( tTopo->tecRing(id) == 6 ) { meAdcTECWheel4zm_[4] -> Fill((*iter).adc()); meStripTECWheel4zm_[4] ->Fill((*iter).strip()); }
683  if ( tTopo->tecRing(id) == 7 ) { meAdcTECWheel4zm_[5] -> Fill((*iter).adc()); meStripTECWheel4zm_[5] ->Fill((*iter).strip()); }
684  }
685  if( tTopo->tecWheel(id) == 5 ) {
686  if ( tTopo->tecRing(id) == 2 ) { meAdcTECWheel5zm_[0] -> Fill((*iter).adc()); meStripTECWheel5zm_[0] ->Fill((*iter).strip()); }
687  if ( tTopo->tecRing(id) == 3 ) { meAdcTECWheel5zm_[1] -> Fill((*iter).adc()); meStripTECWheel5zm_[1] ->Fill((*iter).strip()); }
688  if ( tTopo->tecRing(id) == 4 ) { meAdcTECWheel5zm_[2] -> Fill((*iter).adc()); meStripTECWheel5zm_[2] ->Fill((*iter).strip()); }
689  if ( tTopo->tecRing(id) == 5 ) { meAdcTECWheel5zm_[3] -> Fill((*iter).adc()); meStripTECWheel5zm_[3] ->Fill((*iter).strip()); }
690  if ( tTopo->tecRing(id) == 6 ) { meAdcTECWheel5zm_[4] -> Fill((*iter).adc()); meStripTECWheel5zm_[4] ->Fill((*iter).strip()); }
691  if ( tTopo->tecRing(id) == 7 ) { meAdcTECWheel5zm_[5] -> Fill((*iter).adc()); meStripTECWheel5zm_[5] ->Fill((*iter).strip()); }
692  }
693  if( tTopo->tecWheel(id) == 6 ) {
694  if ( tTopo->tecRing(id) == 2 ) { meAdcTECWheel6zm_[0] -> Fill((*iter).adc()); meStripTECWheel6zm_[0] ->Fill((*iter).strip()); }
695  if ( tTopo->tecRing(id) == 3 ) { meAdcTECWheel6zm_[1] -> Fill((*iter).adc()); meStripTECWheel6zm_[1] ->Fill((*iter).strip()); }
696  if ( tTopo->tecRing(id) == 4 ) { meAdcTECWheel6zm_[2] -> Fill((*iter).adc()); meStripTECWheel6zm_[2] ->Fill((*iter).strip()); }
697  if ( tTopo->tecRing(id) == 5 ) { meAdcTECWheel6zm_[3] -> Fill((*iter).adc()); meStripTECWheel6zm_[3] ->Fill((*iter).strip()); }
698  if ( tTopo->tecRing(id) == 6 ) { meAdcTECWheel6zm_[4] -> Fill((*iter).adc()); meStripTECWheel6zm_[4] ->Fill((*iter).strip()); }
699  if ( tTopo->tecRing(id) == 7 ) { meAdcTECWheel6zm_[5] -> Fill((*iter).adc()); meStripTECWheel6zm_[5] ->Fill((*iter).strip()); }
700  }
701  if( tTopo->tecWheel(id) == 7 ) {
702  if ( tTopo->tecRing(id) == 3 ) { meAdcTECWheel7zm_[0] -> Fill((*iter).adc()); meStripTECWheel7zm_[0] ->Fill((*iter).strip()); }
703  if ( tTopo->tecRing(id) == 4 ) { meAdcTECWheel7zm_[1] -> Fill((*iter).adc()); meStripTECWheel7zm_[1] ->Fill((*iter).strip()); }
704  if ( tTopo->tecRing(id) == 5 ) { meAdcTECWheel7zm_[2] -> Fill((*iter).adc()); meStripTECWheel7zm_[2] ->Fill((*iter).strip()); }
705  if ( tTopo->tecRing(id) == 6 ) { meAdcTECWheel7zm_[3] -> Fill((*iter).adc()); meStripTECWheel7zm_[3] ->Fill((*iter).strip()); }
706  if ( tTopo->tecRing(id) == 7 ) { meAdcTECWheel7zm_[4] -> Fill((*iter).adc()); meStripTECWheel7zm_[4] ->Fill((*iter).strip()); }
707  }
708  if( tTopo->tecWheel(id) == 8 ) {
709  if ( tTopo->tecRing(id) == 3 ) { meAdcTECWheel8zm_[0] -> Fill((*iter).adc()); meStripTECWheel8zm_[0] ->Fill((*iter).strip()); }
710  if ( tTopo->tecRing(id) == 4 ) { meAdcTECWheel8zm_[1] -> Fill((*iter).adc()); meStripTECWheel8zm_[1] ->Fill((*iter).strip()); }
711  if ( tTopo->tecRing(id) == 5 ) { meAdcTECWheel8zm_[2] -> Fill((*iter).adc()); meStripTECWheel8zm_[2] ->Fill((*iter).strip()); }
712  if ( tTopo->tecRing(id) == 6 ) { meAdcTECWheel8zm_[3] -> Fill((*iter).adc()); meStripTECWheel8zm_[3] ->Fill((*iter).strip()); }
713  if ( tTopo->tecRing(id) == 7 ) { meAdcTECWheel8zm_[4] -> Fill((*iter).adc()); meStripTECWheel8zm_[4] ->Fill((*iter).strip()); }
714  }
715  if( tTopo->tecWheel(id) == 9 ) {
716  if ( tTopo->tecRing(id) == 4 ) { meAdcTECWheel9zm_[0] -> Fill((*iter).adc()); meStripTECWheel9zm_[0] ->Fill((*iter).strip()); }
717  if ( tTopo->tecRing(id) == 5 ) { meAdcTECWheel9zm_[1] -> Fill((*iter).adc()); meStripTECWheel9zm_[1] ->Fill((*iter).strip()); }
718  if ( tTopo->tecRing(id) == 6 ) { meAdcTECWheel9zm_[2] -> Fill((*iter).adc()); meStripTECWheel9zm_[2] ->Fill((*iter).strip()); }
719  if ( tTopo->tecRing(id) == 7 ) { meAdcTECWheel9zm_[3] -> Fill((*iter).adc()); meStripTECWheel9zm_[3] ->Fill((*iter).strip()); }
720  }
721  }else {
722  ++ndigiwheelteczp[tTopo->tecWheel(id)-1];
723  if( tTopo->tecWheel(id) == 1 ) {
724  if ( tTopo->tecRing(id) == 1 ) { meAdcTECWheel1zp_[0] -> Fill((*iter).adc()); meStripTECWheel1zp_[0] ->Fill((*iter).strip()); }
725  if ( tTopo->tecRing(id) == 2 ) { meAdcTECWheel1zp_[1] -> Fill((*iter).adc()); meStripTECWheel1zp_[1] ->Fill((*iter).strip()); }
726  if ( tTopo->tecRing(id) == 3 ) { meAdcTECWheel1zp_[2] -> Fill((*iter).adc()); meStripTECWheel1zp_[2] ->Fill((*iter).strip()); }
727  if ( tTopo->tecRing(id) == 4 ) { meAdcTECWheel1zp_[3] -> Fill((*iter).adc()); meStripTECWheel1zp_[3] ->Fill((*iter).strip()); }
728  if ( tTopo->tecRing(id) == 5 ) { meAdcTECWheel1zp_[4] -> Fill((*iter).adc()); meStripTECWheel1zp_[4] ->Fill((*iter).strip()); }
729  if ( tTopo->tecRing(id) == 6 ) { meAdcTECWheel1zp_[5] -> Fill((*iter).adc()); meStripTECWheel1zp_[5] ->Fill((*iter).strip()); }
730  if ( tTopo->tecRing(id) == 7 ) { meAdcTECWheel1zp_[6] -> Fill((*iter).adc()); meStripTECWheel1zp_[6] ->Fill((*iter).strip()); }
731  }
732  if( tTopo->tecWheel(id) == 2 ) {
733  if ( tTopo->tecRing(id) == 1 ) { meAdcTECWheel2zp_[0] -> Fill((*iter).adc()); meStripTECWheel2zp_[0] ->Fill((*iter).strip()); }
734  if ( tTopo->tecRing(id) == 2 ) { meAdcTECWheel2zp_[1] -> Fill((*iter).adc()); meStripTECWheel2zp_[1] ->Fill((*iter).strip()); }
735  if ( tTopo->tecRing(id) == 3 ) { meAdcTECWheel2zp_[2] -> Fill((*iter).adc()); meStripTECWheel2zp_[2] ->Fill((*iter).strip()); }
736  if ( tTopo->tecRing(id) == 4 ) { meAdcTECWheel2zp_[3] -> Fill((*iter).adc()); meStripTECWheel2zp_[3] ->Fill((*iter).strip()); }
737  if ( tTopo->tecRing(id) == 5 ) { meAdcTECWheel2zp_[4] -> Fill((*iter).adc()); meStripTECWheel2zp_[4] ->Fill((*iter).strip()); }
738  if ( tTopo->tecRing(id) == 6 ) { meAdcTECWheel2zp_[5] -> Fill((*iter).adc()); meStripTECWheel2zp_[5] ->Fill((*iter).strip()); }
739  if ( tTopo->tecRing(id) == 7 ) { meAdcTECWheel2zp_[6] -> Fill((*iter).adc()); meStripTECWheel2zp_[6] ->Fill((*iter).strip()); }
740  }
741  if( tTopo->tecWheel(id) == 3 ) {
742  if ( tTopo->tecRing(id) == 1 ) { meAdcTECWheel3zp_[0] -> Fill((*iter).adc()); meStripTECWheel3zp_[0] ->Fill((*iter).strip()); }
743  if ( tTopo->tecRing(id) == 2 ) { meAdcTECWheel3zp_[1] -> Fill((*iter).adc()); meStripTECWheel3zp_[1] ->Fill((*iter).strip()); }
744  if ( tTopo->tecRing(id) == 3 ) { meAdcTECWheel3zp_[2] -> Fill((*iter).adc()); meStripTECWheel3zp_[2] ->Fill((*iter).strip()); }
745  if ( tTopo->tecRing(id) == 4 ) { meAdcTECWheel3zp_[3] -> Fill((*iter).adc()); meStripTECWheel3zp_[3] ->Fill((*iter).strip()); }
746  if ( tTopo->tecRing(id) == 5 ) { meAdcTECWheel3zp_[4] -> Fill((*iter).adc()); meStripTECWheel3zp_[4] ->Fill((*iter).strip()); }
747  if ( tTopo->tecRing(id) == 6 ) { meAdcTECWheel3zp_[5] -> Fill((*iter).adc()); meStripTECWheel3zp_[5] ->Fill((*iter).strip()); }
748  if ( tTopo->tecRing(id) == 7 ) { meAdcTECWheel3zp_[6] -> Fill((*iter).adc()); meStripTECWheel3zp_[6] ->Fill((*iter).strip()); }
749  }
750  if( tTopo->tecWheel(id) == 4 ) {
751  if ( tTopo->tecRing(id) == 2 ) { meAdcTECWheel4zp_[0] -> Fill((*iter).adc()); meStripTECWheel4zp_[0] ->Fill((*iter).strip()); }
752  if ( tTopo->tecRing(id) == 3 ) { meAdcTECWheel4zp_[1] -> Fill((*iter).adc()); meStripTECWheel4zp_[1] ->Fill((*iter).strip()); }
753  if ( tTopo->tecRing(id) == 4 ) { meAdcTECWheel4zp_[2] -> Fill((*iter).adc()); meStripTECWheel4zp_[2] ->Fill((*iter).strip()); }
754  if ( tTopo->tecRing(id) == 5 ) { meAdcTECWheel4zp_[3] -> Fill((*iter).adc()); meStripTECWheel4zp_[3] ->Fill((*iter).strip()); }
755  if ( tTopo->tecRing(id) == 6 ) { meAdcTECWheel4zp_[4] -> Fill((*iter).adc()); meStripTECWheel4zp_[4] ->Fill((*iter).strip()); }
756  if ( tTopo->tecRing(id) == 7 ) { meAdcTECWheel4zp_[5] -> Fill((*iter).adc()); meStripTECWheel4zp_[5] ->Fill((*iter).strip()); }
757  }
758  if( tTopo->tecWheel(id) == 5 ) {
759  if ( tTopo->tecRing(id) == 2 ) { meAdcTECWheel5zp_[0] -> Fill((*iter).adc()); meStripTECWheel5zp_[0] ->Fill((*iter).strip()); }
760  if ( tTopo->tecRing(id) == 3 ) { meAdcTECWheel5zp_[1] -> Fill((*iter).adc()); meStripTECWheel5zp_[1] ->Fill((*iter).strip()); }
761  if ( tTopo->tecRing(id) == 4 ) { meAdcTECWheel5zp_[2] -> Fill((*iter).adc()); meStripTECWheel5zp_[2] ->Fill((*iter).strip()); }
762  if ( tTopo->tecRing(id) == 5 ) { meAdcTECWheel5zp_[3] -> Fill((*iter).adc()); meStripTECWheel5zp_[3] ->Fill((*iter).strip()); }
763  if ( tTopo->tecRing(id) == 6 ) { meAdcTECWheel5zp_[4] -> Fill((*iter).adc()); meStripTECWheel5zp_[4] ->Fill((*iter).strip()); }
764  if ( tTopo->tecRing(id) == 7 ) { meAdcTECWheel5zp_[5] -> Fill((*iter).adc()); meStripTECWheel5zp_[5] ->Fill((*iter).strip()); }
765  }
766  if( tTopo->tecWheel(id) == 6 ) {
767  if ( tTopo->tecRing(id) == 2 ) { meAdcTECWheel6zp_[0] -> Fill((*iter).adc()); meStripTECWheel6zp_[0] ->Fill((*iter).strip()); }
768  if ( tTopo->tecRing(id) == 3 ) { meAdcTECWheel6zp_[1] -> Fill((*iter).adc()); meStripTECWheel6zp_[1] ->Fill((*iter).strip()); }
769  if ( tTopo->tecRing(id) == 4 ) { meAdcTECWheel6zp_[2] -> Fill((*iter).adc()); meStripTECWheel6zp_[2] ->Fill((*iter).strip()); }
770  if ( tTopo->tecRing(id) == 5 ) { meAdcTECWheel6zp_[3] -> Fill((*iter).adc()); meStripTECWheel6zp_[3] ->Fill((*iter).strip()); }
771  if ( tTopo->tecRing(id) == 6 ) { meAdcTECWheel6zp_[4] -> Fill((*iter).adc()); meStripTECWheel6zp_[4] ->Fill((*iter).strip()); }
772  if ( tTopo->tecRing(id) == 7 ) { meAdcTECWheel6zp_[5] -> Fill((*iter).adc()); meStripTECWheel6zp_[5] ->Fill((*iter).strip()); }
773  }
774  if( tTopo->tecWheel(id) == 7 ) {
775  if ( tTopo->tecRing(id) == 3 ) { meAdcTECWheel7zp_[0] -> Fill((*iter).adc()); meStripTECWheel7zp_[0] ->Fill((*iter).strip()); }
776  if ( tTopo->tecRing(id) == 4 ) { meAdcTECWheel7zp_[1] -> Fill((*iter).adc()); meStripTECWheel7zp_[1] ->Fill((*iter).strip()); }
777  if ( tTopo->tecRing(id) == 5 ) { meAdcTECWheel7zp_[2] -> Fill((*iter).adc()); meStripTECWheel7zp_[2] ->Fill((*iter).strip()); }
778  if ( tTopo->tecRing(id) == 6 ) { meAdcTECWheel7zp_[3] -> Fill((*iter).adc()); meStripTECWheel7zp_[3] ->Fill((*iter).strip()); }
779  if ( tTopo->tecRing(id) == 7 ) { meAdcTECWheel7zp_[4] -> Fill((*iter).adc()); meStripTECWheel7zp_[4] ->Fill((*iter).strip()); }
780  }
781  if( tTopo->tecWheel(id) == 8 ) {
782  if ( tTopo->tecRing(id) == 3 ) { meAdcTECWheel8zp_[0] -> Fill((*iter).adc()); meStripTECWheel8zp_[0] ->Fill((*iter).strip()); }
783  if ( tTopo->tecRing(id) == 4 ) { meAdcTECWheel8zp_[1] -> Fill((*iter).adc()); meStripTECWheel8zp_[1] ->Fill((*iter).strip()); }
784  if ( tTopo->tecRing(id) == 5 ) { meAdcTECWheel8zp_[2] -> Fill((*iter).adc()); meStripTECWheel8zp_[2] ->Fill((*iter).strip()); }
785  if ( tTopo->tecRing(id) == 6 ) { meAdcTECWheel8zp_[3] -> Fill((*iter).adc()); meStripTECWheel8zp_[3] ->Fill((*iter).strip()); }
786  if ( tTopo->tecRing(id) == 7 ) { meAdcTECWheel8zp_[4] -> Fill((*iter).adc()); meStripTECWheel8zp_[4] ->Fill((*iter).strip()); }
787  }
788  if( tTopo->tecWheel(id) == 9 ) {
789  if ( tTopo->tecRing(id) == 4 ) { meAdcTECWheel9zp_[0] -> Fill((*iter).adc()); meStripTECWheel9zp_[0] ->Fill((*iter).strip()); }
790  if ( tTopo->tecRing(id) == 5 ) { meAdcTECWheel9zp_[1] -> Fill((*iter).adc()); meStripTECWheel9zp_[1] ->Fill((*iter).strip()); }
791  if ( tTopo->tecRing(id) == 6 ) { meAdcTECWheel9zp_[2] -> Fill((*iter).adc()); meStripTECWheel9zp_[2] ->Fill((*iter).strip()); }
792  if ( tTopo->tecRing(id) == 7 ) { meAdcTECWheel9zp_[3] -> Fill((*iter).adc()); meStripTECWheel9zp_[3] ->Fill((*iter).strip()); }
793  }
794  }
795  }
796  }
797 
798  }
799 
800  for ( int i =0; i< 4; i++ ) {
801  meNDigiTIBLayerzm_[i]->Fill(ndigilayertibzm[i]);
802  meNDigiTIBLayerzp_[i]->Fill(ndigilayertibzp[i]);
803  }
804 
805  for ( int i =0; i< 6; i++ ) {
806  meNDigiTOBLayerzm_[i]->Fill(ndigilayertobzm[i]);
807  meNDigiTOBLayerzp_[i]->Fill(ndigilayertobzp[i]);
808  }
809 
810 for ( int i =0; i< 3; i++ ) {
811  meNDigiTIDWheelzm_[i]->Fill(ndigiwheeltidzm[i]);
812  meNDigiTIDWheelzp_[i]->Fill(ndigiwheeltidzp[i]);
813  }
814 
815 for ( int i =0; i< 9; i++ ) {
816  meNDigiTECWheelzm_[i]->Fill(ndigiwheelteczm[i]);
817  meNDigiTECWheelzp_[i]->Fill(ndigiwheelteczp[i]);
818  }
819 
820 
821 
822 }
823 
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]
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:519
MonitorElement * meAdcTIBLayer2Extzm_[3]
MonitorElement * meStripTOBLayer1zp_[6]
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > edmDetSetVector_SiStripDigi_Token_
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]
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]
#define nullptr
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
std::vector< unsigned int > tobRodInfo(const DetId &id) const
MonitorElement * meAdcTOBLayer4zm_[6]
~SiStripDigiValid() override
MonitorElement * meStripTOBLayer5zm_[6]
MonitorElement * meAdcTECWheel8zp_[5]
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
MonitorElement * meAdcTIDWheel1zp_[3]
MonitorElement * meAdcTIBLayer1Intzm_[3]
void bookHistograms(DQMStore::IBooker &ibooker, const edm::Run &run, const edm::EventSetup &es) override
void endJob(void) override
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:118
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", const uint32_t run=0, const uint32_t lumi=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
Definition: DQMStore.cc:2555
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]
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:38
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]
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:279
MonitorElement * meStripTIBLayer1Extzp_[3]
MonitorElement * meStripTIBLayer1Extzm_[3]
MonitorElement * meNDigiTIDWheelzp_[3]
MonitorElement * meAdcTOBLayer3zp_[6]
const T & get() const
Definition: EventSetup.h:59
MonitorElement * meAdcTOBLayer6zm_[6]
SiStripDigiValid(const edm::ParameterSet &ps)
void analyze(const edm::Event &e, const edm::EventSetup &c) override
MonitorElement * meStripTIDWheel3zp_[3]
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]
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:43
unsigned int tecSide(const DetId &id) const
MonitorElement * meAdcTECWheel2zm_[7]
MonitorElement * meStripTIDWheel3zm_[3]