Program to test sampling of summary data using the JSUPPORT::JMultipleFileSampler class.
More...
Go to the source code of this file.
|
| int | main (int argc, char **argv) |
| |
Program to test sampling of summary data using the JSUPPORT::JMultipleFileSampler class.
- Author
- mdejong
Definition in file JSampler.cc.
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 22 of file JSampler.cc.
26 using namespace KM3NETDAQ;
35 JParser<> zap(
"Program to test sampling of summary data.");
45 catch(
const exception& error) {
46 FATAL(error.what() << endl);
49 gRandom->SetSeed(seed);
51 for (
counter_type i = 0; i != numberOfEvents && inputFile.hasNext(); ++i) {
53 cout <<
"event: " << setw(8) << i << flush;
57 cout <<
" index " << setw(8) << summary->
getFrameIndex() << endl;
Utility class to parse command line options.
JParserTemplateElement< bool > getOption(bool &object, const std::string &name, const std::string &help="")
Auxiliary method for creation of template parser element object.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Long64_t counter_type
Type definition for counter.
int getFrameIndex() const
Get frame index.
Auxiliary class for defining the range of iterations of objects.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object