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.
Loading...
Searching...
No Matches
BaseSelector Class Reference

brief description More...

#include <BaseSelector.h>

Inheritance diagram for BaseSelector:
IterativeCutSelector TreeCutSelector

Public Member Functions

 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< double, int > >::iterator cut_it
 description

Protected Attributes

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
bool passSelection {false}
 description

Detailed Description

brief description

more details

Definition at line 21 of file BaseSelector.h.

Member Typedef Documentation

◆ cut_it

typedef std::map<std::string,std::pair<double,int>>::iterator cut_it
protected

description

Definition at line 147 of file BaseSelector.h.

Constructor & Destructor Documentation

◆ BaseSelector() [1/3]

Definition at line 5 of file BaseSelector.cxx.

◆ BaseSelector() [2/3]

BaseSelector ( const std::string & inputName)

Definition at line 12 of file BaseSelector.cxx.

◆ BaseSelector() [3/3]

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

Definition at line 19 of file BaseSelector.cxx.

◆ ~BaseSelector()

~BaseSelector ( )
virtual

Definition at line 34 of file BaseSelector.cxx.

Member Function Documentation

◆ clearSelector()

void clearSelector ( )
inline

description

Definition at line 144 of file BaseSelector.h.

◆ getCut()

float getCut ( const std::string & cutname)
inline

Get cut values ?

Parameters
cutname
Returns
float

Definition at line 68 of file BaseSelector.h.

◆ getCutFlowHisto()

std::shared_ptr< TH1F > getCutFlowHisto ( )
inline

Get the Cut Flow Histo.

Returns
std::shared_ptr<TH1F>

Definition at line 94 of file BaseSelector.h.

◆ getCuts()

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

description

Returns
std::map<std::string, std::pair<double,int> >

Definition at line 81 of file BaseSelector.h.

◆ hasCut()

bool hasCut ( const std::string & cutname)
inline

description

Parameters
cutname
Returns
true
false

Definition at line 49 of file BaseSelector.h.

◆ LoadSelection()

bool LoadSelection ( )

description

Returns
true
false

Definition at line 36 of file BaseSelector.cxx.

◆ makeCutFlowHisto()

void makeCutFlowHisto ( )

description

Definition at line 66 of file BaseSelector.cxx.

◆ passCut()

bool passCut ( const std::string & cutname,
double val,
double weight )
inline

description

Parameters
cutname
val
weight
Returns
true
false

Definition at line 105 of file BaseSelector.h.

◆ passCutEq()

bool passCutEq ( const std::string & cutname,
double val,
double weight )

description

Parameters
cutname
val
weight
Returns
true
false

Definition at line 80 of file BaseSelector.cxx.

◆ passCutGt()

bool passCutGt ( const std::string & cutname,
double val,
double weight )

description

Parameters
cutname
val
weight
Returns
true
false

Definition at line 111 of file BaseSelector.cxx.

◆ passCutLt()

bool passCutLt ( const std::string & cutname,
double val,
double weight )

description

Parameters
cutname
val
weight
Returns
true
false

Definition at line 96 of file BaseSelector.cxx.

◆ setCfgFile()

void setCfgFile ( const std::string & cfgFile)

Set the Cfg File object.

Parameters
cfgFile

Definition at line 26 of file BaseSelector.cxx.

◆ setDebug()

void setDebug ( bool val)

Set Debug.

Parameters
val

Definition at line 30 of file BaseSelector.cxx.

Member Data Documentation

◆ _h_selections

json _h_selections
private

description

Definition at line 152 of file BaseSelector.h.

◆ cuts

std::map<std::string,std::pair<double, int> > cuts
protected

description

Definition at line 148 of file BaseSelector.h.

◆ debug_

bool debug_ {false}
protected

description

Definition at line 149 of file BaseSelector.h.

◆ h_cf_

std::shared_ptr<TH1F> h_cf_
private

description

Definition at line 161 of file BaseSelector.h.

◆ labels

std::map<std::string,std::string> labels
private

description

Definition at line 158 of file BaseSelector.h.

◆ m_cfgFile

std::string m_cfgFile {""}
private

description

Definition at line 154 of file BaseSelector.h.

◆ m_name

std::string m_name {""}
private

description

Definition at line 153 of file BaseSelector.h.

◆ ncuts_

int ncuts_ {0}
private

description

Definition at line 160 of file BaseSelector.h.

◆ passSelection

bool passSelection {false}
private

description

Definition at line 162 of file BaseSelector.h.


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