52 {
53 MsgStream log(
msgSvc(), name());
54 SmartDataPtr<RecMucTrackCol> mucTracks(eventSvc(),"/Event/Recon/RecMucTrackCol");
55 if( ! mucTracks )
56 {
57 log << MSG::ERROR << "Unable to retrieve RecMucTrackCol" << endreq;
58 return StatusCode::FAILURE;
59 } else {
60 log << MSG::DEBUG << "RecMucTrackCol retrieved of size "<< mucTracks->size() << endreq;
61 for(RecMucTrackCol::iterator it=mucTracks->begin(); it!=mucTracks->end(); it++)
62 {
63
64 m_depth = (*it)->depth();
65 m_distance = (*it)->distance();
66 m_deltaPhi = (*it)->deltaPhi();
67 m_maxHits = (*it)->maxHitsInLayer();
68 m_numLayers= (*it)->numLayers();
69 m_numHits = (*it)->numHits();
70 m_chi2 = (*it)->chi2();
71 m_xPos = (*it)->xPos();
72 m_yPos = (*it)->yPos();
73 m_zPos = (*it)->zPos();
74
75 StatusCode status1 = m_tuple1->write();
76 if ( status1.isFailure() ) {
77 log << MSG::ERROR << "Cannot fill Ntuple1" << endreq;
78 }
79 }
80 }
81 return StatusCode::SUCCESS;
82}