Classes | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
Acclaim::CutOptimizer Class Reference

A class to parse AnitaEventSummary trees, extract quantities of interest, feed them into a TMVA framework and separate them. More...

#include <CutOptimizer.h>

Classes

class  FisherResult
 Get the results of the Fisher Discriminant into a more useful form. More...
 

Public Member Functions

 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="")
 

Static Public Member Functions

static void setDebug (bool db)
 
static TString branchifyName (const char *formStr)
 ** More...
 

Protected Types

enum  BranchType { kUnassigned, kInt, kFloat }
 
enum  { kSNR, kEnergy }
 
enum  { kInSequence, kIfFirst }
 

Protected Member Functions

TFile * makeOutputFile (const char *outFileName)
 

Protected Attributes

TString fSignalGlob
 
TString fBackgroundGlob
 
TString fOutFileName
 
TFile * fOutFile
 
TChain * fSignalTree
 
TChain * fBackgroundTree
 
std::vector< TEfficiency * > fSignalEffs [numEffVars][numCutOrders]
 

Static Protected Attributes

static const int numEffVars = 2
 
static const int numCutOrders = 2
 

Detailed Description

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.

Collaboration diagram for Acclaim::CutOptimizer:
Collaboration graph
[legend]

Member Enumeration Documentation

Add to a list of extra tree for which you wish to calculate the MVA score

Parameters
treeNameis the name of the tree to create
globis the wildcard filenames for the ROOT files containing AnitaEventSummary trees (named sunTree)
spectatorSelectionis 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.

Constructor & Destructor Documentation

Acclaim::CutOptimizer::CutOptimizer ( const char *  signalGlob,
const char *  backgroundGlob = NULL 
)

Constructor

Parameters
summaryFileGlob,aglob expression for getting files containing trees of AnitaEventSummary
save_treesis 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

Destructor

Definition at line 304 of file CutOptimizer.cxx.

Member Function Documentation

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
formulaStris 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
formStris 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
outFileNamename 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: