16 fCorrectors {Leg1Loose, Leg1Tight, Leg2Loose, Leg2Tight}
31 iCorr->SetInTree(tree);
45 auto leg1_tight =
fCorrectors[1]->EvaluateWithFlag();
46 auto leg2_tight =
fCorrectors[3]->EvaluateWithFlag();
52 if ((
bool) leg1_tight.first != (
bool) leg2_tight.first) {
54 return leg1_tight.second * leg2_loose;
56 return leg2_tight.second * leg1_loose;
61 return (leg1_tight.second * leg1_tight.second * leg1_loose + leg2_tight.second * leg2_tight.second * leg2_loose) /
62 (leg1_tight.second + leg2_tight.second);
64 return leg1_loose * leg2_loose;
71 *newTwoScaleFactorCorrector = *
this;
72 newTwoScaleFactorCorrector->
fIsCopy =
true;
80 std::vector<TString> all_formulas;
82 auto formulas = i_corr->GetFormulas();
83 all_formulas.insert(all_formulas.end(), formulas.begin(), formulas.end());