22 ISvcLocator* pSvcLoc(0);
23 if (!initGaudi(
"AtRndmGen_test.txt", pSvcLoc)) {
24 cerr <<
"This test can not be run" << endl;
29 IAtRndmGenSvc* pAtRndmGen(0);
30 assert((pSvcLoc->service(
"AtRndmGenSvc", pAtRndmGen,
true)).isSuccess());
33 HepRandomEngine* pEng(pAtRndmGen->GetEngine(
"PITHIA_INIT"));
35 const long* seeds(pEng->getSeeds());
36 assert(1 == seeds[1]-seeds[0]);
38 pEng=pAtRndmGen->setOnDefinedSeeds(1,
"PITHIA");
40 seeds = pEng->getSeeds();
42 assert(9000 == seeds[0]-seeds[1]);
43 assert(SG::simpleStringHash(
"PITHIA") == seeds[0] - 10000);
45 cout <<
"*** AtRndSvc_test OK ***" <<endl;