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.
◆ main()
int main |
( |
int | argc, |
|
|
char ** | argv ) |
Definition at line 22 of file JSampler.cc.
23{
27
30 ULong_t seed;
32
33 try {
34
35 JParser<> zap(
"Program to test sampling of summary data.");
36
37 zap[
'f'] =
make_field(inputFile->getFilelist(),
"inputFile");
42
43 zap(argc, argv);
44 }
45 catch(const exception& error) {
46 FATAL(error.what() << endl);
47 }
48
49 gRandom->SetSeed(seed);
50
52
53 cout << "event: " << setw(8) << i << flush;
54
56
57 cout <<
" index " << setw(8) << summary->
getFrameIndex() << endl;
58 }
59}
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
virtual bool hasNext() override
Check availability of next element.
const JSampler_t< T > & getSampler() const
Get sampler.
virtual const pointer_type & next() override
Get next element.
Utility class to parse command line options.
int getFrameIndex() const
Get frame index.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Long64_t counter_type
Type definition for counter.
KM3NeT DAQ data structures and auxiliaries.
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Auxiliary class for defining the range of iterations of objects.
Auxiliary class to sample from a list of files.