CutTreeSelector.h
1 #ifndef CUT_TREE_SELECTOR_H
2 #define CUT_TREE_SELECTOR_H
3 
4 #include "SummarySelector.h"
5 
6 class TList;
7 class TProofOutputFile;
8 
9 namespace Acclaim {
10 
11 
17  public:
18 
19  TTree* fOutTree;
20  TProofOutputFile* fProofOutFile;
21  TFile* fOut;
22  TNamed fOutFileName;
23  TNamed fTreeName;
24 
25  std::vector<Int_t> fFormulaReturnTypes;
26  std::vector<Float_t> fFloatVals;
27  std::vector<Int_t> fIntVals;
28  TList* fFormulaStrings;
29  TList* fFormulas;
30  std::vector<Int_t> fIterationFormula;
31 
32  CutTreeSelector(const char* outFileName="CutTreeSelector.root", const char* reducedSumTreeName = "cutTree");
33  void setFormulaStrings(const std::vector<const char*>& formulaStrings);
34 
35  virtual void Begin(TTree *tree);
36  virtual void SlaveBegin(TTree *tree);
37  virtual void Init(TTree* tree);
38  virtual Bool_t Process(Long64_t entry);
39  virtual Bool_t Notify();
40  virtual void SlaveTerminate();
41  virtual void Terminate();
42 
43  ClassDef(CutTreeSelector, 0);
44  };
45 
46 }
47 
48 
49 #endif
void setFormulaStrings(const std::vector< const char *> &formulaStrings)
Set the formula strings to evaluate and put into the created output tree.
TNamed fTreeName
The output file name (stored in TNamed.fTitle)
std::vector< Int_t > fIntVals
Where the formula results are written in the case of a float-like variable.
TList * fFormulas
Internal storage of formula strings, set these with setFormulaStrings()
CutTreeSelector(const char *outFileName="CutTreeSelector.root", const char *reducedSumTreeName="cutTree")
To force eval instance with an argument.
TList * fFormulaStrings
Where the formula results are written in the case of a int-like variable.
TNamed fOutFileName
Created by the fProofOutFile.
virtual void Begin(TTree *tree)
virtual void SlaveBegin(TTree *tree)
A TSelector to parallelize the creation of trees for CutOptimizer.
std::vector< Int_t > fFormulaReturnTypes
The output tree name (stored in TNamed.fTitle)
TProofOutputFile * fProofOutFile
TTree to create.
Namespace which wraps everything in the library.
Template TSelector to be inherited from, designed for use with SummarySet.
std::vector< Int_t > fIterationFormula
List of TTreeFormulas created from fFormulaStrings.
virtual void Init(TTree *tree)
virtual Bool_t Process(Long64_t entry)
std::vector< Float_t > fFloatVals
Return type of the trees.
TFile * fOut
The proof output file.