CMS 3D CMS Logo

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