Class to calculate the jet combination LR value and purity from a root-file with fit functions. More...
#include <TopQuarkAnalysis/TopLeptonSelection/interface/TtHadLRSignalSelCalc.h>
Public Member Functions | |
void | operator() (TtHadEvtSolution &) |
TtHadLRSignalSelCalc (TString, std::vector< int >) | |
TtHadLRSignalSelCalc () | |
~TtHadLRSignalSelCalc () | |
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 29 of file TtHadLRSignalSelCalc.h.
TtHadLRSignalSelCalc::TtHadLRSignalSelCalc | ( | ) |
TtHadLRSignalSelCalc::TtHadLRSignalSelCalc | ( | TString | fitInputPath, |
std::vector< int > | observables | ||
) |
Definition at line 8 of file TtHadLRSignalSelCalc.cc.
References addPurity, gather_cfg::cout, and myLR.
TtHadLRSignalSelCalc::~TtHadLRSignalSelCalc | ( | ) |
void TtHadLRSignalSelCalc::operator() | ( | TtHadEvtSolution & | sol | ) |
Definition at line 23 of file TtHadLRSignalSelCalc.cc.
References addPurity, LRHelpFunctions::calcLRval(), LRHelpFunctions::calcProb(), TtHadEvtSolution::getLRSignalEvtObsVal(), myLR, connectstrParser::o, LRHelpFunctions::obsFitIncluded(), TtHadEvtSolution::setLRSignalEvtLRval(), and TtHadEvtSolution::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 TtHadEvtSolution sol.setLRSignalEvtLRval(logLR); sol.setLRSignalEvtProb(prob); }
bool TtHadLRSignalSelCalc::addPurity [private] |
Definition at line 41 of file TtHadLRSignalSelCalc.h.
Referenced by operator()(), and TtHadLRSignalSelCalc().
LRHelpFunctions* TtHadLRSignalSelCalc::myLR [private] |
Definition at line 40 of file TtHadLRSignalSelCalc.h.
Referenced by operator()(), TtHadLRSignalSelCalc(), and ~TtHadLRSignalSelCalc().