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
IterativeCutSelector Class Reference

brief description More...

#include <IterativeCutSelector.h>

Inheritance diagram for IterativeCutSelector:
BaseSelector

Public Member Functions

 IterativeCutSelector ()
 
 IterativeCutSelector (const std::string &inputName)
 
 IterativeCutSelector (const std::string &inputName, const std::string &cfgFile)
 
virtual ~IterativeCutSelector ()
 
std::string getCutVar (std::string cutname)
 get cut variable from name
 
bool isCutGreaterThan (std::string cutname)
 is cut of type 'greater than'
 
void setCutValue (std::string cutname, double value)
 set cut value
 
bool passCutGTorLT (std::string cutname, double val)
 does value pass cut
 
void printCuts ()
 prints cuts and values
 
int getCutID (std::string cutname)
 get cut ID
 
void filterCuts (std::vector< std::string > cut_variable_list)
 remove cuts that aren't specified in the list of cut variables
 
std::map< std::string, std::pair< double, int > > * getPointerToCuts ()
 get pointer to the base class cuts
 
- Public Member Functions inherited from BaseSelector
 BaseSelector ()
 
 BaseSelector (const std::string &inputName)
 
 BaseSelector (const std::string &inputName, const std::string &cfgFile)
 
virtual ~BaseSelector ()
 
void setCfgFile (const std::string &cfgFile)
 Set the Cfg File object.
 
void setDebug (bool val)
 Set Debug.
 
bool hasCut (const std::string &cutname)
 description
 
bool LoadSelection ()
 description
 
float getCut (const std::string &cutname)
 Get cut values ?
 
std::map< std::string, std::pair< double, int > > getCuts ()
 description
 
void makeCutFlowHisto ()
 description
 
std::shared_ptr< TH1F > getCutFlowHisto ()
 Get the Cut Flow Histo.
 
bool passCut (const std::string &cutname, double val, double weight)
 description
 
bool passCutEq (const std::string &cutname, double val, double weight)
 description
 
bool passCutLt (const std::string &cutname, double val, double weight)
 description
 
bool passCutGt (const std::string &cutname, double val, double weight)
 description
 
void clearSelector ()
 description
 

Private Attributes

double skipCutVarValue_ = -9876543210.0
 

Additional Inherited Members

- Protected Types inherited from BaseSelector
typedef std::map< std::string, std::pair< double, int > >::iterator cut_it
 description
 
- Protected Attributes inherited from BaseSelector
std::map< std::string, std::pair< double, int > > cuts
 description
 
bool debug_ {false}
 description
 

Detailed Description

brief description

more details

Definition at line 21 of file IterativeCutSelector.h.

Constructor & Destructor Documentation

◆ IterativeCutSelector() [1/3]

Definition at line 6 of file IterativeCutSelector.cxx.

◆ IterativeCutSelector() [2/3]

IterativeCutSelector ( const std::string &  inputName)

Definition at line 9 of file IterativeCutSelector.cxx.

◆ IterativeCutSelector() [3/3]

IterativeCutSelector ( const std::string &  inputName,
const std::string &  cfgFile 
)

Definition at line 12 of file IterativeCutSelector.cxx.

◆ ~IterativeCutSelector()

~IterativeCutSelector ( )
virtual

Definition at line 15 of file IterativeCutSelector.cxx.

Member Function Documentation

◆ filterCuts()

void filterCuts ( std::vector< std::string >  cut_variable_list)

remove cuts that aren't specified in the list of cut variables

Parameters
cut_variables_list

Definition at line 86 of file IterativeCutSelector.cxx.

◆ getCutID()

int getCutID ( std::string  cutname)
inline

get cut ID

Parameters
cutname
Returns
cut ID

Definition at line 79 of file IterativeCutSelector.h.

◆ getCutVar()

std::string getCutVar ( std::string  cutname)

get cut variable from name

Parameters
cutname

Definition at line 25 of file IterativeCutSelector.cxx.

◆ getPointerToCuts()

std::map< std::string, std::pair< double, int > > * getPointerToCuts ( )
inline

get pointer to the base class cuts

Definition at line 93 of file IterativeCutSelector.h.

◆ isCutGreaterThan()

bool isCutGreaterThan ( std::string  cutname)

is cut of type 'greater than'

Parameters
cutname
Returns
true
false

Definition at line 17 of file IterativeCutSelector.cxx.

◆ passCutGTorLT()

bool passCutGTorLT ( std::string  cutname,
double  val 
)

does value pass cut

Parameters
cutname
val
Returns
true
false

Definition at line 55 of file IterativeCutSelector.cxx.

◆ printCuts()

void printCuts ( )

prints cuts and values

Definition at line 81 of file IterativeCutSelector.cxx.

◆ setCutValue()

void setCutValue ( std::string  cutname,
double  value 
)

set cut value

Parameters
cutname
value

Definition at line 44 of file IterativeCutSelector.cxx.

Member Data Documentation

◆ skipCutVarValue_

double skipCutVarValue_ = -9876543210.0
private

Definition at line 98 of file IterativeCutSelector.h.


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