154 MsgStream log(
msgSvc(), name() );
158 SmartDataPtr<Event::EventHeader> eventHeader( eventSvc(),
"/Event/EventHeader" );
161 log << MSG::FATAL <<
"Could not find Event Header" << endmsg;
162 return ( StatusCode::SUCCESS );
165 log << MSG::INFO <<
"retrieved event: " << eventHeader->eventNumber()
166 <<
" run: " << eventHeader->runNumber() << endmsg;
167 int eventNo = eventHeader->eventNumber();
168 int runNo = eventHeader->runNumber();
175 SmartDataPtr<RecMdcTrackCol> mdcTracks( eventSvc(),
"/Event/Recon/RecMdcTrackCol" );
178 log << MSG::ERROR <<
"Unable to retrieve RecMdcTrackCol" << endmsg;
179 return StatusCode::FAILURE;
183 log << MSG::DEBUG <<
"RecMdcTrackCol retrieved of size " << mdcTracks->size() << endmsg;
184 for ( RecMdcTrackCol::iterator it = mdcTracks->begin(); it != mdcTracks->end(); it++ )
209 g_track_id = ( *it )->trackId();
210 g_phi0 = ( *it )->helix()[1];
211 g_kappa = ( *it )->helix()[2];
212 g_tanl = ( *it )->helix()[4];
214 g_dr = ( *it )->helix()[0];
215 g_dz = ( *it )->helix()[3];
216 g_chisq_of_fit = ( *it )->chi2();
217 g_phi_terminal = ( *it )->getFiTerm();
218 g_number_of_hits = ( *it )->getNhits();
219 g_number_of_stereo_hits = ( *it )->nster();
222 g_px = ( *it )->px();
223 g_py = ( *it )->py();
224 g_pz = ( *it )->pz();
225 g_pxy = ( *it )->pxy();
226 g_charge = ( *it )->charge();
227 g_stat = ( *it )->stat();
232 g_chi2 = ( *it )->chi2();
233 g_ndof = ( *it )->ndof();
234 g_firstLayer = ( *it )->firstLayer();
235 g_lastLayer = ( *it )->lastLayer();
238 HitRefVec gothits = ( *it )->getVecHits();
239 HitRefVec::iterator it_gothit = gothits.begin();
240 for ( ; it_gothit != gothits.end(); it_gothit++ )
242 g_hits_id = ( *it_gothit )->getId();
244 g_hits_ddl = ( *it_gothit )->getDriftDistLeft();
245 g_hits_ddr = ( *it_gothit )->getDriftDistRight();
247 g_doca = ( *it_gothit )->getDoca();
248 g_hits_mdc_id = ( *it_gothit )->getMdcId();
250 g_wire =
MdcID::wire( ( *it_gothit )->getMdcId() );
252 g_hits_tdc = ( *it_gothit )->getTdc();
253 g_hits_adc = ( *it_gothit )->getAdc();
262 return StatusCode::SUCCESS;