1 #include "boost/program_options.hpp"
46 auto lumi = tester_.testBeginLuminosityBlock(iLumi);
54 auto event = tester_.test();
62 auto lumi = tester_.testEndLuminosityBlock();
67 auto run = tester_.testEndRun();
82 descString +=
"] memory_name";
83 boost::program_options::options_description
desc(descString);
87 boost::program_options::value<std::string>(),
91 boost::program_options::positional_options_description
p;
95 boost::program_options::options_description all_options(
"All Options");
96 all_options.add(
desc);
98 boost::program_options::variables_map vm;
100 store(boost::program_options::command_line_parser(
argc,
argv).
options(all_options).positional(
p).
run(), vm);
103 std::cout <<
argv[0] <<
": Error while trying to process command line arguments:\n"
104 << iException.what() <<
"\nFor usage and an options list, please do 'cmsRun --help'.";
119 std::cout <<
" no argument given" << std::endl;
124 std::cout <<
" no second argument given" << std::endl;
144 auto lockPtr = communicationChannel.
accessLock();
159 std::cerr << uniqueID <<
" process: initializing " << std::endl;
164 for (
int i = 0;
i < nlines; ++
i) {
166 std::getline(std::cin,
c);
182 std::cerr << uniqueID <<
" process: done initializing" << std::endl;
190 switch (iTransition) {
193 std::cerr << uniqueID <<
" process: start beginRun " << std::endl;
195 std::cerr << uniqueID <<
" process: end beginRun " << std::endl;
201 std::cerr << uniqueID <<
" process: start beginLumi " << std::endl;
202 auto randState = random_deserializer.
deserialize();
204 std::cerr << uniqueID <<
" random " << randState.state_.size() <<
" " << randState.seed_ << std::endl;
205 randomService->
setState(randState.state_, randState.seed_);
208 value.randomState_.seed_ = randomService->
mySeed();
212 std::cerr << uniqueID <<
" process: end beginLumi " << std::endl;
214 std::cerr << uniqueID <<
" rand " <<
value.randomState_.state_.size() <<
" " <<
value.randomState_.seed_
221 auto randState = random_deserializer.
deserialize();
222 randomService->
setState(randState.state_, randState.seed_);
225 value.randomState_.seed_ = randomService->
mySeed();
233 <<
" " <<
counter << std::endl;
239 std::cerr << uniqueID <<
" process: start endLumi " << std::endl;
244 std::cerr << uniqueID <<
" process: end endLumi " << std::endl;
250 std::cerr << uniqueID <<
" process: start endRun " << std::endl;
255 std::cerr << uniqueID <<
" process: end endRun " << std::endl;
264 std::cerr << uniqueID <<
" process: notifying and waiting " <<
counter << std::endl;
268 std::cerr <<
"caught exception \n" << iExcept.what() <<
"\n";