A TSelector to parallelize the creation of trees for CutOptimizer. More...
#include <CutTreeSelector.h>
Public Member Functions | |
CutTreeSelector (const char *outFileName="CutTreeSelector.root", const char *reducedSumTreeName="cutTree") | |
To force eval instance with an argument. More... | |
void | setFormulaStrings (const std::vector< const char * > &formulaStrings) |
Set the formula strings to evaluate and put into the created output tree. More... | |
virtual void | Begin (TTree *tree) |
virtual void | SlaveBegin (TTree *tree) |
virtual void | Init (TTree *tree) |
virtual Bool_t | Process (Long64_t entry) |
virtual Bool_t | Notify () |
virtual void | SlaveTerminate () |
virtual void | Terminate () |
ClassDef (CutTreeSelector, 0) | |
Public Member Functions inherited from Acclaim::SummarySelector | |
SummarySelector (const char *sumBranchName="sum") | |
Set this to true to generate and fill fDemoHist. More... | |
virtual | ~SummarySelector () |
void | addCut (const TCut *analysisCut) |
virtual Int_t | Version () const |
From ROOT. | |
virtual Int_t | GetEntry (Long64_t entry, Int_t getall=0) |
From ROOT, Gets the local tree entry. | |
virtual void | SetOption (const char *option) |
From ROOT, set the option. | |
virtual void | SetObject (TObject *obj) |
Set the current object, not sure what this does. | |
virtual void | SetInputList (TList *input) |
Set the input list, not sure what this does. | |
virtual TList * | GetOutputList () const |
Used to combine the objects. | |
Public Attributes | |
TTree * | fOutTree |
TProofOutputFile * | fProofOutFile |
TTree to create. | |
TFile * | fOut |
The proof output file. | |
TNamed | fOutFileName |
Created by the fProofOutFile. | |
TNamed | fTreeName |
The output file name (stored in TNamed.fTitle) | |
std::vector< Int_t > | fFormulaReturnTypes |
The output tree name (stored in TNamed.fTitle) | |
std::vector< Float_t > | fFloatVals |
Return type of the trees. | |
std::vector< Int_t > | fIntVals |
Where the formula results are written in the case of a float-like variable. | |
TList * | fFormulaStrings |
Where the formula results are written in the case of a int-like variable. | |
TList * | fFormulas |
Internal storage of formula strings, set these with setFormulaStrings() | |
std::vector< Int_t > | fIterationFormula |
List of TTreeFormulas created from fFormulaStrings. | |
Public Attributes inherited from Acclaim::SummarySelector | |
TTree * | fChain |
Int_t | fDirectionFormulaIndex |
The analyzed TTree or TChain. | |
TList * | fCuts |
Which TTree formula determines the peak direction? | |
TList * | fCutFormulas |
A list of TCut objects, for event selection (none means selecting all) | |
Int_t | fMaxNdata |
A list of TTreeFormula objects, derived from the TCut objects. | |
std::vector< std::vector< Int_t > > | fCutReturns |
Maximum size of the cut. | |
std::vector< Int_t > | fCumulativeCutReturns |
Stores the results as the cuts are processed in sequence. | |
TTreeFormula * | fDemoForm |
Stores the AND of cut results per iteration processed in sequence. More... | |
TH1D * | fDemoHist |
TTree formula produced if making the demonstration histogram. | |
bool | fDoDemoHist |
A histogram of peak[1][0].value. | |
A TSelector to parallelize the creation of trees for CutOptimizer.
Definition at line 16 of file CutTreeSelector.h.
Acclaim::CutTreeSelector::CutTreeSelector | ( | const char * | outFileName = "CutTreeSelector.root" , |
const char * | treeName = "cutTree" |
||
) |
To force eval instance with an argument.
Default constructor
treeName | is the name to give the output ttree |
Definition at line 16 of file CutTreeSelector.cxx.
|
virtual |
Add input here, the slave processes can only access things in fInput
Reimplemented from Acclaim::SummarySelector.
Definition at line 66 of file CutTreeSelector.cxx.
|
virtual |
Allocate branches on first pass, reassign TTree formulas on each call
tree | is the ttree which is about to be processed |
Reimplemented from Acclaim::SummarySelector.
Definition at line 109 of file CutTreeSelector.cxx.
|
virtual |
Not sure if this is necessary...
Reimplemented from Acclaim::SummarySelector.
Definition at line 30 of file CutTreeSelector.cxx.
|
virtual |
Main event loop
entry | is the local tree entry |
Reimplemented from Acclaim::SummarySelector.
Definition at line 174 of file CutTreeSelector.cxx.
void Acclaim::CutTreeSelector::setFormulaStrings | ( | const std::vector< const char * > & | formulaStrings | ) |
Set the formula strings to evaluate and put into the created output tree.
Puts c-style strings into a TList of TObjStrings, which can be passed to slaves via fInput
formulaStrings | are the formula strings to evaluate inside Process() |
Definition at line 50 of file CutTreeSelector.cxx.
|
virtual |
Called by all slave processes. Read fInput here, init fOutput here
Reimplemented from Acclaim::SummarySelector.
Definition at line 77 of file CutTreeSelector.cxx.
|
virtual |
Deallocate slave heap objects
Reimplemented from Acclaim::SummarySelector.
Definition at line 228 of file CutTreeSelector.cxx.
|
virtual |
Deallocate master heap objects
Reimplemented from Acclaim::SummarySelector.
Definition at line 254 of file CutTreeSelector.cxx.