2#include "HepMC/IO_HEPEVT.h"
4#include "HepMC/GenEvent.h"
6#include "GaudiKernel/MsgStream.h"
7#include "GaudiKernel/ISvcLocator.h"
8#include "GaudiKernel/AlgFactory.h"
9#include "GaudiKernel/DataSvc.h"
10#include "GaudiKernel/SmartDataPtr.h"
13#include "KKMC/KKMCRandom.h"
14#include "GeneratorObject/McGenEvent.h"
15#include "BesKernel/IBesRndmGenSvc.h"
16#include "cfortran/cfortran.h"
18#include "EventModel/EventHeader.h"
21#define PSEUMAR_INITIALIZE(ijklin, ntot1n, ntot2n) CCALLSFSUB3(PSEUMAR_INITIALIZE, pseumar_initialize, INT, INT, INT, ijklin, ntot1n, ntot2n);
24#define WHYM_SETDEF(XPAR) CCALLSFSUB1(WHYM_SETDEF, whym_setdef, DOUBLEV, XPAR);
26#define MY_PYUPD() CCALLSFSUB0(MY_PYUPD, my_pyupd);
29#define KK2F_INITIALIZE(XPAR) CCALLSFSUB1(KK2F_INITIALIZE, kk2f_initialize, DOUBLEV, XPAR);
32#define HEPEVT_CLEAN() CCALLSFSUB0(HEPEVT_CLEAN, hepevt_clean);
34#define KK2F_MAKE() CCALLSFSUB0(KK2F_MAKE, kk2f_make);
37#define KK2F_GETKEYSKIP(KEY) CCALLSFSUB1(KK2F_GETKEYSKIP, kk2f_getkeyskip,PINT, KEY);
40#define PSIPP_DDBARCUT(KEY) CCALLSFSUB1(PSIPP_DDBARCUT, psipp_ddbarcut, PINT, KEY);
43#define KK2F_FINALIZE() CCALLSFSUB0(KK2F_FINALIZE, kk2f_finalize);
45#define KK2F_GETXSECMC(xsecpb, xerrpb) CCALLSFSUB2(KK2F_GETXSECMC, kk2f_getxsecmc, PDOUBLE, PDOUBLE, xsecpb, xerrpb);
48#define PYLIST(LIST) CCALLSFSUB1(PYLIST, pylist, INT, LIST);
51#define PYHEPC(ICONV) CCALLSFSUB1(PYHEPC, pyhepc, INT, ICONV);
54#define KK2F_SETEVTGENINTERFACE(KEY) CCALLSFSUB1(KK2F_SETEVTGENINTERFACE,kk2f_setevtgeninterface, INT, KEY);
56#define KK2F_GETEVTGENINTERFACE(KEY) CCALLSFSUB1(KK2F_GETEVTGENINTERFACE,kk2f_getevtgeninterface, PINT, KEY);
59#define HEPEVT_NUMHEP(Nhep) CCALLSFSUB1(HEPEVT_NUMHEP, hepevt_numhep, PINT, Nhep);
61#define HEPEVT_GETF(POS) CCALLSFSUB1(HEPEVT_GETF, hepevt_getf,PINT, POS);
63#define HEPEVT_GETFBAR(POS) CCALLSFSUB1(HEPEVT_GETFBAR, hepevt_getfbar,PINT, POS);
65#define HEPEVT_GETKFFIN(KFIN) CCALLSFSUB1(HEPEVT_GETKFFIN, hepevt_getkffin,PINT, KFIN);
67#define HEPEVT_SETPHOTOSFLAGTRUE(IP) CCALLSFSUB1(HEPEVT_SETPHOTOSFLAGTRUE, hepevt_setphotosflagtrue, INT, IP);
69#define PHOTOS(IP) CCALLSFSUB1(PHOTOS, photos, INT, IP);
71#define PHOINI() CCALLSFSUB0(PHOINI, phoini);
74#define TURNOFFTAUDECAY() CCALLSFSUB0(TURNOFFTAUDECAY, turnofftaudecay);
77#define PYUPDA(MUPDA, LFN) CCALLSFSUB2(PYUPDA, pyupda, INT, INT, MUPDA, LFN);
82#define DDBARMASS COMMON_BLOCK(DDBAR_DEF, ddbarmass)
88#define PHOTONTAG COMMON_BLOCK(PHOTONTAG_DEF,photontag)
94#define MODEXS COMMON_BLOCK(MODEXS_DEF, modexs)
98 extern void pygive_(
const char *cnfgstr,
int length);
101using namespace HepMC;
104KKMC::KKMC(
const std::string& name, ISvcLocator* pSvcLocator) : Algorithm(name, pSvcLocator)
109 m_kkseed.push_back(123456);
110 m_kkseed.push_back(1);
111 m_kkseed.push_back(0);
114 declareProperty(
"NumberOfEventPrinted", m_numberEventPrint=100);
115 declareProperty(
"InitializedSeed", m_kkseed);
116 declareProperty(
"CMSEnergy", m_cmsEnergy = 3.773);
117 declareProperty(
"ReadMeasuredEcms", m_RdMeasuredEcms =
false);
118 declareProperty(
"BeamEnergySpread", m_cmsEnergySpread = 0.0013);
119 declareProperty(
"GenerateResonance", m_generateResonance =
true);
120 declareProperty(
"GenerateContinuum", m_generateContinuum =
true);
121 declareProperty(
"GenerateDownQuark", m_generateDownQuark =
true);
122 declareProperty(
"GenerateUpQuark", m_generateUpQuark =
true);
123 declareProperty(
"GenerateStrangeQuark", m_generateStrangeQuark =
true);
124 declareProperty(
"GenerateCharmQuark", m_generateCharmQuark =
true);
125 declareProperty(
"GenerateBottomQuark", m_generateBottomQuark =
false);
126 declareProperty(
"GenerateMuonPair", m_generateMuonPair =
true);
127 declareProperty(
"GenerateTauPair", m_generateTauPair =
true);
128 declareProperty(
"GenerateRho", m_generateRho =
true);
129 declareProperty(
"GenerateOmega", m_generateOmega =
true);
130 declareProperty(
"GeneratePhi", m_generatePhi =
true);
131 declareProperty(
"GenerateJPsi", m_generateJPsi =
true);
132 declareProperty(
"GeneratePsiPrime", m_generatePsiPrime =
true);
133 declareProperty(
"GeneratePsi3770", m_generatePsi3770 =
true);
134 declareProperty(
"GeneratePsi4030", m_generatePsi4030 =
true);
135 declareProperty(
"GeneratePsi4160", m_generatePsi4160 =
true);
136 declareProperty(
"GeneratePsi4415", m_generatePsi4415 =
true);
137 declareProperty(
"GeneratePsi4260", m_generatePsi4260 =
true);
138 declareProperty(
"ThresholdCut", m_DdbarCutPsi3770 = -3.0);
139 declareProperty(
"TagISR", m_isrtag =
false);
140 declareProperty(
"TagFSR", m_fsrtag =
false);
141 declareProperty(
"ModeIndexExpXS", m_ich = -10);
143 declareProperty(
"IHVP", m_ihvp= 1);
147 m_paramRho.clear(); m_paramRho.push_back(0.77457e0); m_paramRho.push_back(147.65e-3); m_paramRho.push_back(6.89e-6);
148 m_paramRh2.clear(); m_paramRh2.push_back(1.465e0); m_paramRh2.push_back(310e-3); m_paramRh2.push_back(0.0e-6);
149 m_paramRh3.clear(); m_paramRh3.push_back(1.700e0); m_paramRh3.push_back(240e-3); m_paramRh3.push_back(0.0e-6);
150 m_paramOme.clear(); m_paramOme.push_back(0.78194e0);m_paramOme.push_back(8.41e-3);m_paramOme.push_back(0.60e-6);
151 m_paramOm2.clear(); m_paramOm2.push_back(1.419e0);m_paramOm2.push_back(174e-3);m_paramOm2.push_back(0.00e-6);
152 m_paramOm3.clear(); m_paramOm3.push_back(1.649e0);m_paramOm3.push_back(220e-3);m_paramOm3.push_back(0.00e-6);
153 m_paramPhi.clear(); m_paramPhi.push_back(1.01942e0);m_paramPhi.push_back(4.46e-3);m_paramPhi.push_back(1.33e-6);
154 m_paramPh2.clear(); m_paramPh2.push_back(1.680e0);m_paramPh2.push_back(150e-3);m_paramPh2.push_back(0.00e-6);
155 m_paramPsi.clear(); m_paramPsi.push_back(3.096916e0);m_paramPsi.push_back(0.0929e-3);m_paramPsi.push_back(5.40e-6);
156 m_paramPs2.clear(); m_paramPs2.push_back(3.686109e0);m_paramPs2.push_back(0.304e-3);m_paramPs2.push_back(2.12e-6);
157 m_paramPs3.clear(); m_paramPs3.push_back(3.77315e0);m_paramPs3.push_back(27.2e-3);m_paramPs3.push_back(0.26e-6);
158 m_paramPs4.clear(); m_paramPs4.push_back(4.039e0);m_paramPs4.push_back(80e-3);m_paramPs4.push_back(0.86e-6);
159 m_paramPs5.clear(); m_paramPs5.push_back(4.153e0);m_paramPs5.push_back(103e-3);m_paramPs5.push_back(0.83e-6);
160 m_paramPs6.clear(); m_paramPs6.push_back(4.421e0);m_paramPs6.push_back(62e-3);m_paramPs6.push_back(0.58e-6);
161 m_paramPs7.clear(); m_paramPs7.push_back(4.263e0);m_paramPs7.push_back(95e-3);m_paramPs7.push_back(0.47e-6);
162 m_paramPs8.clear(); m_paramPs8.push_back(3.872e0);m_paramPs8.push_back(100e-3);m_paramPs8.push_back(0.00e-6);
163 m_paramUps.clear(); m_paramUps.push_back(9.46030e0); m_paramUps.push_back(0.0525e-3); m_paramUps.push_back(1.32e-6);
164 m_paramUp2.clear(); m_paramUp2.push_back(10.02326e0); m_paramUp2.push_back(0.044e-3); m_paramUp2.push_back(0.52e-6);
165 m_paramUp3.clear(); m_paramUp3.push_back(10.3552e0); m_paramUp3.push_back(0.026e-3); m_paramUp3.push_back(0.00e-6);
166 m_paramUp4.clear(); m_paramUp4.push_back(10.580e0); m_paramUp4.push_back(14e-3); m_paramUp4.push_back(0.248e-6);
167 m_paramUp5.clear(); m_paramUp5.push_back(10.865e0); m_paramUp5.push_back(110e-3); m_paramUp5.push_back(0.31e-6);
168 m_paramUp6.clear(); m_paramUp6.push_back(11.019); m_paramUp6.push_back(79e-3); m_paramUp6.push_back(0.13e-6);
169 m_paramZeta.clear(); m_paramZeta.push_back(91.1876e0); m_paramZeta.push_back(2.4952e0); m_paramZeta.push_back(0.08391e0);
170 m_paramW.clear(); m_paramW.push_back(80.43); m_paramW.push_back(2.11e0);
172 declareProperty(
"ResParameterRho", m_paramRho);
173 declareProperty(
"ResParameterRh2", m_paramRh2);
174 declareProperty(
"ResParameterRh3", m_paramRh3);
175 declareProperty(
"ResParameterOme", m_paramOme);
176 declareProperty(
"ResParameterOm2", m_paramOm2);
177 declareProperty(
"ResParameterOm3", m_paramOm3);
178 declareProperty(
"ResParameterPhi", m_paramPhi);
179 declareProperty(
"ResParameterPh2", m_paramPh2);
180 declareProperty(
"ResParameterPsi", m_paramPsi);
181 declareProperty(
"ResParameterPs2", m_paramPs2);
182 declareProperty(
"ResParameterPs3", m_paramPs3);
183 declareProperty(
"ResParameterPs4", m_paramPs4);
184 declareProperty(
"ResParameterPs5", m_paramPs5);
185 declareProperty(
"ResParameterPs6", m_paramPs6);
186 declareProperty(
"ResParameterPs7", m_paramPs7);
187 declareProperty(
"ResParameterPs8", m_paramPs8);
188 declareProperty(
"ResParameterUps", m_paramUps);
189 declareProperty(
"ResParameterUp2", m_paramUp2);
190 declareProperty(
"ResParameterUp3", m_paramUp3);
191 declareProperty(
"ResParameterUp4", m_paramUp4);
192 declareProperty(
"ResParameterUp5", m_paramUp5);
193 declareProperty(
"ResParameterUp6", m_paramUp6);
194 declareProperty(
"ResParameterZeta", m_paramZeta);
195 declareProperty(
"ResParameterW", m_paramW);
198 declareProperty(
"Psi3770toNonDDb", m_ps3toNonDDb = 0.0);
199 declareProperty(
"Psi3770RatioOfD0toDp", m_ps3D0toDp = 0.563);
201 declareProperty(
"Psi4030toD0D0b", m_ps4toD0D0b = 0.0227);
202 declareProperty(
"Psi4030toDpDm", m_ps4toDpDm = 0.0167);
203 declareProperty(
"Psi4030toDsDs", m_ps4toDsDs = 0.0383);
204 declareProperty(
"Psi4030toD0D0Star", m_ps4toD0D0Star = 0.2952);
205 declareProperty(
"Psi4030toDpDmStar", m_ps4toDpDmStar = 0.2764);
206 declareProperty(
"Psi4030toD0StarD0Star", m_ps4toD0StarD0Star=0.2476);
207 declareProperty(
"Psi4030toDpStarDmStar", m_ps4toDpStarDmStar=0.1041);
209 declareProperty(
"Psi4160toD0D0b", m_ps5toD0D0b = 0.0190);
210 declareProperty(
"Psi4160toDpDm", m_ps5toDpDm = 0.0180);
211 declareProperty(
"Psi4160toDsDs", m_ps5toDsDs = 0.0488);
212 declareProperty(
"Psi4160toD0D0Star", m_ps5toD0D0Star = 0.1248);
213 declareProperty(
"Psi4160toDpDmStar", m_ps5toDpDmStar = 0.1240);
214 declareProperty(
"Psi4160toDsDsStar", m_ps5toDsDsStar = 0.0820);
215 declareProperty(
"Psi4160toD0StarD0Star", m_ps5toD0StarD0Star=0.3036);
216 declareProperty(
"Psi4160toDpStarDmStar", m_ps5toDpStarDmStar=0.2838);
218 declareProperty(
"ParticleDecayThroughEvtGen", m_evtGenDecay =
true);
219 declareProperty(
"RadiationCorrection", m_radiationCorrection =
true);
222 declareProperty(
"setPythiaPars", m_pypars);
227 MsgStream log(
msgSvc(), name());
229 log << MSG::INFO <<
"KKMC in initialize()" << endreq;
232 static const bool CREATEIFNOTTHERE(
true);
233 StatusCode RndmStatus = service(
"BesRndmGenSvc", p_BesRndmGenSvc, CREATEIFNOTTHERE);
234 if (!RndmStatus.isSuccess() || 0 == p_BesRndmGenSvc)
236 log << MSG::ERROR <<
" Could not initialize Random Number Service" << endreq;
239 CLHEP::HepRandomEngine* engine = p_BesRndmGenSvc->
GetEngine(
"KKMC");
242 if(m_ich == -2 || m_ich>=50 ) {
243 m_generatePsi4260 =
true;
245 m_generatePsiPrime = 0;
246 m_generatePsi3770 = 0;
247 m_generatePsi4030 = 0;
248 m_generatePsi4160 = 0;
249 m_generatePsi4415 = 0;
253 xwpar[0] = m_cmsEnergy;
254 xwpar[1] = m_cmsEnergySpread;
260 if(m_generateResonance)
265 if(m_generateContinuum )
270 if(m_generateDownQuark)
275 if(m_generateUpQuark)
280 if(m_generateStrangeQuark)
285 if(m_generateCharmQuark)
290 if(m_generateBottomQuark)
296 if(m_generateMuonPair)
301 if(m_generateTauPair)
306 if(m_generateRho) keyuds |= 1;
307 if(m_generateOmega) keyuds |= 2;
308 if(m_generatePhi) keyuds |= 4;
311 if(m_generateJPsi) keycharm |= 1;
312 if(m_generatePsiPrime) keycharm |= 2;
313 if(m_generatePsi3770) keycharm |= 4;
314 if(m_generatePsi4030) keycharm |= 8;
315 if(m_generatePsi4160) keycharm |= 16;
316 if(m_generatePsi4415) keycharm |= 32;
317 if(m_generatePsi4260) keycharm |= 64;
321 for(
int i = 0; i < 3; i++) xwpar[offset+i] = m_paramRho[i];
323 for(
int i = 0; i < 3; i++) xwpar[offset+i] = m_paramRh2[i];
325 for(
int i = 0; i < 3; i++) xwpar[offset+i] = m_paramRh3[i];
327 for(
int i = 0; i < 3; i++) xwpar[offset+i] = m_paramOme[i];
329 for(
int i = 0; i < 3; i++) xwpar[offset+i] = m_paramOm2[i];
331 for(
int i = 0; i < 3; i++) xwpar[offset+i] = m_paramOm3[i];
333 for(
int i = 0; i < 3; i++) xwpar[offset+i] = m_paramPhi[i];
335 for(
int i = 0; i < 3; i++) xwpar[offset+i] = m_paramPh2[i];
337 for(
int i = 0; i < 3; i++) xwpar[offset+i] = m_paramPsi[i];
339 for(
int i = 0; i < 3; i++) xwpar[offset+i] = m_paramPs2[i];
341 for(
int i = 0; i < 3; i++) xwpar[offset+i] = m_paramPs3[i];
343 for(
int i = 0; i < 3; i++) xwpar[offset+i] = m_paramPs4[i];
345 for(
int i = 0; i < 3; i++) xwpar[offset+i] = m_paramPs5[i];
347 for(
int i = 0; i < 3; i++) xwpar[offset+i] = m_paramPs6[i];
349 for(
int i = 0; i < 3; i++) xwpar[offset+i] = m_paramPs7[i];
351 for(
int i = 0; i < 3; i++) xwpar[offset+i] = m_paramPs8[i];
353 for(
int i = 0; i < 3; i++) xwpar[offset+i] = m_paramUps[i];
355 for(
int i = 0; i < 3; i++) xwpar[offset+i] = m_paramUp2[i];
357 for(
int i = 0; i < 3; i++) xwpar[offset+i] = m_paramUp3[i];
359 for(
int i = 0; i < 3; i++) xwpar[offset+i] = m_paramUp4[i];
361 for(
int i = 0; i < 3; i++) xwpar[offset+i] = m_paramUp5[i];
363 for(
int i = 0; i < 3; i++) xwpar[offset+i] = m_paramUp6[i];
365 for(
int i = 0; i < 3; i++) xwpar[offset+i] = m_paramZeta[i];
367 for(
int i = 0; i < 2; i++) xwpar[offset+i] = m_paramW[i];
370 xwpar[3001] = keyuds + 0.0;
371 xwpar[3002] = keycharm + 0.0;
375 xwpar[offset + 0] = m_ps3toNonDDb;
376 xwpar[offset + 1] = m_ps3D0toDp;
377 DDBARMASS.ddbarmassCUT= m_DdbarCutPsi3770;
385 xwpar[offset + 0] = m_ps4toD0D0b;
386 xwpar[offset + 1] = m_ps4toDpDm;
387 xwpar[offset + 2] = m_ps4toDsDs;
388 xwpar[offset + 3] = m_ps4toD0D0Star;
389 xwpar[offset + 4] = m_ps4toDpDmStar;
390 xwpar[offset + 5] = m_ps4toD0StarD0Star;
391 xwpar[offset + 6] = m_ps4toDpStarDmStar;
394 xwpar[offset + 0] = m_ps5toD0D0b;
395 xwpar[offset + 1] = m_ps5toDpDm;
396 xwpar[offset + 2] = m_ps5toDsDs;
397 xwpar[offset + 3] = m_ps5toD0D0Star;
398 xwpar[offset + 4] = m_ps5toDpDmStar;
399 xwpar[offset + 5] = m_ps5toDsDsStar;
400 xwpar[offset + 6] = m_ps5toD0StarD0Star;
401 xwpar[offset + 7] = m_ps5toDpStarDmStar;
403 if(!m_radiationCorrection) {
414 for(
int i=0;i<m_pypars.size();i++){
415 pygive_(m_pypars[i].c_str(),strlen(m_pypars[i].c_str()));
426 HepMC::HEPEVT_Wrapper::set_sizeof_real(8);
427 HepMC::HEPEVT_Wrapper::set_sizeof_int(4);
428 HepMC::HEPEVT_Wrapper::set_max_number_entries(4000);
433 if(m_RdMeasuredEcms){
434 StatusCode status=serviceLocator()->service(
"MeasuredEcmsSvc", ecmsSvc,
true);
435 if(!status.isSuccess()){
436 std::cout<<
"ERROR: Can not initial the IMeasuredEcmsSvc right"<<std::endl;
442 log <<MSG::INFO<<
"Finish KKMC initialize()" <<endreq;
443 return StatusCode::SUCCESS;
447 SmartDataPtr<Event::EventHeader> eventHeader(eventSvc(),
"/Event/EventHeader");
448 int runNo=eventHeader->runNumber();
449 int event=eventHeader->eventNumber();
451 if(
runNo != 0 &&
runNo != m_runNo){m_runNo=
runNo;newRunFlag =
true;}
else{newRunFlag=
false;}
456 if(m_RdMeasuredEcms&& newRunFlag){
458 std::cout<<
"ERROR: Can not read the MeasuredEcms, try to turn off the ReadEcmsDB"<<std::endl;
459 return StatusCode::FAILURE;
462 std::cout<<
"INFO: Read the MeasuredEcms"<<std::endl;
464 xwpar[0] = m_cmsEnergy;
470 MsgStream log(
msgSvc(), name());
472 log << MSG::INFO <<
"KKMC in execute()" << endreq;
475 HepMC::IO_HEPEVT HepEvtIO;
484 }
while (KeySkip != 0 || iflag ==0);
493 int Pos1, Pos2, KFfin, Nhep;
499 if(Pos2 > Posn) Posn = Pos2;
501 if(KFfin < 10) Posn = Posn + 1;
503 for(
int ip = Posn; ip <= Nhep; ip++)
PHOTOS(ip);
511 if(m_numberEvent <= m_numberEventPrint)
PYLIST(1);
512 log << MSG::INFO <<
" " <<m_numberEvent<<
"th event was generated !!" <<endreq;
516 HepMC::GenEvent* evt = HepEvtIO.read_next_event();
517 evt->set_event_number(m_numberEvent);
518 evt->set_signal_process_id(1);
522 SmartDataPtr<McGenEventCol> anMcCol(eventSvc(),
"/Event/Gen");
525 MsgStream log(messageService(), name());
526 log << MSG::INFO <<
"Add McGenEvent to existing collection" << endreq;
528 anMcCol->push_back(mcEvent);
533 mcColl->push_back(mcEvent);
534 StatusCode sc = eventSvc()->registerObject(
"/Event/Gen",mcColl);
535 if (sc != StatusCode::SUCCESS) {
536 log << MSG::ERROR <<
"Could not register McGenEvent" << endreq;
540 return StatusCode::FAILURE;
549 return StatusCode::SUCCESS;
555 MsgStream log(
msgSvc(), name());
557 log << MSG::INFO <<
"KKMC in finalize()" << endreq;
560 double xSecPb, xErrPb;
563 log << MSG::INFO <<
"Total MC Xsec = " << xSecPb <<
" +/- " << xErrPb << endreq;
564 return StatusCode::SUCCESS;
void pygive_(const char *cnfgstr, int length)
#define PROTOCCALLSFSUB3(UN, LN, T1, T2, T3)
#define COMMON_BLOCK_DEF(DEFINITION, NAME)
#define PROTOCCALLSFSUB2(UN, LN, T1, T2)
#define PROTOCCALLSFSUB0(UN, LN)
#define PROTOCCALLSFSUB1(UN, LN, T1)
ObjectVector< McGenEvent > McGenEventCol
#define PSIPP_DDBARCUT(KEY)
#define KK2F_SETEVTGENINTERFACE(KEY)
#define KK2F_GETEVTGENINTERFACE(KEY)
#define WHYM_SETDEF(XPAR)
#define HEPEVT_GETKFFIN(KFIN)
void pygive_(const char *cnfgstr, int length)
#define PSEUMAR_INITIALIZE(ijklin, ntot1n, ntot2n)
#define KK2F_GETXSECMC(xsecpb, xerrpb)
#define PYUPDA(MUPDA, LFN)
#define HEPEVT_NUMHEP(Nhep)
#define KK2F_GETKEYSKIP(KEY)
#define KK2F_INITIALIZE(XPAR)
#define HEPEVT_SETPHOTOSFLAGTRUE(IP)
#define TURNOFFTAUDECAY()
#define HEPEVT_GETFBAR(POS)
virtual CLHEP::HepRandomEngine * GetEngine(const std::string &StreamName)=0
Interface to the CLHEP engine.
virtual bool isRunNoValid(int runNo)=0
virtual double getEcms(int runNo)=0
static void setRandomEngine(CLHEP::HepRandomEngine *randomEngine)
KKMC(const std::string &name, ISvcLocator *pSvcLocator)