86 {
87 MsgStream log(
msgSvc(), name());
88 log << MSG::INFO << "in execute()" << endreq;
89
90
91 SmartDataPtr<Event::EventHeader> eventHeader(eventSvc(),"/Event/EventHeader");
92 if(!eventHeader)
93 {
94 cout<<" eventHeader "<<endl;
95 return StatusCode::FAILURE;
96 }
97
98 int run=eventHeader->runNumber();
99 int event=eventHeader->eventNumber();
100
101
103 if(!evtRecEvent ) {
104 cout<<" evtRecEvent "<<endl;
105 return StatusCode::FAILURE;
106 }
107
108
109 log << MSG::DEBUG <<"ncharg, nneu, tottks = "
110 << evtRecEvent->totalCharged() << " , "
111 << evtRecEvent->totalNeutral() << " , "
112 << evtRecEvent->totalTracks() <<endreq;
114 if(!evtRecTrkCol){
115 cout<<" evtRecTrkCol "<<endl;
116 return StatusCode::FAILURE;
117 }
118
119 if(evtRecEvent->totalTracks()!=evtRecTrkCol->size()) return StatusCode::SUCCESS;
120
121
123 if ( ! evtRecDTagCol ) {
124 log << MSG::FATAL << "Could not find EvtRecDTagCol" << endreq;
125 return StatusCode::FAILURE;
126 }
127
128
129 if(evtRecDTagCol->size()==0){
130
131 return StatusCode::SUCCESS;
132 }
133
134
135
136
137
138 if(m_ifwritedst) m_subalg1->execute();
139 if(m_ifwriterec) m_subalg2->execute();
140
141
142 return StatusCode::SUCCESS;
143
144}
_EXTERN_ std::string EvtRecEvent
_EXTERN_ std::string EvtRecDTagCol
_EXTERN_ std::string EvtRecTrackCol