![]() |
Darwin
1.0
Event loop based prototype framework
|
Facility to loop over a n-tuple, including parallelisation and printing.
#include <Looper.h>
Public Member Functions | |
| template<typename TTreePtr > | |
| Looper (const TTreePtr &t, Slice s={1, 0}) | |
| Looper (long long nEvents, Slice s={1, 0}) | |
| ~Looper () | |
| void | operator++ () |
| bool | operator() () |
| const long long | operator* () const |
Static Public Attributes | |
| static long long | division = 10 |
Private Member Functions | |
| Looper (TTree *t, long long nEvents, Slice s={1, 0}) | |
Private Attributes | |
| TTree * | tree |
| const Slice | slice |
| const long long | nEvTot |
| const long long | start |
| const long long | stop |
| const long long | nEvSlice |
| long long | iEvSlice |
| long long | percent |
| const std::chrono::time_point< std::chrono::system_clock > | start_t |
| t | n-tuple |
| nEvents | total number of events to generate (with all slices) |
| s | exactly like the output of `Options::slice()` |
Constructor for existing tree with raw pointer.
| t | n-tuple |
| s | exactly like the output of `Options::slice()` |
Constructor for simple counter.
| nEvents | total number of events to generate (with all slices) |
| s | exactly like the output of `Options::slice()` |
|
inline |
|
inline |
Check that the counter is still in the range and prints percentage.
|
inline |
|
inline |
|
static |
steps at which progress is printed (100%/division)
|
private |
|
private |
|
private |
{#processes, process index}
total number of entries in tree
|
private |
|
private |
|
private |
first entry (included)
|
private |
starting time
|
private |
last entry (excluded)
|
private |
tree