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);
90 boost::program_options::positional_options_description
p;
94 boost::program_options::options_description all_options(
"All Options");
95 all_options.add(desc);
97 boost::program_options::variables_map vm;
99 store(boost::program_options::command_line_parser(
argc,
argv).
options(all_options).positional(
p).
run(), vm);
102 std::cout <<
argv[0] <<
": Error while trying to process command line arguments:\n"
103 << iException.what() <<
"\nFor usage and an options list, please do 'cmsRun --help'.";
118 std::cout <<
" no argument given" << std::endl;
123 std::cout <<
" no second argument given" << std::endl;
143 auto lockPtr = communicationChannel.
accessLock();
158 std::cerr << uniqueID <<
" process: initializing " << std::endl;
163 for (
int i = 0;
i < nlines; ++
i) {
165 std::getline(std::cin,
c);
181 std::cerr << uniqueID <<
" process: done initializing" << std::endl;
189 switch (iTransition) {
192 std::cerr << uniqueID <<
" process: start beginRun " << std::endl;
194 std::cerr << uniqueID <<
" process: end beginRun " << std::endl;
200 std::cerr << uniqueID <<
" process: start beginLumi " << std::endl;
201 auto randState = random_deserializer.
deserialize();
203 std::cerr << uniqueID <<
" random " << randState.state_.size() <<
" " << randState.seed_ << std::endl;
204 randomService->
setState(randState.state_, randState.seed_);
207 value.randomState_.seed_ = randomService->
mySeed();
211 std::cerr << uniqueID <<
" process: end beginLumi " << std::endl;
213 std::cerr << uniqueID <<
" rand " <<
value.randomState_.state_.size() <<
" " <<
value.randomState_.seed_
220 auto randState = random_deserializer.
deserialize();
221 randomService->
setState(randState.state_, randState.seed_);
224 value.randomState_.seed_ = randomService->
mySeed();
232 <<
" " <<
counter << std::endl;
238 std::cerr << uniqueID <<
" process: start endLumi " << std::endl;
243 std::cerr << uniqueID <<
" process: end endLumi " << std::endl;
249 std::cerr << uniqueID <<
" process: start endRun " << std::endl;
254 std::cerr << uniqueID <<
" process: end endRun " << std::endl;
263 std::cerr << uniqueID <<
" process: notifying and waiting " <<
counter << std::endl;
267 std::cerr <<
"caught exception \n" << iExcept.what() <<
"\n";