77 float OM1MNE, OM1MXE, OM2MNE, OM2MXE,
80 W2MINE, W2MAXE, TKMINE, TKMAXE,
EBEAME, MAXESW;
165 MsgStream log(messageService(), name());
166 log << MSG::WARNING <<
"BesTwogam initialize" << endreq;
168 if(m_fcard.size()>254){
169 log << MSG::ERROR <<
"Too big name of BesTwogam card file" << endreq;
170 return StatusCode::FAILURE;
173 strcpy(
FNAMES.cardName,m_fcard.c_str());
174 FNAMES.i_cardName=m_fcard.size();
178 EXCUTS.EBEAME=0.5*m_cmEnergy;
190 for(
int i=0;i<m_pypars.size();i++){
191 pygive_(m_pypars[i].c_str(),strlen(m_pypars[i].c_str()));
193 return StatusCode::SUCCESS;
198 MsgStream log(messageService(), name());
199 log << MSG::INFO <<
"BesTwogam executing" << endreq;
200 HepMC::HEPEVT_Wrapper::set_max_number_entries(2000);
201 HepMC::HEPEVT_Wrapper::set_sizeof_real(8);
202 HepMC::IO_HEPEVT HepEvtIO;
207 log << MSG::ERROR<<
" BesTwogam: fail to generate good event"<<endl;
208 return StatusCode::FAILURE;
211 if( log.level() < MSG::INFO )
LULIST(1);
214 HepMC::GenEvent* evt = HepEvtIO.read_next_event();
215 evt->set_event_number(m_numberEvent);
216 evt->set_signal_process_id(1);
218 SmartDataPtr<McGenEventCol> anMcCol(eventSvc(),
"/Event/Gen");
221 MsgStream log(messageService(), name());
222 log << MSG::INFO <<
"Add McGenEvent to existing collection" << endreq;
224 anMcCol->push_back(mcEvent);
229 mcColl->push_back(mcEvent);
230 StatusCode sc = eventSvc()->registerObject(
"/Event/Gen",mcColl);
231 if (sc != StatusCode::SUCCESS) {
232 log << MSG::ERROR <<
"Could not register McGenEvent" << endreq;
236 return StatusCode::FAILURE;
239 return StatusCode::SUCCESS;