66 {
68 Gaudi::svcLocator()->service(
"MessageSvc",
msgSvc);
69 MsgStream log(
msgSvc,
"CgemAliEvent");
70 log << MSG::INFO << "CgemAliEvent::setKalEvent" << endreq;
71
72 IDataProviderSvc* eventSvc = NULL;
73 Gaudi::svcLocator()->service("EventDataSvc", eventSvc);
74
75
76 SmartDataPtr<RecMdcKalTrackCol> kaltrkCol(eventSvc,"/Event/Recon/RecMdcKalTrackCol");
77 if (!kaltrkCol) {
78 log << MSG::FATAL << "Could not find RecMdcKalTrackCol" << endreq;
79 return StatusCode::FAILURE;
80 }
81
82 int i = 0;
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);
89
90 i++;
91 }
92 log << MSG::INFO << "KalTrack ntrk = " << i << endreq;
93
94 return StatusCode::SUCCESS;
95}