27 {
28 MsgStream log(
msgSvc(), name() );
29 log << MSG::INFO << "Booking Histograms" << endreq;
30
31
32 NTuplePtr nt1(
ntupleSvc(),
"FILE101/mdcTrack");
33 if( nt1 ) m_tuple1 = nt1;
34 else{
35 m_tuple1 =
ntupleSvc()->book(
"FILE101/mdcTrack",CLID_RowWiseTuple,
"ValidRecMdcTrackNTuple1");
36
37 if( m_tuple1 ) {
38 m_tuple1->addItem ("eventNo",g_eventNo);
39 m_tuple1->addItem ("runNo", g_runNo);
40 m_tuple1->addItem("nhits",g_hits);
41 m_tuple1->addItem ("Id",g_track_id);
42 m_tuple1->addItem ("Phi0",g_phi0);
43 m_tuple1->addItem ("Cpa",g_kappa);
44 m_tuple1->addItem ("Tanl",g_tanl);
45 m_tuple1->addItem ("p",g_p);
46
47 m_tuple1->addItem ("Dr",g_dr);
48 m_tuple1->addItem ("Dz",g_dz);
49 m_tuple1->addItem ("Chisq",g_chisq_of_fit);
50 m_tuple1->addItem ("FiTerm",g_phi_terminal);
51 m_tuple1->addItem ("Nhits",g_number_of_hits);
52 m_tuple1->addItem ("Nster",g_number_of_stereo_hits);
53
54 m_tuple1->addItem ("px",g_px);
55 m_tuple1->addItem ("py",g_py);
56 m_tuple1->addItem ("pz",g_pz);
57 m_tuple1->addItem ("pxy",g_pxy);
58 m_tuple1->addItem ("charge",g_charge);
59 m_tuple1->addItem ("stat",g_stat);
60 m_tuple1->addItem ("x",g_x);
61 m_tuple1->addItem ("y",g_y);
62 m_tuple1->addItem ("z",g_z);
63 m_tuple1->addItem ("r",g_r);
64 m_tuple1->addItem ("chi2",g_chi2);
65 m_tuple1->addItem ("ndof",g_ndof);
66 m_tuple1->addItem ("firstLayer",g_firstLayer);
67 m_tuple1->addItem ("lastLayer",g_lastLayer);
68 m_tuple1->addItem ("theta",g_theta);
69 m_tuple1->addItem ("phi",g_phi);
70
71 } else {
72 log << MSG::ERROR << "----- Cannot book or register histograms -----" << endreq;
73 return StatusCode::FAILURE;
74 }
75 }
76 NTuplePtr nt2(
ntupleSvc(),
"FILE101/mdcHit");
77 if( nt2 ) m_tuple2 = nt2;
78 else{
79 m_tuple2 =
ntupleSvc()->book(
"FILE101/mdcHit",CLID_RowWiseTuple,
"ValidRecMdcHitNTuple1");
80
81 if( m_tuple2 ) {
82 m_tuple2->addItem ("Hits_id",g_hits_id);
83 m_tuple2->addItem ("Hits_ddl",g_hits_ddl);
84 m_tuple2->addItem ("Hits_ddr",g_hits_ddr);
85
86 m_tuple2->addItem ("doca",g_doca);
87 m_tuple2->addItem ("Hits_mdc_id",g_hits_mdc_id);
88 m_tuple2->addItem ("layer", g_layer);
89 m_tuple2->addItem ("wire", g_wire );
90
91 m_tuple2->addItem ("Hits_tdc",g_hits_tdc);
92 m_tuple2->addItem ("Hits_adc",g_hits_adc);
93 } else {
94 log << MSG::ERROR << "----- Cannot book or register histograms -----" << endreq;
95 return StatusCode::FAILURE;
96 }
97 }
98
99 log << MSG::INFO << "Finished booking Histograms" << endreq;
100 return StatusCode::SUCCESS;
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148 }