hpstr
The Heavy Photon Search Toolkit for Reconstruction (hpstr) provides an interface to physics data from the HPS experiment saved in the LCIO format and converts it into an ROOT based format.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Private Attributes | List of all members
SimpAnaTTree Class Reference

Read in flat TTree and create new cut variables for SIMP analysis. More...

#include <SimpAnaTTree.h>

Inheritance diagram for SimpAnaTTree:
MutableTTree

Public Member Functions

 SimpAnaTTree (TFile *infile, std::string tree_name)
 
 ~SimpAnaTTree ()
 
void addVariable_unc_vtx_ele_zalpha (double slope)
 New Variables.
 
void addVariable_unc_vtx_pos_zalpha (double slope)
 
void addVariable_unc_vtx_zalpha_max (double slope)
 
void addVariable_unc_vtx_zalpha_min (double slope)
 
void addVariable_unc_vtx_ele_iso_z0err ()
 
void addVariable_unc_vtx_pos_iso_z0err ()
 
void addVariable_unc_vtx_ele_z0_z0err ()
 
void addVariable_unc_vtx_pos_z0_z0err ()
 
void addVariable_unc_vtx_ele_isolation_cut ()
 
void addVariable_unc_vtx_pos_isolation_cut ()
 
void addVariable_unc_vtx_ele_z0tanlambda ()
 
void addVariable_unc_vtx_pos_z0tanlambda ()
 
void addVariable_unc_vtx_ele_z0tanlambda_right (double slope)
 
void addVariable_unc_vtx_pos_z0tanlambda_right (double slope)
 
void addVariable_unc_vtx_ele_z0tanlambda_left (double slope)
 
void addVariable_unc_vtx_pos_z0tanlambda_left (double slope)
 
void addVariable_unc_vtx_abs_delta_z0tanlambda ()
 
void addVariable (std::string variableName, double param) override
 
void unc_vtx_ele_zalpha (double slope)
 
void unc_vtx_pos_zalpha (double slope)
 
void unc_vtx_deltaZ ()
 
bool impactParameterCut2016Canonical (double mass)
 
- Public Member Functions inherited from MutableTTree
 MutableTTree (TFile *infile, std::string tree_name)
 
int GetEntries ()
 return number of entries in tree
 
void GetEntry (int entry)
 get tree entry
 
void Fill ()
 Fill ttree with new variables included.
 
void shiftVariable (std::string variable, double shift)
 Apply any corrections to specified variable.
 
double getValue (std::string branch_name)
 Get the value of a flat tuple variable.
 
void printEvent ()
 Print TTree Event.
 
void setBranchValue (std::string branch_name, double value)
 Set branch value.
 
void addNewBranch (std::string branch)
 Add new branch to ttree.
 
void defineMassWindow (double lowMass, double highMass)
 Set the mass window within which to read the input ttree.
 
std::vector< std::string > getAllVariables ()
 Get list of all variables defined in ttree.
 
bool variableExists (std::string variable)
 Check if a variable exists in the ttree.
 
void addVariableToTBranch (const std::string &variableName)
 
 ~MutableTTree ()
 

Private Attributes

double skipCutVarValue_ = -9876543210.0
 

Additional Inherited Members

- Protected Attributes inherited from MutableTTree
TTree * tree_ {nullptr}
 flat ttree
 
TTree * newtree_ {nullptr}
 temporary ttree used to create and fill new branches
 
std::map< std::string, double * > tuple_
 holds all variables and values
 
std::map< std::string, TBranch * > new_branches
 list of new branches added to ttree
 
std::map< std::string, double * > new_variables_
 list of new variables
 
std::map< std::string, std::function< double()> > functions_
 functions that calculate new variables
 
std::map< std::string, std::function< double()> > variable_shifts_
 variable corrections
 

Detailed Description

Read in flat TTree and create new cut variables for SIMP analysis.

Definition at line 17 of file SimpAnaTTree.h.

Constructor & Destructor Documentation

◆ SimpAnaTTree()

SimpAnaTTree ( TFile *  infile,
std::string  tree_name 
)
inline

Definition at line 21 of file SimpAnaTTree.h.

◆ ~SimpAnaTTree()

Member Function Documentation

◆ addVariable()

void addVariable ( std::string  variableName,
double  param 
)
overridevirtual

Implements MutableTTree.

Definition at line 36 of file SimpAnaTTree.cxx.

◆ addVariable_unc_vtx_abs_delta_z0tanlambda()

void addVariable_unc_vtx_abs_delta_z0tanlambda ( )

Definition at line 356 of file SimpAnaTTree.cxx.

◆ addVariable_unc_vtx_ele_iso_z0err()

void addVariable_unc_vtx_ele_iso_z0err ( )

Definition at line 204 of file SimpAnaTTree.cxx.

◆ addVariable_unc_vtx_ele_isolation_cut()

void addVariable_unc_vtx_ele_isolation_cut ( )

Definition at line 256 of file SimpAnaTTree.cxx.

◆ addVariable_unc_vtx_ele_z0_z0err()

void addVariable_unc_vtx_ele_z0_z0err ( )

Definition at line 230 of file SimpAnaTTree.cxx.

◆ addVariable_unc_vtx_ele_z0tanlambda()

void addVariable_unc_vtx_ele_z0tanlambda ( )

Definition at line 284 of file SimpAnaTTree.cxx.

◆ addVariable_unc_vtx_ele_z0tanlambda_left()

void addVariable_unc_vtx_ele_z0tanlambda_left ( double  slope)

Definition at line 332 of file SimpAnaTTree.cxx.

◆ addVariable_unc_vtx_ele_z0tanlambda_right()

void addVariable_unc_vtx_ele_z0tanlambda_right ( double  slope)

Definition at line 308 of file SimpAnaTTree.cxx.

◆ addVariable_unc_vtx_ele_zalpha()

void addVariable_unc_vtx_ele_zalpha ( double  slope)

New Variables.

Definition at line 106 of file SimpAnaTTree.cxx.

◆ addVariable_unc_vtx_pos_iso_z0err()

void addVariable_unc_vtx_pos_iso_z0err ( )

Definition at line 217 of file SimpAnaTTree.cxx.

◆ addVariable_unc_vtx_pos_isolation_cut()

void addVariable_unc_vtx_pos_isolation_cut ( )

Definition at line 270 of file SimpAnaTTree.cxx.

◆ addVariable_unc_vtx_pos_z0_z0err()

void addVariable_unc_vtx_pos_z0_z0err ( )

Definition at line 243 of file SimpAnaTTree.cxx.

◆ addVariable_unc_vtx_pos_z0tanlambda()

void addVariable_unc_vtx_pos_z0tanlambda ( )

Definition at line 296 of file SimpAnaTTree.cxx.

◆ addVariable_unc_vtx_pos_z0tanlambda_left()

void addVariable_unc_vtx_pos_z0tanlambda_left ( double  slope)

Definition at line 344 of file SimpAnaTTree.cxx.

◆ addVariable_unc_vtx_pos_z0tanlambda_right()

void addVariable_unc_vtx_pos_z0tanlambda_right ( double  slope)

Definition at line 320 of file SimpAnaTTree.cxx.

◆ addVariable_unc_vtx_pos_zalpha()

void addVariable_unc_vtx_pos_zalpha ( double  slope)

Definition at line 125 of file SimpAnaTTree.cxx.

◆ addVariable_unc_vtx_zalpha_max()

void addVariable_unc_vtx_zalpha_max ( double  slope)

Definition at line 144 of file SimpAnaTTree.cxx.

◆ addVariable_unc_vtx_zalpha_min()

void addVariable_unc_vtx_zalpha_min ( double  slope)

Definition at line 174 of file SimpAnaTTree.cxx.

◆ impactParameterCut2016Canonical()

bool impactParameterCut2016Canonical ( double  mass)

Definition at line 3 of file SimpAnaTTree.cxx.

◆ unc_vtx_deltaZ()

void unc_vtx_deltaZ ( )

Definition at line 89 of file SimpAnaTTree.cxx.

◆ unc_vtx_ele_zalpha()

void unc_vtx_ele_zalpha ( double  slope)

Definition at line 53 of file SimpAnaTTree.cxx.

◆ unc_vtx_pos_zalpha()

void unc_vtx_pos_zalpha ( double  slope)

Definition at line 71 of file SimpAnaTTree.cxx.

Member Data Documentation

◆ skipCutVarValue_

double skipCutVarValue_ = -9876543210.0
private

Definition at line 83 of file SimpAnaTTree.h.


The documentation for this class was generated from the following files: