DAS
3.0
Das Analysis System
|
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) | |
template<typename TTreePtr > | |
Looper (const TTreePtr &t) | |
Looper (long long nEvents, Slice s={1, 0}) | |
~Looper () | |
void | operator++ () |
bool | operator() () |
long long | operator* () const |
template<typename TTreePtr > | |
Looper (const TTreePtr &t, Slice s) | |
template<typename TTreePtr > | |
Looper (const TTreePtr &t) | |
Looper (long long nEvents, Slice s={1, 0}) | |
~Looper () | |
void | operator++ () |
bool | operator() () |
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}) | |
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()` |
|
inline |
Constructor for existing tree with raw pointer.
t | n-tuple |
Constructor for simple counter.
nEvents | total number of events to generate (with all slices) |
s | exactly like the output of `Options::slice()` |
|
inline |
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()` |
|
inline |
Constructor for existing tree with raw pointer.
t | n-tuple |
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 |
Check that the counter is still in the range and prints percentage.
|
inline |
|
inline |
|
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