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