151 MsgStream log(
msgSvc(), name());
156 SmartDataPtr<Event::EventHeader> eventHeader(eventSvc(),
"/Event/EventHeader");
158 log << MSG::FATAL <<
"Could not find Event Header" << endreq;
159 return( StatusCode::SUCCESS);
162 log << MSG::INFO <<
"retrieved event: " << eventHeader->eventNumber() <<
" run: " << eventHeader->runNumber() << endreq;
163 int eventNo=eventHeader->eventNumber();
164 int runNo=eventHeader->runNumber();
170 SmartDataPtr<RecMdcTrackCol> mdcTracks(eventSvc(),
"/Event/Recon/RecMdcTrackCol");
173 log << MSG::ERROR <<
"Unable to retrieve RecMdcTrackCol" << endreq;
174 return StatusCode::FAILURE;
176 log << MSG::DEBUG <<
"RecMdcTrackCol retrieved of size "<< mdcTracks->size() << endreq;
177 for(RecMdcTrackCol::iterator it=mdcTracks->begin(); it!=mdcTracks->end(); it++)
202 g_track_id = (*it)->trackId();
203 g_phi0 = (*it)->helix()[1];
204 g_kappa = (*it)->helix()[2];
205 g_tanl = (*it)->helix()[4];
207 g_dr = (*it)->helix()[0];
208 g_dz = (*it)->helix()[3];
209 g_chisq_of_fit = (*it)->chi2();
210 g_phi_terminal = (*it)->getFiTerm();
211 g_number_of_hits = (*it)->getNhits();
212 g_number_of_stereo_hits=(*it)->nster();
218 g_pxy = (*it)->pxy();
219 g_charge = (*it)->charge();
220 g_stat = (*it)->stat();
225 g_chi2 = (*it)->chi2();
226 g_ndof = (*it)->ndof();
227 g_firstLayer = (*it)->firstLayer();
228 g_lastLayer = (*it)->lastLayer();
233 HitRefVec::iterator it_gothit = gothits.begin();
234 for( ; it_gothit != gothits.end(); it_gothit++){
235 g_hits_id = (*it_gothit)->getId();
237 g_hits_ddl = (*it_gothit)->getDriftDistLeft();
238 g_hits_ddr = (*it_gothit)->getDriftDistRight();
240 g_doca = (*it_gothit)->getDoca();
241 g_hits_mdc_id = (*it_gothit)->getMdcId();
248 g_hits_tdc = (*it_gothit)->getTdc();
249 g_hits_adc = (*it_gothit)->getAdc();
270 return StatusCode::SUCCESS;