#include <TtHadLRJetCombCalc.h>
Public Member Functions | |
void | operator() (TtHadEvtSolution &) |
TtHadLRJetCombCalc (TString, std::vector< int >) | |
TtHadLRJetCombCalc () | |
~TtHadLRJetCombCalc () | |
Private Attributes | |
bool | addPurity |
LRHelpFunctions * | myLR |
Definition at line 19 of file TtHadLRJetCombCalc.h.
TtHadLRJetCombCalc::TtHadLRJetCombCalc | ( | ) |
TtHadLRJetCombCalc::TtHadLRJetCombCalc | ( | TString | fitInputPath, |
std::vector< int > | observables | ||
) |
Definition at line 7 of file TtHadLRJetCombCalc.cc.
References addPurity, gather_cfg::cout, and myLR.
TtHadLRJetCombCalc::~TtHadLRJetCombCalc | ( | ) |
void TtHadLRJetCombCalc::operator() | ( | TtHadEvtSolution & | sol | ) |
Definition at line 22 of file TtHadLRJetCombCalc.cc.
References addPurity, LRHelpFunctions::calcLRval(), LRHelpFunctions::calcProb(), TtHadEvtSolution::getLRJetCombObsVal(), myLR, python::connectstrParser::o, LRHelpFunctions::obsFitIncluded(), TtHadEvtSolution::setLRJetCombLRval(), and TtHadEvtSolution::setLRJetCombProb().
{ // find the used observables std::vector<double> obsVals; for(unsigned int o = 0; o<100; o++){ if( myLR->obsFitIncluded(o) ) {obsVals.push_back(sol.getLRJetCombObsVal(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.setLRJetCombLRval(logLR); sol.setLRJetCombProb(prob); }
bool TtHadLRJetCombCalc::addPurity [private] |
Definition at line 31 of file TtHadLRJetCombCalc.h.
Referenced by operator()(), and TtHadLRJetCombCalc().
LRHelpFunctions* TtHadLRJetCombCalc::myLR [private] |
Definition at line 30 of file TtHadLRJetCombCalc.h.
Referenced by operator()(), TtHadLRJetCombCalc(), and ~TtHadLRJetCombCalc().