1 #ifndef SummarySelector_h 2 #define SummarySelector_h 8 #include "AnitaEventSummary.h" 11 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,0,0) 12 #define USE_TTREE_READER 13 #include <TTreeReader.h> 14 #include <TTreeReaderValue.h> 15 #include <TTreeReaderArray.h> 73 void addCut(
const TCut* analysisCut);
75 virtual void Begin(TTree *tree);
77 virtual void Init(TTree *tree);
78 virtual Bool_t Notify();
79 virtual Bool_t
Process(Long64_t entry);
87 virtual Int_t
GetEntry(Long64_t entry, Int_t getall = 0)
89 return fChain ? fChain->GetTree()->GetEntry(entry, getall) : 0;
virtual void SetInputList(TList *input)
Set the input list, not sure what this does.
virtual Bool_t Process(Long64_t entry)
Reads the AnitaEventSummary TTree entry and sets the fSum pointer. Cycles through the fCuts...
virtual ~SummarySelector()
SummarySelector(const char *sumBranchName="sum")
Set this to true to generate and fill fDemoHist.
virtual void SetOption(const char *option)
From ROOT, set the option.
TTreeFormula * fDemoForm
Stores the AND of cut results per iteration processed in sequence.
virtual void Begin(TTree *tree)
TList * fCuts
Which TTree formula determines the peak direction?
Int_t fMaxNdata
A list of TTreeFormula objects, derived from the TCut objects.
virtual Int_t GetEntry(Long64_t entry, Int_t getall=0)
From ROOT, Gets the local tree entry.
Namespace which wraps everything in the library.
TList * fCutFormulas
A list of TCut objects, for event selection (none means selecting all)
std::vector< Int_t > fCumulativeCutReturns
Stores the results as the cuts are processed in sequence.
Template TSelector to be inherited from, designed for use with SummarySet.
virtual void Init(TTree *tree)
std::vector< std::vector< Int_t > > fCutReturns
Maximum size of the cut.
virtual Int_t Version() const
From ROOT.
void addCut(const TCut *analysisCut)
virtual void SetObject(TObject *obj)
Set the current object, not sure what this does.
Int_t fDirectionFormulaIndex
The analyzed TTree or TChain.
virtual void SlaveTerminate()
TH1D * fDemoHist
TTree formula produced if making the demonstration histogram.
bool fDoDemoHist
A histogram of peak[1][0].value.
virtual TList * GetOutputList() const
Used to combine the objects.
virtual void SlaveBegin(TTree *tree)