41{
42 MsgStream log(
msgSvc(), name());
43 log << MSG::INFO << "DedxCalibEvent::initializing()" << endreq;
44
45 StatusCode status;
46 NTuplePtr nt1(
ntupleSvc(),
"FILE100/n103");
47 if ( nt1 )
48 m_nt1 = nt1;
49 else
50 {
51 m_nt1=
ntupleSvc()->book(
"FILE100/n103",CLID_ColumnWiseTuple,
"dEdx per track");
52 if ( m_nt1 )
53 {
54 status = m_nt1->addItem("ptrk",m_ptrk);
55 status = m_nt1->addItem("ptrk_t",m_ptrk_t);
56 status = m_nt1->addItem("sintheta",m_sintheta);
57 status = m_nt1->addItem("costheta",m_costheta);
58 status = m_nt1->addItem("charge",m_charge);
59 status = m_nt1->addItem("runNO",m_runNO);
60 status = m_nt1->addItem("runFlag",m_runFlag);
61 status = m_nt1->addItem("evtNO",m_evtNO);
62 status = m_nt1->addItem("t0",m_t0);
63 status = m_nt1->addItem("trackId",m_trackId);
64 status = m_nt1->addItem("poca_x",m_poca_x);
65 status = m_nt1->addItem("poca_y",m_poca_y);
66 status = m_nt1->addItem("poca_z",m_poca_z);
67 status = m_nt1->addItem("recalg",m_recalg);
68 status = m_nt1->addItem("nhit",m_nhit);
69 status = m_nt1->addItem("nhits",m_nhits);
70 status = m_nt1->addItem("usedhit",m_usedhit);
71
72 status = m_nt1->addItem("ndedxhit",m_nphlisthit,0,100);
73 status = m_nt1->addIndexedItem("dEdx_hit",m_nphlisthit,m_dEdx_hit);
74 status = m_nt1->addIndexedItem("pathlength_hit",m_nphlisthit,m_pathlength_hit);
75 status = m_nt1->addIndexedItem("wid_hit",m_nphlisthit,m_wid_hit);
76 status = m_nt1->addIndexedItem("layid_hit",m_nphlisthit,m_layid_hit);
77 status = m_nt1->addIndexedItem("dd_in_hit",m_nphlisthit,m_dd_in_hit);
78 status = m_nt1->addIndexedItem("eangle_hit",m_nphlisthit,m_eangle_hit);
79 status = m_nt1->addIndexedItem("zhit_hit",m_nphlisthit,m_zhit_hit);
80
81
82 status = m_nt1->addItem("dEdx_meas", m_dEdx_meas);
83
84
85
86 status = m_nt1->addItem("type",m_parttype);
87 status = m_nt1->addItem("chidedx_e",m_chidedxe);
88 status = m_nt1->addItem("chidedx_mu",m_chidedxmu);
89 status = m_nt1->addItem("chidedx_pi",m_chidedxpi);
90 status = m_nt1->addItem("chidedx_k",m_chidedxk);
91 status = m_nt1->addItem("chidedx_p",m_chidedxp);
92 status = m_nt1->addItem("partid",5,m_probpid);
93 status = m_nt1->addItem("expectid",5,m_expectid);
94 status = m_nt1->addItem("sigmaid",5,m_sigmaid);
95 }
96 }
97
98 NTuplePtr nt2(
ntupleSvc(),
"FILE100/n102");
99 if ( nt2 ) m_nt2 = nt2;
100 else
101 {
102 m_nt2=
ntupleSvc()->book(
"FILE100/n102",CLID_RowWiseTuple,
"dE/dx per hit");
103 if ( m_nt2 )
104 {
105 status = m_nt2->addItem("charge",m_charge1);
106 status = m_nt2->addItem("adc_raw",m_phraw);
107 status = m_nt2->addItem("exraw",m_exraw);
108 status = m_nt2->addItem("runNO",m_runNO1);
109 status = m_nt2->addItem("evtNO",m_evtNO1);
110 status = m_nt2->addItem("runFlag",m_runFlag1);
111 status = m_nt2->addItem("wire",m_wire);
112 status = m_nt2->addItem("doca_in",m_doca_in);
113 status = m_nt2->addItem("doca_ex",m_doca_ex);
114 status = m_nt2->addItem("driftdist",m_driftdist);
115 status = m_nt2->addItem("eangle",m_eangle);
116 status = m_nt2->addItem("zhit",m_zhit);
117 status = m_nt2->addItem("costheta1",m_costheta1);
118 status = m_nt2->addItem("path_rphi",m_pathL);
119 status = m_nt2->addItem("layer",m_layer);
120 status = m_nt2->addItem("ptrk1",m_ptrk1);
121 status = m_nt2->addItem("ptrk_hit",m_ptrk_hit);
122 status = m_nt2->addItem("t01",m_t01);
123 status = m_nt2->addItem("tdc_raw",m_tdc_raw);
124 status = m_nt2->addItem("driftT",m_driftT);
125 status = m_nt2->addItem("localwid",m_localwid);
126 status = m_nt2->addItem("trackId1",m_trackId1);
127 }
128 }
129}