CMS 3D CMS Logo

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