93 MsgStream log(
msgSvc(), name());
94 log << MSG::INFO <<
"in execute()" << endreq;
96 SmartDataPtr<Event::EventHeader> eventHeader(eventSvc(),
"/Event/EventHeader");
97 m_runNo=eventHeader->runNumber();
98 m_event=eventHeader->eventNumber();
99 log << MSG::DEBUG <<
"run, evtnum = "
106 SmartDataPtr<DQAEvent::DQAEvent> dqaevt(eventSvc(),
"/Event/DQATag");
108 log << MSG::INFO <<
"success get DQAEvent" << endreq;
110 log << MSG::ERROR <<
"Error accessing DQAEvent" << endreq;
111 return StatusCode::FAILURE;
114 log << MSG::DEBUG <<
"event tag = " << dqaevt->EventTag() << endreq;
117 if ( dqaevt->Bhabha() ) {
118 log << MSG::INFO <<
"Bhabha event" << endreq;
120 for(
int i = 0; i < evtRecEvent->totalCharged(); i++){
122 log << MSG::DEBUG << i <<
" " << (*itTrk)->partId() <<
" "
123 << (*itTrk)->quality() << endreq;
128 if ( !(*itTrk)->isElectron() )
continue;
135 int qual = (*itTrk)->quality();
136 if ( qual != 0 && qual != 2)
continue;
139 if ( mdcTrk->
charge() > 0 ) {
140 log << MSG::DEBUG <<
"is electron" << endreq;
142 log << MSG::DEBUG <<
"is positron" << endreq;
144 double x0 =mdcTrk->
x();
145 double y0 =mdcTrk->
y();
146 double z0 =mdcTrk->
z();
147 double Rxy=sqrt(x0*x0+y0*y0);
150 if (m_thsvc->getHist(
"/DQAHist/MDC/hrxy", h).isSuccess()) {
153 log << MSG::ERROR <<
"Couldn't retrieve hrxy" << endreq;
155 if (m_thsvc->getHist(
"/DQAHist/MDC/hz", h).isSuccess()) {
158 log << MSG::ERROR <<
"Couldn't retrieve hz" << endreq;
165 return StatusCode::SUCCESS;