Handle and fit jet permutations of an event. This is the primary interface between user's Lepjets_Event and HitFit kinematic fitting algorithm. More...
#include <Top_Fit.h>
Public Member Functions | |
const Top_Fit_Args & | args () const |
Return a constant reference to the fit arguments. More... | |
Fit_Results | fit (const Lepjets_Event &ev) |
Fit all jets permutations in ev. This function returns a Fit_Results object, which is not easy to extract information from. Users are recommended to use the class RunHitFit as interface to fit all permutations of all event. More... | |
double | fit_one_perm (Lepjets_Event &ev, bool &nuz, double &umwhad, double &utmass, double &mt, double &sigmt, Column_Vector &pullx, Column_Vector &pully) |
Fit for a single jet permutation. More... | |
Top_Fit (const Top_Fit_Args &args, double lepw_mass, double hadw_mass, double top_mass) | |
Constructor. More... | |
Private Attributes | |
const Top_Fit_Args | _args |
Constrained_Top | _constrainer |
double | _hadw_mass |
double | _lepw_mass |
Friends | |
std::ostream & | operator<< (std::ostream &s, const Top_Fit &fitter) |
Output stream operator, print the content of this Top_Fit object to an output stream. More... | |
Handle and fit jet permutations of an event. This is the primary interface between user's Lepjets_Event and HitFit kinematic fitting algorithm.
hitfit::Top_Fit::Top_Fit | ( | const Top_Fit_Args & | args, |
double | lepw_mass, | ||
double | hadw_mass, | ||
double | top_mass | ||
) |
Constructor.
args | The parameter settings. |
lepw_mass | The mass to which the leptonic boson should be constrained to. A value of zero means this constraint will be removed. |
hadw_mass | The mass to which the hadronic boson should be constrained to. A value of zero means this constraint will be removed. |
top_mass | The mass to which the top quark should be constrained to. A value of zero means this constraint will be removed. |
Definition at line 367 of file Top_Fit.cc.
const Top_Fit_Args & hitfit::Top_Fit::args | ( | ) | const |
Return a constant reference to the fit arguments.
Definition at line 608 of file Top_Fit.cc.
References _args.
Referenced by hitfit::RunHitFit< AElectron, AMuon, AJet, AMet >::FitAllPermutation().
Fit_Results hitfit::Top_Fit::fit | ( | const Lepjets_Event & | ev | ) |
Fit all jets permutations in ev. This function returns a Fit_Results object, which is not easy to extract information from. Users are recommended to use the class RunHitFit as interface to fit all permutations of all event.
ev | Input: The event to fit, Output: the event after the fit. |
Definition at line 498 of file Top_Fit.cc.
References _args, assert(), gather_cfg::cout, hitfit::Top_Fit_Args::do_higgs_flag(), ev, fit_one_perm(), hitfit::hadb_label, hitfit::hadw1_label, hitfit::higgs_label, i, hitfit::isr_label, hitfit::lepb_label, hitfit::n_lists, hitfit::Lepjets_Event::njets(), hitfit::Top_Fit_Args::nkeep(), hitfit::noperm_list, and hitfit::Top_Fit_Args::print_event_flag().
double hitfit::Top_Fit::fit_one_perm | ( | Lepjets_Event & | ev, |
bool & | nuz, | ||
double & | umwhad, | ||
double & | utmass, | ||
double & | mt, | ||
double & | sigmt, | ||
Column_Vector & | pullx, | ||
Column_Vector & | pully | ||
) |
Fit for a single jet permutation.
ev | Input: The event to fit, Output: the event after the fit. |
nuz | Input: A flag to indicate which neutrino solution to be used. FALSE means use solution with smaller absolute value. TRUE means use solution with larger absolute value. |
umwhad | The mass of hadronic boson before the fit. |
utmass | The mass of the top quarks before fitting, averaged from the values of leptonic and hadronic top quark mass. |
mt | The mass of the top quark after fitting. |
sigmt | The uncertainty of the mass of the top quark after fitting. |
pullx | Pull quantities for well-measured variables. |
pully | Pull quantities for poorly-measured variables. |
Definition at line 392 of file Top_Fit.cc.
References _args, _constrainer, _hadw_mass, _lepw_mass, hitfit::adjust_e_for_mass(), hitfit::Constrained_Top::constrain(), gather_cfg::cout, hitfit::Top_Decaykin::dump_ev(), hitfit::Top_Decaykin::hadt(), hitfit::Top_Decaykin::hadw(), hitfit::Top_Decaykin::lept(), visualization-live-secondInstance_cfg::m, hitfit::Lepjets_Event::met(), hitfit::Top_Fit_Args::print_event_flag(), hitfit::Top_Decaykin::solve_nu(), hitfit::Top_Decaykin::solve_nu_tmass(), and hitfit::Top_Fit_Args::solve_nu_tmass().
Referenced by fit(), and hitfit::RunHitFit< AElectron, AMuon, AJet, AMet >::FitAllPermutation().
|
friend |
Output stream operator, print the content of this Top_Fit object to an output stream.
s | The output stream to which to write. |
fitter | The instance of Top_Fit to be printed. |
Definition at line 592 of file Top_Fit.cc.
|
private |
Definition at line 326 of file Top_Fit.h.
Referenced by Vispa.Main.Application.Application::_readCommandLineAttributes(), args(), fit(), and fit_one_perm().
|
private |
Definition at line 327 of file Top_Fit.h.
Referenced by fit_one_perm(), and hitfit::operator<<().
|
private |
Definition at line 329 of file Top_Fit.h.
Referenced by fit_one_perm().
|
private |
Definition at line 328 of file Top_Fit.h.
Referenced by fit_one_perm().