CMS 3D CMS Logo

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