CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiPixelDigiValid.cc
Go to the documentation of this file.
22 
23 //using namespace std;
24 //using namespace edm;
25 
27  : outputFile_( ps.getUntrackedParameter<std::string>( "outputFile", "pixeldigihisto.root" ) )
28  , dbe_(0)
29  , edmDetSetVector_PixelDigi_Token_( consumes< edm::DetSetVector<PixelDigi> >( ps.getParameter<edm::InputTag>( "src" ) ) ) {
30 
31 
32 }
33 
35 
36  // if ( outputFile_.size() != 0 && dbe_ ) dbe_->save(outputFile_);
37 }
38 
39 
41 
42 }
43 
46 
47  if ( dbe_ ) {
48  dbe_->setCurrentFolder("TrackerDigisV/TrackerDigis/Pixel");
49 
50  meDigiMultiLayer1Ring1_ = dbe_->book1D("digimulti_layer1ring1","Digi Multiplicity ",30, 0., 30.);
51  meDigiMultiLayer1Ring2_ = dbe_->book1D("digimulti_layer1ring2","Digi Multiplicity ",30, 0., 30.);
52  meDigiMultiLayer1Ring3_ = dbe_->book1D("digimulti_layer1ring3","Digi Multiplicity ",30, 0., 30.);
53  meDigiMultiLayer1Ring4_ = dbe_->book1D("digimulti_layer1ring4","Digi Multiplicity ",30, 0., 30.);
54  meDigiMultiLayer1Ring5_ = dbe_->book1D("digimulti_layer1ring5","Digi Multiplicity ",30, 0., 30.);
55  meDigiMultiLayer1Ring6_ = dbe_->book1D("digimulti_layer1ring6","Digi Multiplicity ",30, 0., 30.);
56  meDigiMultiLayer1Ring7_ = dbe_->book1D("digimulti_layer1ring7","Digi Multiplicity ",30, 0., 30.);
57  meDigiMultiLayer1Ring8_ = dbe_->book1D("digimulti_layer1ring8","Digi Multiplicity ",30, 0., 30.);
58 
59  meDigiMultiLayer2Ring1_ = dbe_->book1D("digimulti_layer2ring1","Digi Multiplicity ",30, 0., 30.);
60  meDigiMultiLayer2Ring2_ = dbe_->book1D("digimulti_layer2ring2","Digi Multiplicity ",30, 0., 30.);
61  meDigiMultiLayer2Ring3_ = dbe_->book1D("digimulti_layer2ring3","Digi Multiplicity ",30, 0., 30.);
62  meDigiMultiLayer2Ring4_ = dbe_->book1D("digimulti_layer2ring4","Digi Multiplicity ",30, 0., 30.);
63  meDigiMultiLayer2Ring5_ = dbe_->book1D("digimulti_layer2ring5","Digi Multiplicity ",30, 0., 30.);
64  meDigiMultiLayer2Ring6_ = dbe_->book1D("digimulti_layer2ring6","Digi Multiplicity ",30, 0., 30.);
65  meDigiMultiLayer2Ring7_ = dbe_->book1D("digimulti_layer2ring7","Digi Multiplicity ",30, 0., 30.);
66  meDigiMultiLayer2Ring8_ = dbe_->book1D("digimulti_layer2ring8","Digi Multiplicity ",30, 0., 30.);
67 
68  meDigiMultiLayer3Ring1_ = dbe_->book1D("digimulti_layer3ring1","Digi Multiplicity ",30, 0., 30.);
69  meDigiMultiLayer3Ring2_ = dbe_->book1D("digimulti_layer3ring2","Digi Multiplicity ",30, 0., 30.);
70  meDigiMultiLayer3Ring3_ = dbe_->book1D("digimulti_layer3ring3","Digi Multiplicity ",30, 0., 30.);
71  meDigiMultiLayer3Ring4_ = dbe_->book1D("digimulti_layer3ring4","Digi Multiplicity ",30, 0., 30.);
72  meDigiMultiLayer3Ring5_ = dbe_->book1D("digimulti_layer3ring5","Digi Multiplicity ",30, 0., 30.);
73  meDigiMultiLayer3Ring6_ = dbe_->book1D("digimulti_layer3ring6","Digi Multiplicity ",30, 0., 30.);
74  meDigiMultiLayer3Ring7_ = dbe_->book1D("digimulti_layer3ring7","Digi Multiplicity ",30, 0., 30.);
75  meDigiMultiLayer3Ring8_ = dbe_->book1D("digimulti_layer3ring8","Digi Multiplicity ",30, 0., 30.);
76 
78  meAdcLayer1Ring1_ = dbe_->book1D("adc_layer1ring1","Digi charge",50, 0., 300.);
79  meAdcLayer1Ring2_ = dbe_->book1D("adc_layer1ring2","Digi charge",50, 0., 300.);
80  meAdcLayer1Ring3_ = dbe_->book1D("adc_layer1ring3","Digi charge",50, 0., 300.);
81  meAdcLayer1Ring4_ = dbe_->book1D("adc_layer1ring4","Digi charge",50, 0., 300.);
82  meAdcLayer1Ring5_ = dbe_->book1D("adc_layer1ring5","Digi charge",50, 0., 300.);
83  meAdcLayer1Ring6_ = dbe_->book1D("adc_layer1ring6","Digi charge",50, 0., 300.);
84  meAdcLayer1Ring7_ = dbe_->book1D("adc_layer1ring7","Digi charge",50, 0., 300.);
85  meAdcLayer1Ring8_ = dbe_->book1D("adc_layer1ring8","Digi charge",50, 0., 300.);
86 
87  meRowLayer1Ring1_ = dbe_->book1D("row_layer1ring1","Digi row",50, 0., 200.);
88  meRowLayer1Ring2_ = dbe_->book1D("row_layer1ring2","Digi row",50, 0., 200.);
89  meRowLayer1Ring3_ = dbe_->book1D("row_layer1ring3","Digi row",50, 0., 200.);
90  meRowLayer1Ring4_ = dbe_->book1D("row_layer1ring4","Digi row",50, 0., 200.);
91  meRowLayer1Ring5_ = dbe_->book1D("row_layer1ring5","Digi row",50, 0., 200.);
92  meRowLayer1Ring6_ = dbe_->book1D("row_layer1ring6","Digi row",50, 0., 200.);
93  meRowLayer1Ring7_ = dbe_->book1D("row_layer1ring7","Digi row",50, 0., 200.);
94  meRowLayer1Ring8_ = dbe_->book1D("row_layer1ring8","Digi row",50, 0., 200.);
95 
96  meColLayer1Ring1_ = dbe_->book1D("col_layer1ring1","Digi column",50, 0., 500.);
97  meColLayer1Ring2_ = dbe_->book1D("col_layer1ring2","Digi column",50, 0., 500.);
98  meColLayer1Ring3_ = dbe_->book1D("col_layer1ring3","Digi column",50, 0., 500.);
99  meColLayer1Ring4_ = dbe_->book1D("col_layer1ring4","Digi column",50, 0., 500.);
100  meColLayer1Ring5_ = dbe_->book1D("col_layer1ring5","Digi column",50, 0., 500.);
101  meColLayer1Ring6_ = dbe_->book1D("col_layer1ring6","Digi column",50, 0., 500.);
102  meColLayer1Ring7_ = dbe_->book1D("col_layer1ring7","Digi column",50, 0., 500.);
103  meColLayer1Ring8_ = dbe_->book1D("col_layer1ring8","Digi column",50, 0., 500.);
104 
105 
106  meAdcLayer2Ring1_ = dbe_->book1D("adc_layer2ring1","Digi charge",50, 0., 300.);
107  meAdcLayer2Ring2_ = dbe_->book1D("adc_layer2ring2","Digi charge",50, 0., 300.);
108  meAdcLayer2Ring3_ = dbe_->book1D("adc_layer2ring3","Digi charge",50, 0., 300.);
109  meAdcLayer2Ring4_ = dbe_->book1D("adc_layer2ring4","Digi charge",50, 0., 300.);
110  meAdcLayer2Ring5_ = dbe_->book1D("adc_layer2ring5","Digi charge",50, 0., 300.);
111  meAdcLayer2Ring6_ = dbe_->book1D("adc_layer2ring6","Digi charge",50, 0., 300.);
112  meAdcLayer2Ring7_ = dbe_->book1D("adc_layer2ring7","Digi charge",50, 0., 300.);
113  meAdcLayer2Ring8_ = dbe_->book1D("adc_layer2ring8","Digi charge",50, 0., 300.);
114 
115  meRowLayer2Ring1_ = dbe_->book1D("row_layer2ring1","Digi row",50, 0., 200.);
116  meRowLayer2Ring2_ = dbe_->book1D("row_layer2ring2","Digi row",50, 0., 200.);
117  meRowLayer2Ring3_ = dbe_->book1D("row_layer2ring3","Digi row",50, 0., 200.);
118  meRowLayer2Ring4_ = dbe_->book1D("row_layer2ring4","Digi row",50, 0., 200.);
119  meRowLayer2Ring5_ = dbe_->book1D("row_layer2ring5","Digi row",50, 0., 200.);
120  meRowLayer2Ring6_ = dbe_->book1D("row_layer2ring6","Digi row",50, 0., 200.);
121  meRowLayer2Ring7_ = dbe_->book1D("row_layer2ring7","Digi row",50, 0., 200.);
122  meRowLayer2Ring8_ = dbe_->book1D("row_layer2ring8","Digi row",50, 0., 200.);
123 
124  meColLayer2Ring1_ = dbe_->book1D("col_layer2ring1","Digi column",50, 0., 500.);
125  meColLayer2Ring2_ = dbe_->book1D("col_layer2ring2","Digi column",50, 0., 500.);
126  meColLayer2Ring3_ = dbe_->book1D("col_layer2ring3","Digi column",50, 0., 500.);
127  meColLayer2Ring4_ = dbe_->book1D("col_layer2ring4","Digi column",50, 0., 500.);
128  meColLayer2Ring5_ = dbe_->book1D("col_layer2ring5","Digi column",50, 0., 500.);
129  meColLayer2Ring6_ = dbe_->book1D("col_layer2ring6","Digi column",50, 0., 500.);
130  meColLayer2Ring7_ = dbe_->book1D("col_layer2ring7","Digi column",50, 0., 500.);
131  meColLayer2Ring8_ = dbe_->book1D("col_layer2ring8","Digi column",50, 0., 500.);
132 
133 
134  meAdcLayer3Ring1_ = dbe_->book1D("adc_layer3ring1","Digi charge",50, 0., 300.);
135  meAdcLayer3Ring2_ = dbe_->book1D("adc_layer3ring2","Digi charge",50, 0., 300.);
136  meAdcLayer3Ring3_ = dbe_->book1D("adc_layer3ring3","Digi charge",50, 0., 300.);
137  meAdcLayer3Ring4_ = dbe_->book1D("adc_layer3ring4","Digi charge",50, 0., 300.);
138  meAdcLayer3Ring5_ = dbe_->book1D("adc_layer3ring5","Digi charge",50, 0., 300.);
139  meAdcLayer3Ring6_ = dbe_->book1D("adc_layer3ring6","Digi charge",50, 0., 300.);
140  meAdcLayer3Ring7_ = dbe_->book1D("adc_layer3ring7","Digi charge",50, 0., 300.);
141  meAdcLayer3Ring8_ = dbe_->book1D("adc_layer3ring8","Digi charge",50, 0., 300.);
142 
143  meRowLayer3Ring1_ = dbe_->book1D("row_layer3ring1","Digi row",50, 0., 200.);
144  meRowLayer3Ring2_ = dbe_->book1D("row_layer3ring2","Digi row",50, 0., 200.);
145  meRowLayer3Ring3_ = dbe_->book1D("row_layer3ring3","Digi row",50, 0., 200.);
146  meRowLayer3Ring4_ = dbe_->book1D("row_layer3ring4","Digi row",50, 0., 200.);
147  meRowLayer3Ring5_ = dbe_->book1D("row_layer3ring5","Digi row",50, 0., 200.);
148  meRowLayer3Ring6_ = dbe_->book1D("row_layer3ring6","Digi row",50, 0., 200.);
149  meRowLayer3Ring7_ = dbe_->book1D("row_layer3ring7","Digi row",50, 0., 200.);
150  meRowLayer3Ring8_ = dbe_->book1D("row_layer3ring8","Digi row",50, 0., 200.);
151 
152  meColLayer3Ring1_ = dbe_->book1D("col_layer3ring1","Digi column",50, 0., 500.);
153  meColLayer3Ring2_ = dbe_->book1D("col_layer3ring2","Digi column",50, 0., 500.);
154  meColLayer3Ring3_ = dbe_->book1D("col_layer3ring3","Digi column",50, 0., 500.);
155  meColLayer3Ring4_ = dbe_->book1D("col_layer3ring4","Digi column",50, 0., 500.);
156  meColLayer3Ring5_ = dbe_->book1D("col_layer3ring5","Digi column",50, 0., 500.);
157  meColLayer3Ring6_ = dbe_->book1D("col_layer3ring6","Digi column",50, 0., 500.);
158  meColLayer3Ring7_ = dbe_->book1D("col_layer3ring7","Digi column",50, 0., 500.);
159  meColLayer3Ring8_ = dbe_->book1D("col_layer3ring8","Digi column",50, 0., 500.);
160 
161  meDigiMultiLayer1Ladders_ =dbe_->bookProfile("digi_layer1_ladders","Digi Num. per ladder",22,0.0,21.0, 100, 0.0, 100);
162  meDigiMultiLayer2Ladders_ =dbe_->bookProfile("digi_layer2_ladders","Digi Num. per ladder",34,0.0,32.0, 100, 0.0, 100);
163  meDigiMultiLayer3Ladders_ =dbe_->bookProfile("digi_layer3_ladders","Digi Num. per ladder",46,0.0,45.0, 100, 0.0, 100);
164 
165  //Forward Pixel
166  /* ZMinus Side 1st Disk */
167  meAdcZmDisk1Panel1Plaq1_ = dbe_->book1D("adc_zm_disk1_panel1_plaq1","Digi charge",50,0.,300.);
168  meAdcZmDisk1Panel1Plaq2_ = dbe_->book1D("adc_zm_disk1_panel1_plaq2","Digi charge",50,0.,300.);
169  meAdcZmDisk1Panel1Plaq3_ = dbe_->book1D("adc_zm_disk1_panel1_plaq3","Digi charge",50,0.,300.);
170  meAdcZmDisk1Panel1Plaq4_ = dbe_->book1D("adc_zm_disk1_panel1_plaq4","Digi charge",50,0.,300.);
171  meAdcZmDisk1Panel2Plaq1_ = dbe_->book1D("adc_zm_disk1_panel2_plaq1","Digi charge",50,0.,300.);
172  meAdcZmDisk1Panel2Plaq2_ = dbe_->book1D("adc_zm_disk1_panel2_plaq2","Digi charge",50,0.,300.);
173  meAdcZmDisk1Panel2Plaq3_ = dbe_->book1D("adc_zm_disk1_panel2_plaq3","Digi charge",50,0.,300.);
174 
175  meRowZmDisk1Panel1Plaq1_ = dbe_->book1D("row_zm_disk1_panel1_plaq1","Digi row",50,0.,100.);
176  meRowZmDisk1Panel1Plaq2_ = dbe_->book1D("row_zm_disk1_panel1_plaq2","Digi row",50,0.,200.);
177  meRowZmDisk1Panel1Plaq3_ = dbe_->book1D("row_zm_disk1_panel1_plaq3","Digi row",50,0.,200.);
178  meRowZmDisk1Panel1Plaq4_ = dbe_->book1D("row_zm_disk1_panel1_plaq4","Digi row",50,0.,100.);
179  meRowZmDisk1Panel2Plaq1_ = dbe_->book1D("row_zm_disk1_panel2_plaq1","Digi row",50,0.,200.);
180  meRowZmDisk1Panel2Plaq2_ = dbe_->book1D("row_zm_disk1_panel2_plaq2","Digi row",50,0.,200.);
181  meRowZmDisk1Panel2Plaq3_ = dbe_->book1D("row_zm_disk1_panel2_plaq3","Digi row",50,0.,200.);
182 
183  meColZmDisk1Panel1Plaq1_ = dbe_->book1D("col_zm_disk1_panel1_plaq1","Digi column",50,0.,150.);
184  meColZmDisk1Panel1Plaq2_ = dbe_->book1D("col_zm_disk1_panel1_plaq2","Digi column",50,0.,200.);
185  meColZmDisk1Panel1Plaq3_ = dbe_->book1D("col_zm_disk1_panel1_plaq3","Digi column",50,0.,250.);
186  meColZmDisk1Panel1Plaq4_ = dbe_->book1D("col_zm_disk1_panel1_plaq4","Digi column",50,0.,300.);
187  meColZmDisk1Panel2Plaq1_ = dbe_->book1D("col_zm_disk1_panel2_plaq1","Digi column",50,0.,200.);
188  meColZmDisk1Panel2Plaq2_ = dbe_->book1D("col_zm_disk1_panel2_plaq2","Digi column",50,0.,250.);
189  meColZmDisk1Panel2Plaq3_ = dbe_->book1D("col_zm_disk1_panel2_plaq3","Digi column",50,0.,300.);
190  meNdigiZmDisk1PerPanel1_ = dbe_->book1D("digi_zm_disk1_panel1","Digi Num. Panel1 Of 1st Disk In ZMinus Side ",30,0.,30.);
191  meNdigiZmDisk1PerPanel2_ = dbe_->book1D("digi_zm_disk1_panel2","Digi Num. Panel2 Of 1st Disk In ZMinus Side ",30,0.,30.);
192 
193  /* ZMius Side 2nd disk */
194  meAdcZmDisk2Panel1Plaq1_ = dbe_->book1D("adc_zm_disk2_panel1_plaq1","Digi charge",50,0.,300.);
195  meAdcZmDisk2Panel1Plaq2_ = dbe_->book1D("adc_zm_disk2_panel1_plaq2","Digi charge",50,0.,300.);
196  meAdcZmDisk2Panel1Plaq3_ = dbe_->book1D("adc_zm_disk2_panel1_plaq3","Digi charge",50,0.,300.);
197  meAdcZmDisk2Panel1Plaq4_ = dbe_->book1D("adc_zm_disk2_panel1_plaq4","Digi charge",50,0.,300.);
198  meAdcZmDisk2Panel2Plaq1_ = dbe_->book1D("adc_zm_disk2_panel2_plaq1","Digi charge",50,0.,300.);
199  meAdcZmDisk2Panel2Plaq2_ = dbe_->book1D("adc_zm_disk2_panel2_plaq2","Digi charge",50,0.,300.);
200  meAdcZmDisk2Panel2Plaq3_ = dbe_->book1D("adc_zm_disk2_panel2_plaq3","Digi charge",50,0.,300.);
201 
202  meRowZmDisk2Panel1Plaq1_ = dbe_->book1D("row_zm_disk2_panel1_plaq1","Digi row",50,0.,100.);
203  meRowZmDisk2Panel1Plaq2_ = dbe_->book1D("row_zm_disk2_panel1_plaq2","Digi row",50,0.,200.);
204  meRowZmDisk2Panel1Plaq3_ = dbe_->book1D("row_zm_disk2_panel1_plaq3","Digi row",50,0.,200.);
205  meRowZmDisk2Panel1Plaq4_ = dbe_->book1D("row_zm_disk2_panel1_plaq4","Digi row",50,0.,100.);
206  meRowZmDisk2Panel2Plaq1_ = dbe_->book1D("row_zm_disk2_panel2_plaq1","Digi row",50,0.,200.);
207  meRowZmDisk2Panel2Plaq2_ = dbe_->book1D("row_zm_disk2_panel2_plaq2","Digi row",50,0.,200.);
208  meRowZmDisk2Panel2Plaq3_ = dbe_->book1D("row_zm_disk2_panel2_plaq3","Digi row",50,0.,200.);
209 
210  meColZmDisk2Panel1Plaq1_ = dbe_->book1D("col_zm_disk2_panel1_plaq1","Digi Column",50,0.,150.);
211  meColZmDisk2Panel1Plaq2_ = dbe_->book1D("col_zm_disk2_panel1_plaq2","Digi Column",50,0.,200.);
212  meColZmDisk2Panel1Plaq3_ = dbe_->book1D("col_zm_disk2_panel1_plaq3","Digi Column",50,0.,250.);
213  meColZmDisk2Panel1Plaq4_ = dbe_->book1D("col_zm_disk2_panel1_plaq4","Digi Column",50,0.,300.);
214  meColZmDisk2Panel2Plaq1_ = dbe_->book1D("col_zm_disk2_panel2_plaq1","Digi Column",50,0.,200.);
215  meColZmDisk2Panel2Plaq2_ = dbe_->book1D("col_zm_disk2_panel2_plaq2","Digi Column",50,0.,250.);
216  meColZmDisk2Panel2Plaq3_ = dbe_->book1D("col_zm_disk2_panel2_plaq3","Digi Column",50,0.,300.);
217  meNdigiZmDisk2PerPanel1_ = dbe_->book1D("digi_zm_disk2_panel1","Digi Num. Panel1 Of 2nd Disk In ZMinus Side ",30,0.,30.);
218  meNdigiZmDisk2PerPanel2_ = dbe_->book1D("digi_zm_disk2_panel2","Digi Num. Panel2 Of 2nd Disk In ZMinus Side ",30,0.,30.);
219 
220 
221  /* ZPlus Side 1st Disk */
222  meAdcZpDisk1Panel1Plaq1_ = dbe_->book1D("adc_zp_disk1_panel1_plaq1","Digi charge",50,0.,300.);
223  meAdcZpDisk1Panel1Plaq2_ = dbe_->book1D("adc_zp_disk1_panel1_plaq2","Digi charge",50,0.,300.);
224  meAdcZpDisk1Panel1Plaq3_ = dbe_->book1D("adc_zp_disk1_panel1_plaq3","Digi charge",50,0.,300.);
225  meAdcZpDisk1Panel1Plaq4_ = dbe_->book1D("adc_zp_disk1_panel1_plaq4","Digi charge",50,0.,300.);
226  meAdcZpDisk1Panel2Plaq1_ = dbe_->book1D("adc_zp_disk1_panel2_plaq1","Digi charge",50,0.,300.);
227  meAdcZpDisk1Panel2Plaq2_ = dbe_->book1D("adc_zp_disk1_panel2_plaq2","Digi charge",50,0.,300.);
228  meAdcZpDisk1Panel2Plaq3_ = dbe_->book1D("adc_zp_disk1_panel2_plaq3","Digi charge",50,0.,300.);
229 
230  meRowZpDisk1Panel1Plaq1_ = dbe_->book1D("row_zp_disk1_panel1_plaq1","Digi row",50,0.,100.);
231  meRowZpDisk1Panel1Plaq2_ = dbe_->book1D("row_zp_disk1_panel1_plaq2","Digi row",50,0.,200.);
232  meRowZpDisk1Panel1Plaq3_ = dbe_->book1D("row_zp_disk1_panel1_plaq3","Digi row",50,0.,200.);
233  meRowZpDisk1Panel1Plaq4_ = dbe_->book1D("row_zp_disk1_panel1_plaq4","Digi row",50,0.,100.);
234  meRowZpDisk1Panel2Plaq1_ = dbe_->book1D("row_zp_disk1_panel2_plaq1","Digi row",50,0.,200.);
235  meRowZpDisk1Panel2Plaq2_ = dbe_->book1D("row_zp_disk1_panel2_plaq2","Digi row",50,0.,200.);
236  meRowZpDisk1Panel2Plaq3_ = dbe_->book1D("row_zp_disk1_panel2_plaq3","Digi row",50,0.,200.);
237 
238  meColZpDisk1Panel1Plaq1_ = dbe_->book1D("col_zp_disk1_panel1_plaq1","Digi Column",50,0.,150.);
239  meColZpDisk1Panel1Plaq2_ = dbe_->book1D("col_zp_disk1_panel1_plaq2","Digi column",50,0.,200.);
240  meColZpDisk1Panel1Plaq3_ = dbe_->book1D("col_zp_disk1_panel1_plaq3","Digi column",50,0.,250.);
241  meColZpDisk1Panel1Plaq4_ = dbe_->book1D("col_zp_disk1_panel1_plaq4","Digi column",50,0.,300.);
242  meColZpDisk1Panel2Plaq1_ = dbe_->book1D("col_zp_disk1_panel2_plaq1","Digi column",50,0.,200.);
243  meColZpDisk1Panel2Plaq2_ = dbe_->book1D("col_zp_disk1_panel2_plaq2","Digi column",50,0.,250.);
244  meColZpDisk1Panel2Plaq3_ = dbe_->book1D("col_zp_disk1_panel2_plaq3","Digi column",50,0.,300.);
245  meNdigiZpDisk1PerPanel1_ = dbe_->book1D("digi_zp_disk1_panel1","Digi Num. Panel1 Of 1st Disk In ZPlus Side ",30,0.,30.);
246  meNdigiZpDisk1PerPanel2_ = dbe_->book1D("digi_zp_disk1_panel2","Digi Num. Panel2 Of 1st Disk In ZPlus Side ",30,0.,30.);
247 
248 
249  /* ZPlus Side 2nd disk */
250  meAdcZpDisk2Panel1Plaq1_ = dbe_->book1D("adc_zp_disk2_panel1_plaq1","Digi charge",50,0.,300.);
251  meAdcZpDisk2Panel1Plaq2_ = dbe_->book1D("adc_zp_disk2_panel1_plaq2","Digi charge",50,0.,300.);
252  meAdcZpDisk2Panel1Plaq3_ = dbe_->book1D("adc_zp_disk2_panel1_plaq3","Digi charge",50,0.,300.);
253  meAdcZpDisk2Panel1Plaq4_ = dbe_->book1D("adc_zp_disk2_panel1_plaq4","Digi charge",50,0.,300.);
254  meAdcZpDisk2Panel2Plaq1_ = dbe_->book1D("adc_zp_disk2_panel2_plaq1","Digi charge",50,0.,300.);
255  meAdcZpDisk2Panel2Plaq2_ = dbe_->book1D("adc_zp_disk2_panel2_plaq2","Digi charge",50,0.,300.);
256  meAdcZpDisk2Panel2Plaq3_ = dbe_->book1D("adc_zp_disk2_panel2_plaq3","Digi charge",50,0.,300.);
257 
258  meRowZpDisk2Panel1Plaq1_ = dbe_->book1D("row_zp_disk2_panel1_plaq1","Digi row",10,0.,100.);
259  meRowZpDisk2Panel1Plaq2_ = dbe_->book1D("row_zp_disk2_panel1_plaq2","Digi row",10,0.,200.);
260  meRowZpDisk2Panel1Plaq3_ = dbe_->book1D("row_zp_disk2_panel1_plaq3","Digi row",10,0.,200.);
261  meRowZpDisk2Panel1Plaq4_ = dbe_->book1D("row_zp_disk2_panel1_plaq4","Digi row",10,0.,100.);
262  meRowZpDisk2Panel2Plaq1_ = dbe_->book1D("row_zp_disk2_panel2_plaq1","Digi row",10,0.,200.);
263  meRowZpDisk2Panel2Plaq2_ = dbe_->book1D("row_zp_disk2_panel2_plaq2","Digi row",10,0.,200.);
264  meRowZpDisk2Panel2Plaq3_ = dbe_->book1D("row_zp_disk2_panel2_plaq3","Digi row",10,0.,200.);
265 
266  meColZpDisk2Panel1Plaq1_ = dbe_->book1D("col_zp_disk2_panel1_plaq1","Digi column",50,0.,150.);
267  meColZpDisk2Panel1Plaq2_ = dbe_->book1D("col_zp_disk2_panel1_plaq2","Digi column",50,0.,200.);
268  meColZpDisk2Panel1Plaq3_ = dbe_->book1D("col_zp_disk2_panel1_plaq3","Digi column",50,0.,250.);
269  meColZpDisk2Panel1Plaq4_ = dbe_->book1D("col_zp_disk2_panel1_plaq4","Digi column",50,0.,300.);
270  meColZpDisk2Panel2Plaq1_ = dbe_->book1D("col_zp_disk2_panel2_plaq1","Digi column",50,0.,200.);
271  meColZpDisk2Panel2Plaq2_ = dbe_->book1D("col_zp_disk2_panel2_plaq2","Digi column",50,0.,250.);
272  meColZpDisk2Panel2Plaq3_ = dbe_->book1D("col_zp_disk2_panel2_plaq3","Digi column",50,0.,300.);
273  meNdigiZpDisk2PerPanel1_ = dbe_->book1D("digi_zp_disk2_panel1","Digi Num. Panel1 Of 2nd Disk In ZPlus Side ",30,0.,30.);
274  meNdigiZpDisk2PerPanel2_ = dbe_->book1D("digi_zp_disk2_panel2","Digi Num. Panel2 Of 2nd Disk In ZPlus Side ",30,0.,30.);
275  }
276 }
277 
279  if ( outputFile_.size() != 0 && dbe_ ) dbe_->save(outputFile_);
280 }
281 
282 
284  //Retrieve tracker topology from geometry
285  edm::ESHandle<TrackerTopology> tTopoHandle;
286  c.get<IdealGeometryRecord>().get(tTopoHandle);
287  const TrackerTopology* const tTopo = tTopoHandle.product();
288 
289 
290 
291  int ndigiperRingLayer1[8];
292  int ndigiperRingLayer2[8];
293  int ndigiperRingLayer3[8];
294  for(int i = 0; i< 8; i++ ) {
295  ndigiperRingLayer1[i] = 0;
296  ndigiperRingLayer2[i] = 0;
297  ndigiperRingLayer3[i] = 0;
298  }
299 
300 int ndigiZpDisk1PerPanel1[24];
301 int ndigiZpDisk1PerPanel2[24];
302 int ndigiZpDisk2PerPanel1[24];
303 int ndigiZpDisk2PerPanel2[24];
304 int ndigiZmDisk1PerPanel1[24];
305 int ndigiZmDisk1PerPanel2[24];
306 int ndigiZmDisk2PerPanel1[24];
307 int ndigiZmDisk2PerPanel2[24];
308 
309 for ( int i =0 ; i< 24; i++) {
310  ndigiZpDisk1PerPanel1[i] = 0;
311  ndigiZpDisk1PerPanel2[i] = 0;
312  ndigiZpDisk2PerPanel1[i] = 0;
313  ndigiZpDisk2PerPanel2[i] = 0;
314  ndigiZmDisk1PerPanel1[i] = 0;
315  ndigiZmDisk1PerPanel2[i] = 0;
316  ndigiZmDisk2PerPanel1[i] = 0;
317  ndigiZmDisk2PerPanel2[i] = 0;
318 }
319 
320 int ndigilayer1ladders[20];
321 int ndigilayer2ladders[32];
322 int ndigilayer3ladders[44];
323 
324 for ( int i =0 ; i< 20; i++) {
325  ndigilayer1ladders[i]= 0;
326 }
327 
328 for ( int i =0 ; i< 32; i++) {
329  ndigilayer2ladders[i] = 0;
330 }
331 
332 for ( int i =0 ; i< 44; i++) {
333  ndigilayer3ladders[i] = 0;
334 }
335 
336  //LogInfo("EventInfo") << " Run = " << e.id().run() << " Event = " << e.id().event();
337 
339  c.get<TrackerDigiGeometryRecord>().get( tracker );
340 
341  //string digiProducer = "siPixelDigis";
344 
345  edm::DetSetVector<PixelDigi>::const_iterator DSViter = pixelDigis->begin();
346  for( ; DSViter != pixelDigis->end(); DSViter++) {
347  unsigned int id = DSViter->id;
348  DetId detId(id);
352 
354 
355  unsigned int layer = tTopo->pxbLayer(id); // Layer:1,2,3.
356  unsigned int ladder = tTopo->pxbLadder(id); // Ladeer: 1-20, 32, 44.
357  unsigned int zindex = tTopo->pxbModule(id); // Z-index: 1-8.
358  //LogInfo("SiPixelDigiValid")<<"Barrel:: Layer="<<layer<<" Ladder="<<ladder<<" zindex="<<zindex;
359  for ( iter = begin ; iter != end; iter++ ) {
360  if( layer == 1 ) {
361  ++ndigilayer1ladders[ladder-1];
362  ++ndigiperRingLayer1[zindex-1];
363  if (zindex == 1) {
364  meAdcLayer1Ring1_->Fill((*iter).adc());
365  meRowLayer1Ring1_->Fill((*iter).row());
366  meColLayer1Ring1_->Fill((*iter).column());
367  }
368  if (zindex == 2) {
369  meAdcLayer1Ring2_->Fill((*iter).adc());
370  meRowLayer1Ring2_->Fill((*iter).row());
371  meColLayer1Ring2_->Fill((*iter).column());
372  }
373 
374  if (zindex == 3) {
375  meAdcLayer1Ring3_->Fill((*iter).adc());
376  meRowLayer1Ring3_->Fill((*iter).row());
377  meColLayer1Ring3_->Fill((*iter).column());
378  }
379 
380  if (zindex == 4) {
381  meAdcLayer1Ring4_->Fill((*iter).adc());
382  meRowLayer1Ring4_->Fill((*iter).row());
383  meColLayer1Ring4_->Fill((*iter).column());
384  }
385 
386  if (zindex == 5) {
387  meAdcLayer1Ring5_->Fill((*iter).adc());
388  meRowLayer1Ring5_->Fill((*iter).row());
389  meColLayer1Ring5_->Fill((*iter).column());
390  }
391 
392  if (zindex == 6) {
393  meAdcLayer1Ring6_->Fill((*iter).adc());
394  meRowLayer1Ring6_->Fill((*iter).row());
395  meColLayer1Ring6_->Fill((*iter).column());
396  }
397 
398  if (zindex == 7) {
399  meAdcLayer1Ring7_->Fill((*iter).adc());
400  meRowLayer1Ring7_->Fill((*iter).row());
401  meColLayer1Ring7_->Fill((*iter).column());
402  }
403  if (zindex == 8) {
404  meAdcLayer1Ring8_->Fill((*iter).adc());
405  meRowLayer1Ring8_->Fill((*iter).row());
406  meColLayer1Ring8_->Fill((*iter).column());
407  }
408 
409  }
410  if( layer == 2 ) {
411  ++ndigilayer2ladders[ladder-1];
412  ++ndigiperRingLayer2[zindex-1];
413  if (zindex == 1) {
414  meAdcLayer2Ring1_->Fill((*iter).adc());
415  meRowLayer2Ring1_->Fill((*iter).row());
416  meColLayer2Ring1_->Fill((*iter).column());
417  }
418  if (zindex == 2) {
419  meAdcLayer2Ring2_->Fill((*iter).adc());
420  meRowLayer2Ring2_->Fill((*iter).row());
421  meColLayer2Ring2_->Fill((*iter).column());
422  }
423 
424  if (zindex == 3) {
425  meAdcLayer2Ring3_->Fill((*iter).adc());
426  meRowLayer2Ring3_->Fill((*iter).row());
427  meColLayer2Ring3_->Fill((*iter).column());
428  }
429 
430  if (zindex == 4) {
431  meAdcLayer2Ring4_->Fill((*iter).adc());
432  meRowLayer2Ring4_->Fill((*iter).row());
433  meColLayer2Ring4_->Fill((*iter).column());
434  }
435 
436  if (zindex == 5) {
437  meAdcLayer2Ring5_->Fill((*iter).adc());
438  meRowLayer2Ring5_->Fill((*iter).row());
439  meColLayer2Ring5_->Fill((*iter).column());
440  }
441 
442  if (zindex == 6) {
443  meAdcLayer2Ring6_->Fill((*iter).adc());
444  meRowLayer2Ring6_->Fill((*iter).row());
445  meColLayer2Ring6_->Fill((*iter).column());
446  }
447 
448  if (zindex == 7) {
449  meAdcLayer2Ring7_->Fill((*iter).adc());
450  meRowLayer2Ring7_->Fill((*iter).row());
451  meColLayer2Ring7_->Fill((*iter).column());
452  }
453  if (zindex == 8) {
454  meAdcLayer2Ring8_->Fill((*iter).adc());
455  meRowLayer2Ring8_->Fill((*iter).row());
456  meColLayer2Ring8_->Fill((*iter).column());
457  }
458 
459  }
460  if( layer == 3 ) {
461  ++ndigilayer3ladders[ladder-1];
462  ++ndigiperRingLayer3[zindex-1];
463  if (zindex == 1) {
464  meAdcLayer3Ring1_->Fill((*iter).adc());
465  meRowLayer3Ring1_->Fill((*iter).row());
466  meColLayer3Ring1_->Fill((*iter).column());
467  }
468  if (zindex == 2) {
469  meAdcLayer3Ring2_->Fill((*iter).adc());
470  meRowLayer3Ring2_->Fill((*iter).row());
471  meColLayer3Ring2_->Fill((*iter).column());
472  }
473 
474  if (zindex == 3) {
475  meAdcLayer3Ring3_->Fill((*iter).adc());
476  meRowLayer3Ring3_->Fill((*iter).row());
477  meColLayer3Ring3_->Fill((*iter).column());
478  }
479 
480  if (zindex == 4) {
481  meAdcLayer3Ring4_->Fill((*iter).adc());
482  meRowLayer3Ring4_->Fill((*iter).row());
483  meColLayer3Ring4_->Fill((*iter).column());
484  }
485 
486  if (zindex == 5) {
487  meAdcLayer3Ring5_->Fill((*iter).adc());
488  meRowLayer3Ring5_->Fill((*iter).row());
489  meColLayer3Ring5_->Fill((*iter).column());
490  }
491 
492  if (zindex == 6) {
493  meAdcLayer3Ring6_->Fill((*iter).adc());
494  meRowLayer3Ring6_->Fill((*iter).row());
495  meColLayer3Ring6_->Fill((*iter).column());
496  }
497 
498  if (zindex == 7) {
499  meAdcLayer3Ring7_->Fill((*iter).adc());
500  meRowLayer3Ring7_->Fill((*iter).row());
501  meColLayer3Ring7_->Fill((*iter).column());
502  }
503  if (zindex == 8) {
504  meAdcLayer3Ring8_->Fill((*iter).adc());
505  meRowLayer3Ring8_->Fill((*iter).row());
506  meColLayer3Ring8_->Fill((*iter).column());
507  }
508  }
509 
510  }
511 
512  }
513 
514  if(detId.subdetId()==PixelSubdetector::PixelEndcap ){ //Endcap
515 
516  unsigned int side = tTopo->pxfSide(id);
517  unsigned int disk = tTopo->pxfDisk(id);
518  unsigned int blade = tTopo->pxfBlade(id);
519  unsigned int panel = tTopo->pxfPanel(id);
520  unsigned int mod = tTopo->pxfModule(id);
521  //LogInfo("SiPixelDigiValid")<<"EndcaP="<<side<<" Disk="<<disk<<" Blade="<<blade<<" Panel="<<panel<<" Module="<<mod;
522  for ( iter = begin ; iter != end; iter++ ) {
523  if(side == 1 && disk == 1 && panel ==1 ){
524  if ( mod == 1 ) {
525  meAdcZmDisk1Panel1Plaq1_->Fill((*iter).adc());
526  meRowZmDisk1Panel1Plaq1_->Fill((*iter).row());
527  meColZmDisk1Panel1Plaq1_->Fill((*iter).column());
528  }else if( mod == 2 ) {
529  meAdcZmDisk1Panel1Plaq2_->Fill((*iter).adc());
530  meRowZmDisk1Panel1Plaq2_->Fill((*iter).row());
531  meColZmDisk1Panel1Plaq2_->Fill((*iter).column());
532  }else if( mod == 3 ) {
533  meAdcZmDisk1Panel1Plaq3_->Fill((*iter).adc());
534  meRowZmDisk1Panel1Plaq3_->Fill((*iter).row());
535  meColZmDisk1Panel1Plaq3_->Fill((*iter).column());
536  }else if( mod == 4 ) {
537  meAdcZmDisk1Panel1Plaq4_->Fill((*iter).adc());
538  meRowZmDisk1Panel1Plaq4_->Fill((*iter).row());
539  meColZmDisk1Panel1Plaq4_->Fill((*iter).column());
540  }else {
541  //LogError("SiPixelDigiValid")<<" The number of module is Wrong";
542  }
543  ++ndigiZmDisk1PerPanel1[blade-1];
544  }
545 
546  if(side == 1 && disk == 1 && panel ==2 ){
547  if ( mod == 1 ) {
548  meAdcZmDisk1Panel2Plaq1_->Fill((*iter).adc());
549  meRowZmDisk1Panel2Plaq1_->Fill((*iter).row());
550  meColZmDisk1Panel2Plaq1_->Fill((*iter).column());
551  }else if( mod == 2 ) {
552  meAdcZmDisk1Panel2Plaq2_->Fill((*iter).adc());
553  meRowZmDisk1Panel2Plaq2_->Fill((*iter).row());
554  meColZmDisk1Panel2Plaq2_->Fill((*iter).column());
555  }else if( mod == 3 ) {
556  meAdcZmDisk1Panel2Plaq3_->Fill((*iter).adc());
557  meRowZmDisk1Panel2Plaq3_->Fill((*iter).row());
558  meColZmDisk1Panel2Plaq3_->Fill((*iter).column());
559  }else {
560  //LogError("SiPixelDigiValid")<<" The number of module is Wrong";
561  }
562  ++ndigiZmDisk1PerPanel2[blade-1];
563  }
564 
565  if(side == 1 && disk == 2 && panel ==1 ){
566  if ( mod == 1 ) {
567  meAdcZmDisk2Panel1Plaq1_->Fill((*iter).adc());
568  meRowZmDisk2Panel1Plaq1_->Fill((*iter).row());
569  meColZmDisk2Panel1Plaq1_->Fill((*iter).column());
570  }else if( mod == 2 ) {
571  meAdcZmDisk2Panel1Plaq2_->Fill((*iter).adc());
572  meRowZmDisk2Panel1Plaq2_->Fill((*iter).row());
573  meColZmDisk2Panel1Plaq2_->Fill((*iter).column());
574  }else if( mod == 3 ) {
575  meAdcZmDisk2Panel1Plaq3_->Fill((*iter).adc());
576  meRowZmDisk2Panel1Plaq3_->Fill((*iter).row());
577  meColZmDisk2Panel1Plaq3_->Fill((*iter).column());
578  }else if( mod == 4 ) {
579  meAdcZmDisk2Panel1Plaq4_->Fill((*iter).adc());
580  meRowZmDisk2Panel1Plaq4_->Fill((*iter).row());
581  meColZmDisk2Panel1Plaq4_->Fill((*iter).column());
582  }else {
583  // LogError("SiPixelDigiValid")<<" The number of module is Wrong";
584  }
585  ++ndigiZmDisk2PerPanel1[blade-1];
586  }
587 
588  if(side == 1 && disk == 2 && panel ==2 ){
589  if ( mod == 1 ) {
590  meAdcZmDisk2Panel2Plaq1_->Fill((*iter).adc());
591  meRowZmDisk2Panel2Plaq1_->Fill((*iter).row());
592  meColZmDisk2Panel2Plaq1_->Fill((*iter).column());
593  }else if( mod == 2 ) {
594  meAdcZmDisk2Panel2Plaq2_->Fill((*iter).adc());
595  meRowZmDisk2Panel2Plaq2_->Fill((*iter).row());
596  meColZmDisk2Panel2Plaq2_->Fill((*iter).column());
597  }else if( mod == 3 ) {
598  meAdcZmDisk2Panel2Plaq3_->Fill((*iter).adc());
599  meRowZmDisk2Panel2Plaq3_->Fill((*iter).row());
600  meColZmDisk2Panel2Plaq3_->Fill((*iter).column());
601  }else {
602  //LogError("SiPixelDigiValid")<<" The number of module is Wrong";
603  }
604  ++ndigiZmDisk2PerPanel2[blade-1];
605  }
606 
607 
608  if(side == 2 && disk == 1 && panel ==1 ){
609  if ( mod == 1 ) {
610  meAdcZpDisk1Panel1Plaq1_->Fill((*iter).adc());
611  meRowZpDisk1Panel1Plaq1_->Fill((*iter).row());
612  meColZpDisk1Panel1Plaq1_->Fill((*iter).column());
613  }else if( mod == 2 ) {
614  meAdcZpDisk1Panel1Plaq2_->Fill((*iter).adc());
615  meRowZpDisk1Panel1Plaq2_->Fill((*iter).row());
616  meColZpDisk1Panel1Plaq2_->Fill((*iter).column());
617  }else if( mod == 3 ) {
618  meAdcZpDisk1Panel1Plaq3_->Fill((*iter).adc());
619  meRowZpDisk1Panel1Plaq3_->Fill((*iter).row());
620  meColZpDisk1Panel1Plaq3_->Fill((*iter).column());
621  }else if( mod == 4 ) {
622  meAdcZpDisk1Panel1Plaq4_->Fill((*iter).adc());
623  meRowZpDisk1Panel1Plaq4_->Fill((*iter).row());
624  meColZpDisk1Panel1Plaq4_->Fill((*iter).column());
625  }else {
626  //LogError("SiPixelDigiValid")<<" The number of module is Wrong";
627  }
628  ++ndigiZpDisk1PerPanel1[blade-1];
629  }
630 
631  if(side == 2 && disk == 1 && panel ==2 ){
632  if ( mod == 1 ) {
633  meAdcZpDisk1Panel2Plaq1_->Fill((*iter).adc());
634  meRowZpDisk1Panel2Plaq1_->Fill((*iter).row());
635  meColZpDisk1Panel2Plaq1_->Fill((*iter).column());
636  }else if( mod == 2 ) {
637  meAdcZpDisk1Panel2Plaq2_->Fill((*iter).adc());
638  meRowZpDisk1Panel2Plaq2_->Fill((*iter).row());
639  meColZpDisk1Panel2Plaq2_->Fill((*iter).column());
640  }else if( mod == 3 ) {
641  meAdcZpDisk1Panel2Plaq3_->Fill((*iter).adc());
642  meRowZpDisk1Panel2Plaq3_->Fill((*iter).row());
643  meColZpDisk1Panel2Plaq3_->Fill((*iter).column());
644  }else {
645  //LogError("SiPixelDigiValid")<<" The number of module is Wrong";
646  }
647  ++ndigiZpDisk1PerPanel2[blade-1];
648  }
649 
650  if(side == 2 && disk == 2 && panel ==1 ){
651  if ( mod == 1 ) {
652  meAdcZpDisk2Panel1Plaq1_->Fill((*iter).adc());
653  meRowZpDisk2Panel1Plaq1_->Fill((*iter).row());
654  meColZpDisk2Panel1Plaq1_->Fill((*iter).column());
655  }else if( mod == 2 ) {
656  meAdcZpDisk2Panel1Plaq2_->Fill((*iter).adc());
657  meRowZpDisk2Panel1Plaq2_->Fill((*iter).row());
658  meColZpDisk2Panel1Plaq2_->Fill((*iter).column());
659  }else if( mod == 3 ) {
660  meAdcZpDisk2Panel1Plaq3_->Fill((*iter).adc());
661  meRowZpDisk2Panel1Plaq3_->Fill((*iter).row());
662  meColZpDisk2Panel1Plaq3_->Fill((*iter).column());
663  }else if( mod == 4 ) {
664  meAdcZpDisk2Panel1Plaq4_->Fill((*iter).adc());
665  meRowZpDisk2Panel1Plaq4_->Fill((*iter).row());
666  meColZpDisk2Panel1Plaq4_->Fill((*iter).column());
667  }else {
668  //LogError("SiPixelDigiValid")<<" The number of module is Wrong";
669  }
670  ++ndigiZpDisk2PerPanel1[blade-1];
671 
672  }
673 
674  if(side == 2 && disk == 2 && panel ==2 ){
675  if ( mod == 1 ) {
676  meAdcZpDisk2Panel2Plaq1_->Fill((*iter).adc());
677  meRowZpDisk2Panel2Plaq1_->Fill((*iter).row());
678  meColZpDisk2Panel2Plaq1_->Fill((*iter).column());
679  }else if( mod == 2 ) {
680  meAdcZpDisk2Panel2Plaq2_->Fill((*iter).adc());
681  meRowZpDisk2Panel2Plaq2_->Fill((*iter).row());
682  meColZpDisk2Panel2Plaq2_->Fill((*iter).column());
683  }else if( mod == 3 ) {
684  meAdcZpDisk2Panel2Plaq3_->Fill((*iter).adc());
685  meRowZpDisk2Panel2Plaq3_->Fill((*iter).row());
686  meColZpDisk2Panel2Plaq3_->Fill((*iter).column());
687  }else {
688  //LogError("SiPixelDigiValid")<<" The number of module is Wrong";
689  }
690  ++ndigiZpDisk2PerPanel2[blade-1];
691  }
692  } //iterating the digi
693 
694  }//Endcap
695 
696  } // end for loop
697 
698  meDigiMultiLayer1Ring1_->Fill(ndigiperRingLayer1[0]);
699  meDigiMultiLayer1Ring2_->Fill(ndigiperRingLayer1[1]);
700  meDigiMultiLayer1Ring3_->Fill(ndigiperRingLayer1[2]);
701  meDigiMultiLayer1Ring4_->Fill(ndigiperRingLayer1[3]);
702  meDigiMultiLayer1Ring5_->Fill(ndigiperRingLayer1[4]);
703  meDigiMultiLayer1Ring6_->Fill(ndigiperRingLayer1[5]);
704  meDigiMultiLayer1Ring7_->Fill(ndigiperRingLayer1[6]);
705  meDigiMultiLayer1Ring8_->Fill(ndigiperRingLayer1[7]);
706 
707  meDigiMultiLayer2Ring1_->Fill(ndigiperRingLayer2[0]);
708  meDigiMultiLayer2Ring2_->Fill(ndigiperRingLayer2[1]);
709  meDigiMultiLayer2Ring3_->Fill(ndigiperRingLayer2[2]);
710  meDigiMultiLayer2Ring4_->Fill(ndigiperRingLayer2[3]);
711  meDigiMultiLayer2Ring5_->Fill(ndigiperRingLayer2[4]);
712  meDigiMultiLayer2Ring6_->Fill(ndigiperRingLayer2[5]);
713  meDigiMultiLayer2Ring7_->Fill(ndigiperRingLayer2[6]);
714  meDigiMultiLayer2Ring8_->Fill(ndigiperRingLayer2[7]);
715 
716  meDigiMultiLayer3Ring1_->Fill(ndigiperRingLayer3[0]);
717  meDigiMultiLayer3Ring2_->Fill(ndigiperRingLayer3[1]);
718  meDigiMultiLayer3Ring3_->Fill(ndigiperRingLayer3[2]);
719  meDigiMultiLayer3Ring4_->Fill(ndigiperRingLayer3[3]);
720  meDigiMultiLayer3Ring5_->Fill(ndigiperRingLayer3[4]);
721  meDigiMultiLayer3Ring6_->Fill(ndigiperRingLayer3[5]);
722  meDigiMultiLayer3Ring7_->Fill(ndigiperRingLayer3[6]);
723  meDigiMultiLayer3Ring8_->Fill(ndigiperRingLayer3[7]);
724 
725  for(int i =0; i< 24; i++) {
726  meNdigiZmDisk1PerPanel1_->Fill(ndigiZmDisk1PerPanel1[i]);
727  meNdigiZmDisk1PerPanel2_->Fill(ndigiZmDisk1PerPanel2[i]);
728  meNdigiZmDisk2PerPanel1_->Fill(ndigiZmDisk2PerPanel1[i]);
729  meNdigiZmDisk2PerPanel2_->Fill(ndigiZmDisk2PerPanel2[i]);
730  meNdigiZpDisk1PerPanel1_->Fill(ndigiZpDisk1PerPanel1[i]);
731  meNdigiZpDisk1PerPanel2_->Fill(ndigiZpDisk1PerPanel2[i]);
732  meNdigiZpDisk2PerPanel1_->Fill(ndigiZpDisk2PerPanel1[i]);
733  meNdigiZpDisk2PerPanel2_->Fill(ndigiZpDisk2PerPanel2[i]);
734  }
735 
736  for (int i =0; i< 20; i++) {
737  meDigiMultiLayer1Ladders_->Fill(i+1,ndigilayer1ladders[i]);
738  }
739 
740  for (int i =0; i< 32; i++) {
741  meDigiMultiLayer2Ladders_->Fill(i+1,ndigilayer2ladders[i]);
742  }
743 
744  for (int i =0; i< 44; i++) {
745  meDigiMultiLayer3Ladders_->Fill(i+1,ndigilayer3ladders[i]);
746  }
747 
748 }
MonitorElement * meColZpDisk1Panel1Plaq3_
MonitorElement * meColLayer3Ring7_
MonitorElement * meAdcLayer3Ring4_
MonitorElement * meRowZpDisk2Panel1Plaq1_
MonitorElement * meAdcLayer2Ring6_
MonitorElement * meColZmDisk2Panel2Plaq2_
MonitorElement * meRowZpDisk2Panel1Plaq3_
MonitorElement * meRowZmDisk2Panel2Plaq3_
MonitorElement * meAdcLayer3Ring5_
MonitorElement * meDigiMultiLayer3Ring7_
MonitorElement * meDigiMultiLayer1Ring3_
MonitorElement * meAdcZpDisk2Panel1Plaq1_
int i
Definition: DBlmapReader.cc:9
MonitorElement * meDigiMultiLayer2Ring1_
MonitorElement * meColLayer2Ring2_
MonitorElement * meDigiMultiLayer1Ring5_
MonitorElement * meAdcLayer1Ring2_
MonitorElement * meColLayer1Ring2_
MonitorElement * meNdigiZpDisk2PerPanel1_
MonitorElement * meAdcZmDisk2Panel1Plaq3_
MonitorElement * meColZmDisk2Panel1Plaq2_
MonitorElement * meAdcLayer1Ring8_
MonitorElement * meRowZpDisk2Panel1Plaq4_
MonitorElement * meRowZpDisk2Panel2Plaq1_
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > edmDetSetVector_PixelDigi_Token_
MonitorElement * meAdcLayer3Ring2_
MonitorElement * meRowLayer3Ring8_
MonitorElement * meColLayer2Ring3_
MonitorElement * meRowZpDisk1Panel1Plaq4_
MonitorElement * meAdcLayer2Ring3_
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:873
MonitorElement * meRowZpDisk1Panel2Plaq2_
MonitorElement * meAdcZmDisk1Panel2Plaq1_
MonitorElement * meRowZmDisk2Panel1Plaq1_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:434
MonitorElement * meColLayer1Ring4_
MonitorElement * meRowZmDisk1Panel1Plaq3_
unsigned int pxfDisk(const DetId &id) const
MonitorElement * meDigiMultiLayer1Ring7_
MonitorElement * meRowZpDisk2Panel2Plaq3_
MonitorElement * meDigiMultiLayer3Ring6_
MonitorElement * meColZmDisk1Panel1Plaq3_
MonitorElement * meAdcZmDisk1Panel1Plaq3_
MonitorElement * meDigiMultiLayer1Ring4_
MonitorElement * meRowZpDisk2Panel1Plaq2_
MonitorElement * meRowLayer3Ring7_
MonitorElement * meDigiMultiLayer3Ring3_
unsigned int pxbLadder(const DetId &id) const
MonitorElement * meAdcZmDisk2Panel2Plaq2_
MonitorElement * meColLayer2Ring4_
MonitorElement * meDigiMultiLayer3Ring8_
MonitorElement * meColZmDisk2Panel2Plaq3_
MonitorElement * meColZmDisk2Panel2Plaq1_
MonitorElement * meColLayer3Ring5_
MonitorElement * meColZmDisk1Panel2Plaq1_
MonitorElement * meRowLayer1Ring5_
MonitorElement * meColLayer1Ring7_
unsigned int pxbModule(const DetId &id) const
MonitorElement * meColLayer3Ring1_
MonitorElement * meAdcZpDisk2Panel1Plaq4_
MonitorElement * meRowZmDisk1Panel1Plaq4_
MonitorElement * meRowZmDisk1Panel1Plaq1_
MonitorElement * meRowLayer2Ring3_
MonitorElement * meDigiMultiLayer2Ring7_
MonitorElement * meDigiMultiLayer3Ring1_
MonitorElement * meColZpDisk1Panel2Plaq1_
MonitorElement * meColLayer1Ring1_
MonitorElement * meColLayer2Ring7_
MonitorElement * meColLayer1Ring3_
MonitorElement * meAdcZmDisk1Panel1Plaq4_
MonitorElement * meRowZpDisk1Panel1Plaq1_
MonitorElement * meAdcZpDisk1Panel2Plaq1_
MonitorElement * meColZpDisk1Panel2Plaq2_
MonitorElement * meAdcLayer1Ring4_
MonitorElement * meAdcLayer1Ring5_
MonitorElement * meRowLayer1Ring2_
MonitorElement * meAdcZmDisk2Panel1Plaq4_
MonitorElement * meAdcLayer1Ring1_
void Fill(long long x)
MonitorElement * meDigiMultiLayer1Ring2_
MonitorElement * meRowZmDisk1Panel2Plaq3_
MonitorElement * meColZpDisk1Panel1Plaq2_
MonitorElement * meRowZpDisk2Panel2Plaq2_
MonitorElement * meAdcLayer3Ring6_
MonitorElement * meRowLayer3Ring3_
MonitorElement * meAdcZpDisk2Panel2Plaq3_
MonitorElement * meColZmDisk1Panel2Plaq2_
MonitorElement * meAdcZpDisk2Panel1Plaq3_
MonitorElement * meDigiMultiLayer2Ring5_
MonitorElement * meColLayer2Ring5_
MonitorElement * meRowZpDisk1Panel1Plaq3_
SiPixelDigiValid(const edm::ParameterSet &ps)
MonitorElement * meColLayer1Ring6_
MonitorElement * meNdigiZmDisk1PerPanel1_
MonitorElement * meAdcZmDisk1Panel1Plaq2_
MonitorElement * meColZpDisk1Panel1Plaq1_
MonitorElement * meAdcZmDisk2Panel1Plaq1_
MonitorElement * meDigiMultiLayer3Ring2_
MonitorElement * meAdcZmDisk1Panel1Plaq1_
MonitorElement * meColZpDisk2Panel2Plaq1_
MonitorElement * meDigiMultiLayer2Ring2_
MonitorElement * meColZpDisk2Panel1Plaq1_
void beginRun(edm::Run const &r, edm::EventSetup const &es)
MonitorElement * meDigiMultiLayer2Ring4_
MonitorElement * meDigiMultiLayer2Ring6_
MonitorElement * meAdcZmDisk1Panel2Plaq3_
MonitorElement * meRowZmDisk2Panel2Plaq2_
MonitorElement * meColLayer1Ring8_
MonitorElement * meColZpDisk1Panel2Plaq3_
MonitorElement * meAdcZmDisk2Panel2Plaq1_
MonitorElement * meRowLayer1Ring4_
MonitorElement * meRowZmDisk2Panel1Plaq4_
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:2297
MonitorElement * meAdcLayer2Ring7_
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
Definition: DQMStore.cc:1187
#define end
Definition: vmac.h:37
MonitorElement * meRowZmDisk2Panel1Plaq2_
MonitorElement * meColZpDisk2Panel2Plaq3_
MonitorElement * meRowLayer3Ring6_
MonitorElement * meColLayer2Ring6_
MonitorElement * meColLayer3Ring8_
MonitorElement * meColZmDisk2Panel1Plaq3_
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
MonitorElement * meDigiMultiLayer2Ring8_
MonitorElement * meAdcLayer2Ring5_
MonitorElement * meAdcLayer3Ring7_
MonitorElement * meDigiMultiLayer1Ladders_
MonitorElement * meAdcZmDisk1Panel2Plaq2_
MonitorElement * meRowZmDisk2Panel2Plaq1_
iterator end()
Return the off-the-end iterator.
Definition: DetSetVector.h:356
MonitorElement * meRowLayer3Ring1_
MonitorElement * meRowLayer2Ring7_
MonitorElement * meAdcZpDisk2Panel2Plaq2_
DQMStore * dbe_
MonitorElement * meColLayer1Ring5_
unsigned int pxfModule(const DetId &id) const
MonitorElement * meAdcZpDisk1Panel1Plaq1_
Forwar Pixel.
MonitorElement * meDigiMultiLayer1Ring1_
MonitorElement * meColZmDisk1Panel1Plaq1_
MonitorElement * meAdcLayer2Ring8_
MonitorElement * meRowLayer1Ring6_
MonitorElement * meRowZmDisk1Panel1Plaq2_
unsigned int pxbLayer(const DetId &id) const
MonitorElement * meAdcZpDisk1Panel2Plaq2_
MonitorElement * meDigiMultiLayer3Ring5_
void analyze(const edm::Event &e, const edm::EventSetup &c)
Definition: DetId.h:18
MonitorElement * meRowZmDisk2Panel1Plaq3_
MonitorElement * meAdcZpDisk2Panel1Plaq2_
MonitorElement * meColLayer3Ring3_
MonitorElement * meRowLayer2Ring5_
MonitorElement * meAdcZpDisk1Panel1Plaq4_
MonitorElement * meAdcLayer1Ring7_
MonitorElement * meColZpDisk2Panel1Plaq4_
MonitorElement * meRowLayer2Ring1_
MonitorElement * meColLayer2Ring8_
MonitorElement * meAdcLayer2Ring1_
const T & get() const
Definition: EventSetup.h:55
MonitorElement * meAdcZmDisk2Panel1Plaq2_
MonitorElement * meDigiMultiLayer3Ladders_
T const * product() const
Definition: ESHandle.h:62
MonitorElement * meRowLayer3Ring4_
MonitorElement * meAdcLayer1Ring3_
MonitorElement * meNdigiZmDisk1PerPanel2_
MonitorElement * meDigiMultiLayer2Ladders_
MonitorElement * meNdigiZmDisk2PerPanel1_
MonitorElement * meDigiMultiLayer1Ring6_
MonitorElement * meRowLayer2Ring8_
MonitorElement * meRowLayer3Ring2_
MonitorElement * meAdcLayer3Ring8_
#define begin
Definition: vmac.h:30
std::string outputFile_
MonitorElement * meAdcZpDisk1Panel1Plaq2_
MonitorElement * meNdigiZpDisk1PerPanel2_
MonitorElement * meRowZmDisk1Panel2Plaq1_
MonitorElement * meColZmDisk1Panel1Plaq4_
MonitorElement * meAdcLayer3Ring3_
MonitorElement * meRowLayer1Ring3_
MonitorElement * meDigiMultiLayer2Ring3_
unsigned int pxfSide(const DetId &id) const
MonitorElement * meColZpDisk2Panel1Plaq3_
MonitorElement * meColZmDisk1Panel1Plaq2_
iterator begin()
Return an iterator to the first DetSet.
Definition: DetSetVector.h:341
MonitorElement * meColZmDisk2Panel1Plaq4_
MonitorElement * meDigiMultiLayer1Ring8_
MonitorElement * meRowZpDisk1Panel1Plaq2_
MonitorElement * meColLayer3Ring2_
MonitorElement * meAdcZpDisk1Panel2Plaq3_
MonitorElement * meRowLayer2Ring6_
MonitorElement * meRowLayer1Ring1_
collection_type::const_iterator const_iterator
Definition: DetSet.h:33
collection_type::const_iterator const_iterator
Definition: DetSetVector.h:106
MonitorElement * meColZpDisk1Panel1Plaq4_
MonitorElement * meRowLayer2Ring4_
MonitorElement * meAdcLayer1Ring6_
MonitorElement * meRowLayer1Ring8_
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4
MonitorElement * meRowZpDisk1Panel2Plaq1_
MonitorElement * meColZpDisk2Panel1Plaq2_
MonitorElement * meNdigiZpDisk2PerPanel2_
MonitorElement * meDigiMultiLayer3Ring4_
MonitorElement * meColLayer2Ring1_
MonitorElement * meAdcLayer3Ring1_
MonitorElement * meColLayer3Ring6_
MonitorElement * meNdigiZmDisk2PerPanel2_
MonitorElement * meRowLayer1Ring7_
MonitorElement * meColZpDisk2Panel2Plaq2_
unsigned int pxfPanel(const DetId &id) const
unsigned int pxfBlade(const DetId &id) const
MonitorElement * meAdcLayer2Ring2_
MonitorElement * meAdcZpDisk1Panel1Plaq3_
MonitorElement * meColLayer3Ring4_
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:585
MonitorElement * meRowLayer3Ring5_
MonitorElement * meRowZmDisk1Panel2Plaq2_
MonitorElement * meAdcLayer2Ring4_
Definition: Run.h:41
MonitorElement * meColZmDisk1Panel2Plaq3_
MonitorElement * meAdcZmDisk2Panel2Plaq3_
MonitorElement * meColZmDisk2Panel1Plaq1_
MonitorElement * meRowLayer2Ring2_
MonitorElement * meNdigiZpDisk1PerPanel1_
MonitorElement * meRowZpDisk1Panel2Plaq3_
MonitorElement * meAdcZpDisk2Panel2Plaq1_