#include "nurandom/RandomUtils/NuRandomService.h"
#include <string>
#include <iostream>
#include "dunecore/ArtSupport/ArtServiceHelper.h"
#include "art/Framework/Services/Registry/ServiceHandle.h"
#include "art/Framework/Core/detail/EngineCreator.h"
#include "CLHEP/Random/RandomEngine.h"
Go to the source code of this file.
Definition at line 52 of file test_LArSeedService.cxx.
53 string gname =
"dune35t4apa_v6";
int test_LArSeedService(string gname)
int test_LArSeedService |
( |
string |
gname | ) |
|
Definition at line 22 of file test_LArSeedService.cxx.
23 const string myname =
"test_LArSeedService: ";
24 cout << myname <<
"Starting test" <<
endl;
26 cout << myname <<
"NDEBUG must be off." <<
endl;
29 string line =
"-----------------------------";
31 std::string const config{
"NuRandomService: { endOfJobSummary: true policy: random}"};
34 cout << myname << line <<
endl;
35 cout << myname <<
"Get NuRandomService service." <<
endl;
38 cout << myname << line <<
endl;
39 cout << myname <<
"Use NuRandomService service." <<
endl;
41 cout <<
" Seed: " << psrv->getSeed() <<
endl;
43 cout <<
" Service use raised an exception." <<
endl;
44 cout <<
" Allow this for now." <<
endl;
47 cout << myname << line <<
endl;
48 cout <<
"Done." <<
endl;
static void load_services(std::string const &config)
void line(double t, double *p, double &x, double &y, double &z)
QTextStream & endl(QTextStream &s)