RDFAnalysis  0.1.1
Physics analysis with ROOT::RDataFrame
RunMonitor.h
Go to the documentation of this file.
1 #ifndef RDFAnalysis_RunMonitor_H
2 #define RDFAnalysis_RunMonitor_H
3 
4 #include <map>
5 #include <boost/optional.hpp>
6 #include <Rtypes.h>
7 
8 namespace RDFAnalysis {
14  class RunMonitor {
15  public:
22  RunMonitor(ULong64_t printEvery);
28  RunMonitor(ULong64_t printEvery, ULong64_t total);
29 
31  void beginRun();
32 
34  void operator()(unsigned int slot);
35  private:
36  std::map<unsigned int, ULong64_t> m_seen;
37  ULong64_t m_printEvery;
38  boost::optional<ULong64_t> m_total;
39  }; //> end class RunMonitor
40 } //> end namespace RDFAnalysis
41 
42 #endif //> !RDFAnalysis_RunMonitor_H
void beginRun()
Print at the beginning of the run.
Definition: RunMonitor.cxx:20
Definition: CutflowDetail.h:11
The default run monitor.
Definition: RunMonitor.h:14
void operator()(unsigned int slot)
Print on an event.
Definition: RunMonitor.cxx:25
RunMonitor(ULong64_t printEvery)
Create the monitor.
Definition: RunMonitor.cxx:5