Class to calculate the jet combination LR value and purity from a root-file with fit functions. More...
#include <TopQuarkAnalysis/TopLeptonSelection/interface/TtSemiLRSignalSelCalc.h>
Public Member Functions | |
void | operator() (TtSemiEvtSolution &) |
TtSemiLRSignalSelCalc (TString, std::vector< int >) | |
TtSemiLRSignalSelCalc () | |
~TtSemiLRSignalSelCalc () | |
Private Attributes | |
bool | addPurity |
LRHelpFunctions * | myLR |
Class to calculate the jet combination LR value and purity from a root-file with fit functions.
Definition at line 32 of file TtSemiLRSignalSelCalc.h.
TtSemiLRSignalSelCalc::TtSemiLRSignalSelCalc | ( | ) |
TtSemiLRSignalSelCalc::TtSemiLRSignalSelCalc | ( | TString | fitInputPath, |
std::vector< int > | observables | ||
) |
Definition at line 10 of file TtSemiLRSignalSelCalc.cc.
References addPurity, gather_cfg::cout, and myLR.
TtSemiLRSignalSelCalc::~TtSemiLRSignalSelCalc | ( | ) |
void TtSemiLRSignalSelCalc::operator() | ( | TtSemiEvtSolution & | sol | ) |
Definition at line 25 of file TtSemiLRSignalSelCalc.cc.
References addPurity, LRHelpFunctions::calcLRval(), LRHelpFunctions::calcProb(), TtSemiEvtSolution::getLRSignalEvtObsVal(), myLR, connectstrParser::o, LRHelpFunctions::obsFitIncluded(), TtSemiEvtSolution::setLRSignalEvtLRval(), and TtSemiEvtSolution::setLRSignalEvtProb().
{ // find the used observables std::vector<double> obsVals; for(unsigned int o = 0; o<100; o++){ if( myLR->obsFitIncluded(o) ) obsVals.push_back(sol.getLRSignalEvtObsVal(o)); } // calculate the logLR and the purity double logLR = myLR->calcLRval(obsVals); double prob = -999.; if(addPurity) prob = myLR->calcProb(logLR); // fill these values to the members in the TtSemiEvtSolution sol.setLRSignalEvtLRval(logLR); sol.setLRSignalEvtProb(prob); }
bool TtSemiLRSignalSelCalc::addPurity [private] |
Definition at line 45 of file TtSemiLRSignalSelCalc.h.
Referenced by operator()(), and TtSemiLRSignalSelCalc().
LRHelpFunctions* TtSemiLRSignalSelCalc::myLR [private] |
Definition at line 44 of file TtSemiLRSignalSelCalc.h.
Referenced by operator()(), TtSemiLRSignalSelCalc(), and ~TtSemiLRSignalSelCalc().