77 float OM1MNE, OM1MXE, OM2MNE, OM2MXE,
80 W2MINE, W2MAXE, TKMINE, TKMAXE,
EBEAME, MAXESW;
186 MsgStream log(messageService(), name());
187 log << MSG::INFO <<
"BesTwogam executing" << endreq;
188 HepMC::HEPEVT_Wrapper::set_max_number_entries(2000);
189 HepMC::HEPEVT_Wrapper::set_sizeof_real(8);
190 HepMC::IO_HEPEVT HepEvtIO;
195 log << MSG::ERROR<<
" BesTwogam: fail to generate good event"<<endl;
196 return StatusCode::FAILURE;
199 if( log.level() < MSG::INFO )
LULIST(1);
202 HepMC::GenEvent* evt = HepEvtIO.read_next_event();
203 evt->set_event_number(m_numberEvent);
204 evt->set_signal_process_id(1);
206 SmartDataPtr<McGenEventCol> anMcCol(eventSvc(),
"/Event/Gen");
209 MsgStream log(messageService(), name());
210 log << MSG::INFO <<
"Add McGenEvent to existing collection" << endreq;
212 anMcCol->push_back(mcEvent);
217 mcColl->push_back(mcEvent);
218 StatusCode sc = eventSvc()->registerObject(
"/Event/Gen",mcColl);
219 if (sc != StatusCode::SUCCESS) {
220 log << MSG::ERROR <<
"Could not register McGenEvent" << endreq;
224 return StatusCode::FAILURE;
227 return StatusCode::SUCCESS;