|
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.
|
#include <TreeCutSelector.h>
Public Member Functions | |
| TreeCutSelector () | |
| TreeCutSelector (const std::string &inputName) | |
| TreeCutSelector (const std::string &inputName, const std::string &cfgFile) | |
| virtual | ~TreeCutSelector () |
| bool | LoadSelection () |
| std::string | getCutString (std::string cutname, bool forTree=false) |
| std::string | getFullCutString (std::vector< std::string > cuts_to_exclude={}, bool forTree=false) |
| std::string | getCutVar (std::string cutname, bool forTree=false) |
| void | makeCutFlowHisto () |
| description | |
| std::map< std::string, std::pair< std::pair< double, double >, int > > * | getPointerToCuts () |
| get pointer to the base class cuts | |
| std::pair< double, double > | getCutRange (std::string cutname) |
| void | printCuts () |
| void | setCutValue (std::string cutname, std::pair< double, double > value) |
| bool | hasCut (const std::string &cutname) |
| void | filterCuts (std::vector< std::string > cut_variable_list) |
| 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 | |
Protected Types | |
| typedef std::map< std::string, std::pair< std::pair< double, double >, int > >::iterator | range_cut_it |
| description | |
| Protected Types inherited from BaseSelector | |
| typedef std::map< std::string, std::pair< double, int > >::iterator | cut_it |
| description | |
Protected Attributes | |
| std::map< std::string, std::pair< std::pair< double, double >, int > > | range_cuts |
| Protected Attributes inherited from BaseSelector | |
| std::map< std::string, std::pair< double, int > > | cuts |
| description | |
| bool | debug_ {false} |
| description | |
Private Attributes | |
| json | _h_selections |
| description | |
| std::string | m_name {""} |
| description | |
| std::string | m_cfgFile {""} |
| description | |
| std::map< std::string, std::string > | labels |
| description | |
| int | ncuts_ {0} |
| description | |
| std::shared_ptr< TH1F > | h_cf_ |
| description | |
Definition at line 10 of file TreeCutSelector.h.
|
protected |
description
Definition at line 65 of file TreeCutSelector.h.
| TreeCutSelector | ( | ) |
Definition at line 3 of file TreeCutSelector.cxx.
| TreeCutSelector | ( | const std::string & | inputName | ) |
Definition at line 5 of file TreeCutSelector.cxx.
| TreeCutSelector | ( | const std::string & | inputName, |
| const std::string & | cfgFile ) |
Definition at line 11 of file TreeCutSelector.cxx.
|
virtual |
Definition at line 17 of file TreeCutSelector.cxx.
| void filterCuts | ( | std::vector< std::string > | cut_variable_list | ) |
Definition at line 126 of file TreeCutSelector.cxx.
|
inline |
Definition at line 35 of file TreeCutSelector.h.
| std::string getCutString | ( | std::string | cutname, |
| bool | forTree = false ) |
Definition at line 72 of file TreeCutSelector.cxx.
| std::string getCutVar | ( | std::string | cutname, |
| bool | forTree = false ) |
Definition at line 62 of file TreeCutSelector.cxx.
| std::string getFullCutString | ( | std::vector< std::string > | cuts_to_exclude = {}, |
| bool | forTree = false ) |
Definition at line 100 of file TreeCutSelector.cxx.
|
inline |
get pointer to the base class cuts
Definition at line 33 of file TreeCutSelector.h.
|
inline |
Definition at line 55 of file TreeCutSelector.h.
| bool LoadSelection | ( | ) |
Definition at line 19 of file TreeCutSelector.cxx.
| void makeCutFlowHisto | ( | ) |
description
Definition at line 50 of file TreeCutSelector.cxx.
|
inline |
Definition at line 43 of file TreeCutSelector.h.
|
inline |
Definition at line 50 of file TreeCutSelector.h.
|
private |
description
Definition at line 69 of file TreeCutSelector.h.
|
private |
description
Definition at line 74 of file TreeCutSelector.h.
|
private |
description
Definition at line 72 of file TreeCutSelector.h.
|
private |
description
Definition at line 71 of file TreeCutSelector.h.
|
private |
description
Definition at line 70 of file TreeCutSelector.h.
|
private |
description
Definition at line 73 of file TreeCutSelector.h.
|
protected |
Definition at line 66 of file TreeCutSelector.h.