38 Gaudi::svcLocator()->service(
"MessageSvc",
msgSvc);
39 MsgStream log(
msgSvc,
"CgemAliEvent");
40 log << MSG::INFO <<
"CgemAliEvent::setRecEvent" << endreq;
42 IDataProviderSvc* eventSvc = NULL;
43 Gaudi::svcLocator()->service(
"EventDataSvc", eventSvc);
45 SmartDataPtr<RecMdcTrackCol> newtrkCol(eventSvc,
"/Event/Recon/RecMdcTrackCol");
48 return ( StatusCode::FAILURE );
53 RecMdcTrackCol::iterator it_trk = newtrkCol->begin();
54 for(; it_trk != newtrkCol->end(); it_trk++){
56 rectrk -> setRecTrk(it_trk);
57 m_rectrk.push_back(rectrk);
61 log << MSG::WARNING <<
"RecTrack ntrk = " << i << endreq;
63 return StatusCode::SUCCESS;
68 Gaudi::svcLocator()->service(
"MessageSvc",
msgSvc);
69 MsgStream log(
msgSvc,
"CgemAliEvent");
70 log << MSG::INFO <<
"CgemAliEvent::setKalEvent" << endreq;
72 IDataProviderSvc* eventSvc = NULL;
73 Gaudi::svcLocator()->service(
"EventDataSvc", eventSvc);
76 SmartDataPtr<RecMdcKalTrackCol> kaltrkCol(eventSvc,
"/Event/Recon/RecMdcKalTrackCol");
78 log << MSG::FATAL <<
"Could not find RecMdcKalTrackCol" << endreq;
79 return StatusCode::FAILURE;
84 RecMdcKalTrackCol::iterator iter_trk = kaltrkCol->begin();
85 for(; iter_trk != kaltrkCol->end(); iter_trk++) {
87 rectrk -> setKalTrk(iter_trk);
88 m_rectrk.push_back(rectrk);
92 log << MSG::INFO <<
"KalTrack ntrk = " << i << endreq;
94 return StatusCode::SUCCESS;