84 {
85 MsgStream log(
msgSvc(), name());
86
87 log << MSG::INFO << "in initialize()" << endmsg;
88
89 StatusCode status;
90
91
92 status = service("THistSvc", m_thistsvc);
93 if(status.isFailure() ){
94 log << MSG::INFO << "Unable to retrieve pointer to THistSvc" << endreq;
95 return status;
96 }
97
98 if(m_tagKsKpi){
99
100 m_kskpi_vx_pi1 = new TH1F( "kskpi_vx_pi1", "kskpi_vx_pi1", 100,-5.0, 5.0);
101 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vx_pi1", m_kskpi_vx_pi1);
102 m_kskpi_vy_pi1 = new TH1F( "kskpi_vy_pi1", "kskpi_vy_pi1", 100,-5.0, 5.0);
103 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vy_pi1", m_kskpi_vy_pi1);
104 m_kskpi_vz_pi1 = new TH1F( "kskpi_vz_pi1", "kskpi_vz_pi1", 100, -20.0, 20.0);
105 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vz_pi1", m_kskpi_vz_pi1);
106 m_kskpi_vr_pi1 = new TH1F( "kskpi_vr_pi1", "kskpi_vr_pi1", 100,0.0, 5.0 );
107 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vr_pi1", m_kskpi_vr_pi1);
108 m_kskpi_px_pi1 = new TH1F( "kskpi_px_pi1", "kskpi_px_pi1", 100, -1.5, 1.5);
109 status = m_thistsvc->regHist("/VAL/PHY/kskpi_px_pi1", m_kskpi_px_pi1);
110 m_kskpi_py_pi1 = new TH1F( "kskpi_py_pi1", "kskpi_py_pi1", 100, -1.5, 1.5);
111 status = m_thistsvc->regHist("/VAL/PHY/kskpi_py_pi1", m_kskpi_py_pi1);
112 m_kskpi_pz_pi1 = new TH1F( "kskpi_pz_pi1", "kskpi_pz_pi1", 100, -1.5, 1.5);
113 status = m_thistsvc->regHist("/VAL/PHY/kskpi_pz_pi1", m_kskpi_pz_pi1);
114 m_kskpi_pp_pi1 = new TH1F( "kskpi_pp_pi1", "kskpi_pp_pi1", 100, 0.0, 1.5);
115 status = m_thistsvc->regHist("/VAL/PHY/kskpi_pp_pi1", m_kskpi_pp_pi1);
116 m_kskpi_cos_pi1 = new TH1F( "kskpi_cos_pi1", "kskpi_cos_pi1", 100, -1.0, 1.0);
117 status = m_thistsvc->regHist("/VAL/PHY/kskpi_cos_pi1", m_kskpi_cos_pi1);
118 m_kskpi_emc_pi1 = new TH1F( "kskpi_emc_pi1", "kskpi_emc_pi1", 100, 0.0, 1.5);
119 status = m_thistsvc->regHist("/VAL/PHY/kskpi_emc_pi1", m_kskpi_emc_pi1);
120
121 m_kskpi_vx_pi2 = new TH1F( "kskpi_vx_pi2", "kskpi_vx_pi2", 100,-5.0, 5.0);
122 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vx_pi2", m_kskpi_vx_pi2);
123 m_kskpi_vy_pi2 = new TH1F( "kskpi_vy_pi2", "kskpi_vy_pi2", 100,-5.0, 5.0);
124 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vy_pi2", m_kskpi_vy_pi2);
125 m_kskpi_vz_pi2 = new TH1F( "kskpi_vz_pi2", "kskpi_vz_pi2", 100, -20.0, 20.0);
126 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vz_pi2", m_kskpi_vz_pi2);
127 m_kskpi_vr_pi2 = new TH1F( "kskpi_vr_pi2", "kskpi_vr_pi2", 100,0.0, 5.0 );
128 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vr_pi2", m_kskpi_vr_pi2);
129 m_kskpi_px_pi2 = new TH1F( "kskpi_px_pi2", "kskpi_px_pi2", 100, -1.5, 1.5);
130 status = m_thistsvc->regHist("/VAL/PHY/kskpi_px_pi2", m_kskpi_px_pi2);
131 m_kskpi_py_pi2 = new TH1F( "kskpi_py_pi2", "kskpi_py_pi2", 100, -1.5, 1.5);
132 status = m_thistsvc->regHist("/VAL/PHY/kskpi_py_pi2", m_kskpi_py_pi2);
133 m_kskpi_pz_pi2 = new TH1F( "kskpi_pz_pi2", "kskpi_pz_pi2", 100, -1.5, 1.5);
134 status = m_thistsvc->regHist("/VAL/PHY/kskpi_pz_pi2", m_kskpi_pz_pi2);
135 m_kskpi_pp_pi2 = new TH1F( "kskpi_pp_pi2", "kskpi_pp_pi2", 100, 0.0, 1.5);
136 status = m_thistsvc->regHist("/VAL/PHY/kskpi_pp_pi2", m_kskpi_pp_pi2);
137 m_kskpi_cos_pi2 = new TH1F( "kskpi_cos_pi2", "kskpi_cos_pi2", 100, -1.0, 1.0);
138 status = m_thistsvc->regHist("/VAL/PHY/kskpi_cos_pi2", m_kskpi_cos_pi2);
139 m_kskpi_emc_pi2 = new TH1F( "kskpi_emc_pi2", "kskpi_emc_pi2", 100, 0.0, 1.5);
140 status = m_thistsvc->regHist("/VAL/PHY/kskpi_emc_pi2", m_kskpi_emc_pi2);
141
142 m_kskpi_vx_pi = new TH1F( "kskpi_vx_pi", "kskpi_vx_pi", 100,-1.0, 1.0);
143 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vx_pi", m_kskpi_vx_pi);
144 m_kskpi_vy_pi = new TH1F( "kskpi_vy_pi", "kskpi_vy_pi", 100,-1.0, 1.0);
145 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vy_pi", m_kskpi_vy_pi);
146 m_kskpi_vz_pi = new TH1F( "kskpi_vz_pi", "kskpi_vz_pi", 100, -10.0, 10.0);
147 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vz_pi", m_kskpi_vz_pi);
148 m_kskpi_vr_pi = new TH1F( "kskpi_vr_pi", "kskpi_vr_pi", 100,0.0, 1.0 );
149 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vr_pi", m_kskpi_vr_pi);
150 m_kskpi_px_pi = new TH1F( "kskpi_px_pi", "kskpi_px_pi", 100, -1.5, 1.5);
151 status = m_thistsvc->regHist("/VAL/PHY/kskpi_px_pi", m_kskpi_px_pi);
152 m_kskpi_py_pi = new TH1F( "kskpi_py_pi", "kskpi_py_pi", 100, -1.5, 1.5);
153 status = m_thistsvc->regHist("/VAL/PHY/kskpi_py_pi", m_kskpi_py_pi);
154 m_kskpi_pz_pi = new TH1F( "kskpi_pz_pi", "kskpi_pz_pi", 100, -1.5, 1.5);
155 status = m_thistsvc->regHist("/VAL/PHY/kskpi_pz_pi", m_kskpi_pz_pi);
156 m_kskpi_pp_pi = new TH1F( "kskpi_pp_pi", "kskpi_pp_pi", 100, 0.0, 1.5);
157 status = m_thistsvc->regHist("/VAL/PHY/kskpi_pp_pi", m_kskpi_pp_pi);
158 m_kskpi_cos_pi = new TH1F( "kskpi_cos_pi", "kskpi_cos_pi", 100, -1.0, 1.0);
159 status = m_thistsvc->regHist("/VAL/PHY/kskpi_cos_pi", m_kskpi_cos_pi);
160 m_kskpi_emc_pi = new TH1F( "kskpi_emc_pi", "kskpi_emc_pi", 100, 0.0, 1.5);
161 status = m_thistsvc->regHist("/VAL/PHY/kskpi_emc_pi", m_kskpi_emc_pi);
162
163 m_kskpi_vx_k = new TH1F( "kskpi_vx_k", "kskpi_vx_k", 100,-1.0, 1.0);
164 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vx_k", m_kskpi_vx_k);
165 m_kskpi_vy_k = new TH1F( "kskpi_vy_k", "kskpi_vy_k", 100,-1.0, 1.0);
166 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vy_k", m_kskpi_vy_k);
167 m_kskpi_vz_k = new TH1F( "kskpi_vz_k", "kskpi_vz_k", 100, -10.0, 10.0);
168 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vz_k", m_kskpi_vz_k);
169 m_kskpi_vr_k = new TH1F( "kskpi_vr_k", "kskpi_vr_k", 100,0.0, 1.0 );
170 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vr_k", m_kskpi_vr_k);
171 m_kskpi_px_k = new TH1F( "kskpi_px_k", "kskpi_px_k", 100, -1.5, 1.5);
172 status = m_thistsvc->regHist("/VAL/PHY/kskpi_px_k", m_kskpi_px_k);
173 m_kskpi_py_k = new TH1F( "kskpi_py_k", "kskpi_py_k", 100, -1.5, 1.5);
174 status = m_thistsvc->regHist("/VAL/PHY/kskpi_py_k", m_kskpi_py_k);
175 m_kskpi_pz_k = new TH1F( "kskpi_pz_k", "kskpi_pz_k", 100, -1.5, 1.5);
176 status = m_thistsvc->regHist("/VAL/PHY/kskpi_pz_k", m_kskpi_pz_k);
177 m_kskpi_pp_k = new TH1F( "kskpi_pp_k", "kskpi_pp_k", 100, 0.0, 1.5);
178 status = m_thistsvc->regHist("/VAL/PHY/kskpi_pp_k", m_kskpi_pp_k);
179 m_kskpi_cos_k = new TH1F( "kskpi_cos_k", "kskpi_cos_k", 100, -1.0, 1.0);
180 status = m_thistsvc->regHist("/VAL/PHY/kskpi_cos_k", m_kskpi_cos_k);
181 m_kskpi_emc_k = new TH1F( "kskpi_emc_k", "kskpi_emc_k", 100, 0.0, 1.5);
182 status = m_thistsvc->regHist("/VAL/PHY/kskpi_emc_k", m_kskpi_emc_k);
183
184 m_kskpi_pidchidedx_1 = new TH1F( "kskpi_pidchidedx_1", "kskpi_pidchidedx_1", 100, -10.0, 10.0);
185 status = m_thistsvc->regHist("/VAL/PHY/kskpi_pidchidedx_1", m_kskpi_pidchidedx_1);
186 m_kskpi_pidchitof1_1 = new TH1F( "kskpi_pidchitof1_1", "kskpi_pidchitof1_1", 100, -10.0, 10.0);
187 status = m_thistsvc->regHist("/VAL/PHY/kskpi_pidchitof1_1", m_kskpi_pidchitof1_1);
188 m_kskpi_pidchitof2_1 = new TH1F( "kskpi_pidchitof2_1", "kskpi_pidchitof2_1", 100, -10.0, 10.0);
189 status = m_thistsvc->regHist("/VAL/PHY/kskpi_pidchitof2_1", m_kskpi_pidchitof2_1);
190
191 m_kskpi_pidchidedx_2 = new TH1F( "kskpi_pidchidedx_2", "kskpi_pidchidedx_2", 100, -10.0, 10.0);
192 status = m_thistsvc->regHist("/VAL/PHY/kskpi_pidchidedx_2", m_kskpi_pidchidedx_2);
193 m_kskpi_pidchitof1_2 = new TH1F( "kskpi_pidchitof1_2", "kskpi_pidchitof1_2", 100, -10.0, 10.0);
194 status = m_thistsvc->regHist("/VAL/PHY/kskpi_pidchitof1_2", m_kskpi_pidchitof1_2);
195 m_kskpi_pidchitof2_2 = new TH1F( "kskpi_pidchitof2_2", "kskpi_pidchitof2_2", 100, -10.0, 10.0);
196 status = m_thistsvc->regHist("/VAL/PHY/kskpi_pidchitof2_2", m_kskpi_pidchitof2_2);
197
198 m_kskpi_pidchidedx_3 = new TH1F( "kskpi_pidchidedx_3", "kskpi_pidchidedx_3", 100, -10.0, 10.0);
199 status = m_thistsvc->regHist("/VAL/PHY/kskpi_pidchidedx_3", m_kskpi_pidchidedx_3);
200 m_kskpi_pidchitof1_3 = new TH1F( "kskpi_pidchitof1_3", "kskpi_pidchitof1_3", 100, -10.0, 10.0);
201 status = m_thistsvc->regHist("/VAL/PHY/kskpi_pidchitof1_3", m_kskpi_pidchitof1_3);
202 m_kskpi_pidchitof2_3 = new TH1F( "kskpi_pidchitof2_3", "kskpi_pidchitof2_3", 100, -10.0, 10.0);
203 status = m_thistsvc->regHist("/VAL/PHY/kskpi_pidchitof2_3", m_kskpi_pidchitof2_3);
204
205 m_kskpi_pidchidedx_4 = new TH1F( "kskpi_pidchidedx_4", "kskpi_pidchidedx_4", 100, -10.0, 10.0);
206 status = m_thistsvc->regHist("/VAL/PHY/kskpi_pidchidedx_4", m_kskpi_pidchidedx_4);
207 m_kskpi_pidchitof1_4 = new TH1F( "kskpi_pidchitof1_4", "kskpi_pidchitof1_4", 100, -10.0, 10.0);
208 status = m_thistsvc->regHist("/VAL/PHY/kskpi_pidchitof1_4", m_kskpi_pidchitof1_4);
209 m_kskpi_pidchitof2_4 = new TH1F( "kskpi_pidchitof2_4", "kskpi_pidchitof2_4", 100, -10.0, 10.0);
210 status = m_thistsvc->regHist("/VAL/PHY/kskpi_pidchitof2_4", m_kskpi_pidchitof2_4);
211
212 m_kskpi_vfits_chi = new TH1F( "kskpi_vfits_chi", "kskpi_vfits_chi", 100,0.0, 20.0);
213 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vfits_chi", m_kskpi_vfits_chi);
214 m_kskpi_vfits_vx = new TH1F( "kskpi_vfits_vx", "kskpi_vfits_vx", 100,-20.0, 20.0);
215 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vfits_vx", m_kskpi_vfits_vx);
216 m_kskpi_vfits_vy = new TH1F( "kskpi_vfits_vy", "kskpi_vfits_vy", 100,-20.0, 20.0);
217 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vfits_vy", m_kskpi_vfits_vy);
218 m_kskpi_vfits_vz = new TH1F( "kskpi_vfits_vz", "kskpi_vfits_vz", 100,-20.0, 20.0);
219 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vfits_vz", m_kskpi_vfits_vz);
220 m_kskpi_vfits_vr = new TH1F( "kskpi_vfits_vr", "kskpi_vfits_vr", 100,0.0, 20.0);
221 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vfits_vr", m_kskpi_vfits_vr);
222
223 m_kskpi_vfitp_chi = new TH1F( "kskpi_vfitp_chi", "kskpi_vfitp_chi", 100,0.0, 50.0);
224 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vfitp_chi", m_kskpi_vfitp_chi);
225 m_kskpi_vfitp_vx = new TH1F( "kskpi_vfitp_vx", "kskpi_vfitp_vx", 100,-1.0, 1.0);
226 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vfitp_vx", m_kskpi_vfitp_vx);
227 m_kskpi_vfitp_vy = new TH1F( "kskpi_vfitp_vy", "kskpi_vfitp_vy", 100,-1.0, 1.0);
228 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vfitp_vy", m_kskpi_vfitp_vy);
229 m_kskpi_vfitp_vz = new TH1F( "kskpi_vfitp_vz", "kskpi_vfitp_vz", 100,-5.0, 5.0);
230 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vfitp_vz", m_kskpi_vfitp_vz);
231 m_kskpi_vfitp_vr = new TH1F( "kskpi_vfitp_vr", "kskpi_vfitp_vr", 100,0.0, 1.0);
232 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vfitp_vr", m_kskpi_vfitp_vr);
233
234 m_kskpi_vfit2_chi = new TH1F( "kskpi_vfit2_chi", "kskpi_vfit2_chi", 100,0.0, 20.0);
235 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vfit2_chi", m_kskpi_vfit2_chi);
236 m_kskpi_vfit2_mks = new TH1F( "kskpi_vfit2_mks", "kskpi_vfit2_mks", 100,0.4, 0.6);
237 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vfit2_mks", m_kskpi_vfit2_mks);
238 m_kskpi_vfit2_ct = new TH1F( "kskpi_vfit2_ct", "kskpi_vfit2_ct", 100,-3.0, 13.0);
239 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vfit2_ct", m_kskpi_vfit2_ct);
240 m_kskpi_vfit2_dl = new TH1F( "kskpi_vfit2_dl", "kskpi_vfit2_dl", 100,-5.0, 25.0);
241 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vfit2_dl", m_kskpi_vfit2_dl);
242 m_kskpi_vfit2_dle = new TH1F( "kskpi_vfit2_dle", "kskpi_vfit2_dle", 100,0.0, 1.0);
243 status = m_thistsvc->regHist("/VAL/PHY/kskpi_vfit2_dle", m_kskpi_vfit2_dle);
244
245 m_kskpi_4c_chi = new TH1F( "kskpi_4c_chi", "kskpi_4c_chi", 100,0.0, 50);
246 status = m_thistsvc->regHist("/VAL/PHY/kskpi_4c_chi", m_kskpi_4c_chi);
247 m_kskpi_4c_mks = new TH1F( "kskpi_4c_mks", "kskpi_4c_mks", 100,0.4, 0.6);
248 status = m_thistsvc->regHist("/VAL/PHY/kskpi_4c_mks", m_kskpi_4c_mks);
249 m_kskpi_4c_mksk = new TH1F( "kskpi_4c_mksk", "kskpi_4c_mksk", 100,1.0, 3.0);
250 status = m_thistsvc->regHist("/VAL/PHY/kskpi_4c_mksk", m_kskpi_4c_mksk);
251 m_kskpi_4c_mkspi = new TH1F( "kskpi_4c_mkspi", "kskpi_4c_mkspi", 100,0.6, 2.6);
252 status = m_thistsvc->regHist("/VAL/PHY/kskpi_4c_mkspi", m_kskpi_4c_mkspi);
253 m_kskpi_4c_mkpi = new TH1F( "kskpi_4c_mkpi", "kskpi_4c_mkpi", 100,1.0, 3.0);
254 status = m_thistsvc->regHist("/VAL/PHY/kskpi_4c_mkpi", m_kskpi_4c_mkpi);
255 m_kskpi_4c_ks_px = new TH1F( "kskpi_4c_ks_px", "kskpi_4c_ks_px", 100,-1.5, 1.5);
256 status = m_thistsvc->regHist("/VAL/PHY/kskpi_4c_ks_px", m_kskpi_4c_ks_px);
257 m_kskpi_4c_ks_py = new TH1F( "kskpi_4c_ks_py", "kskpi_4c_ks_py", 100,-1.5, 1.5);
258 status = m_thistsvc->regHist("/VAL/PHY/kskpi_4c_ks_py", m_kskpi_4c_ks_py);
259 m_kskpi_4c_ks_pz = new TH1F( "kskpi_4c_ks_pz", "kskpi_4c_ks_pz", 100,-1.5, 1.5);
260 status = m_thistsvc->regHist("/VAL/PHY/kskpi_4c_ks_pz", m_kskpi_4c_ks_pz);
261 m_kskpi_4c_ks_p = new TH1F( "kskpi_4c_ks_p", "kskpi_4c_ks_p", 100,0.0, 1.5);
262 status = m_thistsvc->regHist("/VAL/PHY/kskpi_4c_ks_p", m_kskpi_4c_ks_p);
263 m_kskpi_4c_ks_cos = new TH1F( "kskpi_4c_ks_cos", "kskpi_4c_ks_cos", 100,-1.0, 1.0);
264 status = m_thistsvc->regHist("/VAL/PHY/kskpi_4c_ks_cos", m_kskpi_4c_ks_cos);
265
266 }
267
268 NTuplePtr nt1(
ntupleSvc(),
"FILE1/signal");
269 if ( nt1 ) m_tuple1 = nt1;
270 else {
271 m_tuple1 =
ntupleSvc()->book (
"FILE1/signal", CLID_ColumnWiseTuple,
"N-Tuple");
272 if ( m_tuple1 ) {
273 status = m_tuple1->addItem ("irun", m_run);
274 status = m_tuple1->addItem ("ievent", m_event);
275 status = m_tuple1->addItem ("Nchrg", m_nchrg);
276 status = m_tuple1->addItem ("Nneu", m_nneu);
277 status = m_tuple1->addItem ("NGch", m_ngch, 0, 10);
278
279 status = m_tuple1->addIndexedItem ("pidcode" , m_ngch, m_pidcode);
280 status = m_tuple1->addIndexedItem ("pidprob" , m_ngch, m_pidprob);
281 status = m_tuple1->addIndexedItem ("pidchiDedx" , m_ngch, m_pidchiDedx);
282 status = m_tuple1->addIndexedItem ("pidchiTof1" , m_ngch, m_pidchiTof1);
283 status = m_tuple1->addIndexedItem ("pidchiTof2" , m_ngch, m_pidchiTof2);
284
285 status = m_tuple1->addItem ( "npip", m_npip );
286 status = m_tuple1->addItem ( "npim", m_npim );
287 status = m_tuple1->addItem ( "nkp", m_nkp );
288 status = m_tuple1->addItem ( "nkm", m_nkm );
289 status = m_tuple1->addItem ( "np", m_np );
290 status = m_tuple1->addItem ( "npb", m_npb );
291
292 status = m_tuple1->addItem ( "vfits_chi" , m_vfits_chi );
293 status = m_tuple1->addItem ( "vfits_vx" , m_vfits_vx );
294 status = m_tuple1->addItem ( "vfits_vy" , m_vfits_vy );
295 status = m_tuple1->addItem ( "vfits_vz" , m_vfits_vz );
296 status = m_tuple1->addItem ( "vfits_vr" , m_vfits_vr );
297
298 status = m_tuple1->addItem ( "vfitp_chi" , m_vfitp_chi );
299 status = m_tuple1->addItem ( "vfitp_vx" , m_vfitp_vx );
300 status = m_tuple1->addItem ( "vfitp_vy" , m_vfitp_vy );
301 status = m_tuple1->addItem ( "vfitp_vz" , m_vfitp_vz );
302 status = m_tuple1->addItem ( "vfitp_vr" , m_vfitp_vr );
303
304 status = m_tuple1->addItem ( "vfit2_chi" , m_vfit2_chi );
305 status = m_tuple1->addItem ( "vfit2_mks" , m_vfit2_mks );
306 status = m_tuple1->addItem ( "vfit2_ct" , m_vfit2_ct );
307 status = m_tuple1->addItem ( "vfit2_dl" , m_vfit2_dl );
308 status = m_tuple1->addItem ( "vfit2_dle" , m_vfit2_dle );
309
310 status = m_tuple1->addIndexedItem("charge", m_ngch, m_charge);
311 status = m_tuple1->addIndexedItem ("vx0", m_ngch, m_vx0);
312 status = m_tuple1->addIndexedItem ("vy0", m_ngch, m_vy0);
313 status = m_tuple1->addIndexedItem ("vz0", m_ngch, m_vz0);
314 status = m_tuple1->addIndexedItem ("vr0", m_ngch, m_vr0);
315
316 status = m_tuple1->addIndexedItem ("vx", m_ngch, m_vx);
317 status = m_tuple1->addIndexedItem ("vy", m_ngch, m_vy);
318 status = m_tuple1->addIndexedItem ("vz", m_ngch, m_vz);
319 status = m_tuple1->addIndexedItem ("vr", m_ngch, m_vr);
320
321 status = m_tuple1->addIndexedItem ("px", m_ngch, m_px) ;
322 status = m_tuple1->addIndexedItem ("py", m_ngch, m_py) ;
323 status = m_tuple1->addIndexedItem ("pz", m_ngch, m_pz) ;
324 status = m_tuple1->addIndexedItem ("p", m_ngch, m_p) ;
325 status = m_tuple1->addIndexedItem ("cost", m_ngch, m_cost);
326
327 status = m_tuple1->addIndexedItem ("probPH" , m_ngch, m_probPH) ;
328 status = m_tuple1->addIndexedItem ("normPH" , m_ngch, m_normPH) ;
329 status = m_tuple1->addIndexedItem ("chie" , m_ngch, m_chie) ;
330 status = m_tuple1->addIndexedItem ("chimu" , m_ngch, m_chimu) ;
331 status = m_tuple1->addIndexedItem ("chipi" , m_ngch, m_chipi) ;
332 status = m_tuple1->addIndexedItem ("chik" , m_ngch, m_chik) ;
333 status = m_tuple1->addIndexedItem ("chip" , m_ngch, m_chip) ;
334 status = m_tuple1->addIndexedItem ("ghit" , m_ngch, m_ghit) ;
335 status = m_tuple1->addIndexedItem ("thit" , m_ngch, m_thit) ;
336
337 status = m_tuple1->addIndexedItem ("e_emc" , m_ngch, m_e_emc) ;
338
339 status = m_tuple1->addIndexedItem ("qual_etof" , m_ngch, m_qual_etof );
340 status = m_tuple1->addIndexedItem ("tof_etof" , m_ngch, m_tof_etof );
341 status = m_tuple1->addIndexedItem ("te_etof" , m_ngch, m_te_etof );
342 status = m_tuple1->addIndexedItem ("tmu_etof" , m_ngch, m_tmu_etof );
343 status = m_tuple1->addIndexedItem ("tpi_etof" , m_ngch, m_tpi_etof );
344 status = m_tuple1->addIndexedItem ("tk_etof" , m_ngch, m_tk_etof );
345 status = m_tuple1->addIndexedItem ("tp_etof" , m_ngch, m_tp_etof );
346
347 status = m_tuple1->addIndexedItem ("qual_btof1", m_ngch, m_qual_btof1 );
348 status = m_tuple1->addIndexedItem ("tof_btof1" , m_ngch, m_tof_btof1 );
349 status = m_tuple1->addIndexedItem ("te_btof1" , m_ngch, m_te_btof1 );
350 status = m_tuple1->addIndexedItem ("tmu_btof1" , m_ngch, m_tmu_btof1 );
351 status = m_tuple1->addIndexedItem ("tpi_btof1" , m_ngch, m_tpi_btof1 );
352 status = m_tuple1->addIndexedItem ("tk_btof1" , m_ngch, m_tk_btof1 );
353 status = m_tuple1->addIndexedItem ("tp_btof1" , m_ngch, m_tp_btof1 );
354
355 status = m_tuple1->addIndexedItem ("qual_btof2", m_ngch, m_qual_btof2 );
356 status = m_tuple1->addIndexedItem ("tof_btof2" , m_ngch, m_tof_btof2 );
357 status = m_tuple1->addIndexedItem ("te_btof2" , m_ngch, m_te_btof2 );
358 status = m_tuple1->addIndexedItem ("tmu_btof2" , m_ngch, m_tmu_btof2 );
359 status = m_tuple1->addIndexedItem ("tpi_btof2" , m_ngch, m_tpi_btof2 );
360 status = m_tuple1->addIndexedItem ("tk_btof2" , m_ngch, m_tk_btof2 );
361 status = m_tuple1->addIndexedItem ("tp_btof2" , m_ngch, m_tp_btof2 );
362
363
364 status = m_tuple1->addItem ( "chi2_fs4c", m_chi2_fs4c);
365 status = m_tuple1->addItem ( "mks_fs4c", m_mks_fs4c);
366 status = m_tuple1->addItem ( "mkspi_fs4c",m_mkspi_fs4c);
367 status = m_tuple1->addItem ( "mksk_fs4c", m_mksk_fs4c);
368 status = m_tuple1->addItem ( "mkpi_fs4c", m_mkpi_fs4c);
369
370 status = m_tuple1->addItem ( "4c_chi2", m_4c_chi2);
371 status = m_tuple1->addItem ( "4c_mks", m_4c_mks);
372 status = m_tuple1->addItem ( "4c_mkspi", m_4c_mkspi);
373 status = m_tuple1->addItem ( "4c_mksk", m_4c_mksk);
374 status = m_tuple1->addItem ( "4c_mkpi", m_4c_mkpi);
375 status = m_tuple1->addItem ( "4c_ks_px", m_4c_ks_px);
376 status = m_tuple1->addItem ( "4c_ks_py", m_4c_ks_py);
377 status = m_tuple1->addItem ( "4c_ks_pz", m_4c_ks_pz);
378 status = m_tuple1->addItem ( "4c_ks_p", m_4c_ks_p);
379 status = m_tuple1->addItem ( "4c_ks_cos", m_4c_ks_cos);
380
381
382 }
383 else {
384 log << MSG::ERROR << " Cannot book N-tuple:" << long(m_tuple1) << endmsg;
385 return StatusCode::FAILURE;
386 }
387 }
388
389
390
391
392
393 log << MSG::INFO << "successfully return from initialize()" <<endmsg;
394 return StatusCode::SUCCESS;
395
396}