14using json = nlohmann::json;
 
   25        BaseSelector(
const std::string& inputName, 
const std::string& cfgFile);
 
   49        bool hasCut(
const std::string& cutname) {
 
   50            if (
cuts.find(cutname) != 
cuts.end()) 
return true;
 
 
   68        float getCut(
const std::string& cutname) {
 
   70                std::cout << 
"ERROR " << cutname << 
" cut not implemented" << std::endl;
 
   73            else return cuts[cutname].first;
 
 
   81        std::map<std::string, std::pair<double,int> > 
getCuts(){ 
return cuts; }
 
  105        bool passCut(
const std::string& cutname, 
double val, 
double weight){ 
return true; };
 
  116        bool passCutEq(
const std::string& cutname, 
double val, 
double weight);
 
  127        bool passCutLt(
const std::string& cutname, 
double val, 
double weight);
 
  138        bool passCutGt(
const std::string& cutname, 
double val, 
double weight);
 
  147        typedef std::map<std::string, std::pair<double, int>>::iterator 
cut_it; 
 
  148        std::map<std::string,std::pair<double, int>> 
cuts; 
 
  158        std::map<std::string,std::string> 
labels; 
 
 
float getCut(const std::string &cutname)
Get cut values ?
std::map< std::string, std::pair< double, int > > cuts
description
json _h_selections
description
void clearSelector()
description
bool passCutLt(const std::string &cutname, double val, double weight)
description
bool hasCut(const std::string &cutname)
description
bool passCutGt(const std::string &cutname, double val, double weight)
description
void setDebug(bool val)
Set Debug.
std::shared_ptr< TH1F > getCutFlowHisto()
Get the Cut Flow Histo.
std::map< std::string, std::pair< double, int > >::iterator cut_it
description
std::shared_ptr< TH1F > h_cf_
description
void makeCutFlowHisto()
description
std::map< std::string, std::string > labels
description
bool LoadSelection()
description
std::string m_cfgFile
description
std::map< std::string, std::pair< double, int > > getCuts()
description
std::string m_name
description
bool passSelection
description
bool passCut(const std::string &cutname, double val, double weight)
description
void setCfgFile(const std::string &cfgFile)
Set the Cfg File object.
bool passCutEq(const std::string &cutname, double val, double weight)
description