A class to parse AnitaEventSummary trees, extract quantities of interest, feed them into a TMVA framework and separate them.
More...
#include <CutOptimizer.h>
|
| CutOptimizer (const char *signalGlob, const char *backgroundGlob=NULL) |
|
virtual | ~CutOptimizer () |
|
void | optimize (const std::vector< const TCut * > &signalSelection, const std::vector< const TCut * > &backgroundSelection, const std::vector< TString > &formulaStrings, const char *outFileName="") |
|
|
enum | BranchType { kUnassigned,
kInt,
kFloat
} |
|
enum | { kSNR,
kEnergy
} |
|
enum | { kInSequence,
kIfFirst
} |
|
|
TString | fSignalGlob |
|
TString | fBackgroundGlob |
|
TString | fOutFileName |
|
TFile * | fOutFile |
|
TChain * | fSignalTree |
|
TChain * | fBackgroundTree |
|
std::vector< TEfficiency * > | fSignalEffs [numEffVars][numCutOrders] |
|
|
static const int | numEffVars = 2 |
|
static const int | numCutOrders = 2 |
|
A class to parse AnitaEventSummary trees, extract quantities of interest, feed them into a TMVA framework and separate them.
Definition at line 30 of file CutOptimizer.h.
Add to a list of extra tree for which you wish to calculate the MVA score
- Parameters
-
treeName | is the name of the tree to create |
glob | is the wildcard filenames for the ROOT files containing AnitaEventSummary trees (named sunTree) |
spectatorSelection | is a vector of TCut variables used to choose the spectators |
- Returns
- the number of spectator trees to be prepared
Definition at line 65 of file CutOptimizer.h.
Acclaim::CutOptimizer::CutOptimizer |
( |
const char * |
signalGlob, |
|
|
const char * |
backgroundGlob = NULL |
|
) |
| |
Constructor
- Parameters
-
summaryFileGlob,a | glob expression for getting files containing trees of AnitaEventSummary |
save_trees | is a boolian which determines whether or not the intermediate TTrees fed into TMVA. |
Definition at line 280 of file CutOptimizer.cxx.
Acclaim::CutOptimizer::~CutOptimizer |
( |
| ) |
|
|
virtual |
TString Acclaim::CutOptimizer::branchifyName |
( |
const char * |
formStr | ) |
|
|
static |
**
TChain can only notify one object when the underlying tree changes. The point of this class is to inherit from TObject and overload Notify(), then pass that on to all the TFormulas I'm interested in.
- Returns
- always returns true. Destructor: Delete all the contained TFormula and unset the TChain Notification Creates a TFormula object, and put it in the vector
- Parameters
-
formulaStr | is the string from which to generate the formula |
- Returns
- the number of contained TFormula Remove function/object like things from the formula string but make a recognisable branch name
- Parameters
-
formStr | is the c-string string containig the fromula |
- Returns
- the branch name
Definition at line 428 of file CutOptimizer.cxx.
TFile * Acclaim::CutOptimizer::makeOutputFile |
( |
const char * |
outFileName | ) |
|
|
protected |
Generate the output file
- Parameters
-
outFileName | name to give the file |
- Returns
- pointer to the newly created TFile
Definition at line 321 of file CutOptimizer.cxx.
The documentation for this class was generated from the following files: