RAPIDO
Repeatable Analysis Programming for Interpretability, Durability, and Organization
Loading...
Searching...
No Matches
looper.h
1#ifndef LOOPER_H
2#define LOOPER_H
3
4#include <functional>
5
6#include "TString.h"
7#include "TChain.h"
8#include "TFile.h"
9#include "TTree.h"
10#include "TTreeCache.h"
11#include "TTreeCacheUnzip.h"
12
16class Looper
17{
18protected:
21public:
23 TChain* tchain;
25 TString ttree_name;
27 unsigned int current_entry;
29 unsigned int n_events_processed;
31 unsigned int n_events_total;
32
38 Looper(TChain* new_tchain);
49 virtual ~Looper();
77 void run(std::function<void(TTree* ttree)> init, std::function<void(int entry)> eval);
78
83 void stop();
84};
85
86#include "looper.icc"
87
88#endif
Definition hepcli.h:16
Definition looper.h:17
virtual ~Looper()
unsigned int n_events_total
Definition looper.h:31
void stop()
Looper(HEPCLI &cli)
void run(std::function< void(TTree *ttree)> init, std::function< void(int entry)> eval)
Looper(TChain *new_tchain)
TString ttree_name
Definition looper.h:25
unsigned int current_entry
Definition looper.h:27
unsigned int n_events_processed
Definition looper.h:29
TChain * tchain
Definition looper.h:23
bool keep_alive
Definition looper.h:20