38        std::cout<<
"ERROR BaseSelector::Configuration File not specified";
 
   46            std::cout<<el.key() << 
" : " << el.value() << 
"\n";
 
   50        cuts[cut.key()].first  = cut.value().at(
"cut");
 
   51        cuts[cut.key()].second = cut.value().at(
"id");
 
   52        labels[cut.key()] = cut.value().at(
"info");
 
   58            std::cout<<it->first<<
" [value:]=" <<it->second.first<<
" [id:] ="<<it->second.second<<std::endl;
 
 
   69    h_cf_->GetXaxis()->SetCanExtend(
true);
 
   71    h_cf_->GetXaxis()->SetBinLabel(1,
"no-cuts");
 
   74        h_cf_->GetXaxis()->SetBinLabel((it->second.second+2),
labels[(it->first)].c_str());
 
 
   83        if (val != 
cuts[cutname].first) { 
 
   88            h_cf_->Fill((
double)(
cuts[cutname].second + 1), w);
 
 
   99        if (val > 
cuts[cutname].first) {
 
  104            h_cf_->Fill((
double)(
cuts[cutname].second + 1), w);
 
 
  114        if (val < 
cuts[cutname].first) {
 
  119            h_cf_->Fill((
double)(
cuts[cutname].second + 1), w);
 
 
std::map< std::string, std::pair< double, int > > cuts
description
json _h_selections
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::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::string m_name
description
bool passSelection
description
void setCfgFile(const std::string &cfgFile)
Set the Cfg File object.
bool passCutEq(const std::string &cutname, double val, double weight)
description