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