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