10#ifndef CRIB_TTREEPERIODICEVENTSTORE_H_
11#define CRIB_TTREEPERIODICEVENTSTORE_H_
13#include "IEventStore.h"
14#include "TProcessor.h"
65 void Init(TEventCollection *col)
override;
A processor class that implements periodic event reading from a TTree.
void Init(TEventCollection *col) override
Initializes the TTreePeriodicEventStore with the given event collection.
ClassDefOverride(TTreePeriodicEventStore, 3)
ROOT class definition macro.
TString fFileName
The name (or pattern) of the input file(s). Default is "temp.root".
~TTreePeriodicEventStore() override
Destructor.
Int_t GetRunNumber() const override
Returns the run number of the current event.
Long_t fCurrentNum
The current entry index in the TTree.
Long_t fEventNum
The current event number within the run.
TString fTreeName
The name of the TTree to be processed. Default is "tree".
Long_t fTreeEventNum
The total number of events in the TTree.
void Process() override
Processes one event from the TTree.
TEventHeader * fEventHeader
! Pointer to the TEventHeader object read from the TTree.
TTree * fTree
! Pointer to the TTree object that holds event data.
std::string GetStrRunName() const
Returns the run name as a std::string.
Long_t fMaxEventNum
The maximum number of events to process.
const char * GetRunName() const override
Returns the run name as a C-style string.
TTreePeriodicEventStore()
Constructor.