CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
hitfit::Top_Fit_Args Class Reference

Hold on to parameters for the Top_Fit class. More...

#include <Top_Fit.h>

Public Member Functions

const Constrained_Top_Argsconstrainer_args () const
 
bool do_higgs_flag () const
 Return the do_higgs_flag parameter. More...
 
double jet_mass_cut () const
 Return the jet_mass_cut parameter. More...
 
double mtdiff_max_cut () const
 Return the mwhad_max_cut parameter. More...
 
double mwhad_max_cut () const
 Return the mwhad_min_cut parameter. More...
 
double mwhad_min_cut () const
 Return the mwhad_min_cut parameter. More...
 
int nkeep () const
 Return the nkeep parameter. More...
 
bool print_event_flag () const
 Return the print_event_flag parameter. More...
 
bool solve_nu_tmass () const
 Return the solve_nu_tmass parameter. More...
 
 Top_Fit_Args (const Defaults &defs)
 Constructor, initialize an instance of Top_Fit_Args from an instance of Defaults object. More...
 

Private Attributes

Constrained_Top_Args _args
 
bool _do_higgs_flag
 
double _jet_mass_cut
 
double _mtdiff_max_cut
 
double _mwhad_max_cut
 
double _mwhad_min_cut
 
int _nkeep
 
bool _print_event_flag
 
bool _solve_nu_tmass
 

Detailed Description

Hold on to parameters for the Top_Fit class.

Definition at line 69 of file Top_Fit.h.

Constructor & Destructor Documentation

◆ Top_Fit_Args()

hitfit::Top_Fit_Args::Top_Fit_Args ( const Defaults defs)

Constructor, initialize an instance of Top_Fit_Args from an instance of Defaults object.

Parameters
defsThe Defaults instance from which to initialize. The instance must contain the following parameters with types and names:
  • bool print_event_flag.
  • bool do_higgs_flag.
  • double jet_mass_cut.
  • double mwhad_min_cut.
  • double mwhad_max_cut.
  • double mtdiff_max_cut.
  • int nkeep.
  • bool solve_nu_tmass.

Definition at line 64 of file Top_Fit.cc.

71  : _print_event_flag(defs.get_bool("print_event_flag")),
72  _do_higgs_flag(defs.get_bool("do_higgs_flag")),
73  _jet_mass_cut(defs.get_float("jet_mass_cut")),
74  _mwhad_min_cut(defs.get_float("mwhad_min_cut")),
75  _mwhad_max_cut(defs.get_float("mwhad_max_cut")),
76  _mtdiff_max_cut(defs.get_float("mtdiff_max_cut")),
77  _nkeep(defs.get_int("nkeep")),
78  _solve_nu_tmass(defs.get_bool("solve_nu_tmass")),
79  _args(defs) {}

Member Function Documentation

◆ constrainer_args()

const Constrained_Top_Args & hitfit::Top_Fit_Args::constrainer_args ( ) const

Definition at line 153 of file Top_Fit.cc.

157  {
158  return _args;
159  }

References _args.

◆ do_higgs_flag()

bool hitfit::Top_Fit_Args::do_higgs_flag ( ) const

Return the do_higgs_flag parameter.

Definition at line 90 of file Top_Fit.cc.

95  {
96  return _do_higgs_flag;
97  }

References _do_higgs_flag.

Referenced by hitfit::Top_Fit::fit(), and hitfit::RunHitFit< AElectron, AMuon, AJet, AMet >::FitAllPermutation().

◆ jet_mass_cut()

double hitfit::Top_Fit_Args::jet_mass_cut ( ) const

Return the jet_mass_cut parameter.

Definition at line 99 of file Top_Fit.cc.

104  {
105  return _jet_mass_cut;
106  }

References _jet_mass_cut.

◆ mtdiff_max_cut()

double hitfit::Top_Fit_Args::mtdiff_max_cut ( ) const

Return the mwhad_max_cut parameter.

Definition at line 126 of file Top_Fit.cc.

131  {
132  return _mtdiff_max_cut;
133  }

References _mtdiff_max_cut.

◆ mwhad_max_cut()

double hitfit::Top_Fit_Args::mwhad_max_cut ( ) const

Return the mwhad_min_cut parameter.

Definition at line 117 of file Top_Fit.cc.

122  {
123  return _mwhad_max_cut;
124  }

References _mwhad_max_cut.

◆ mwhad_min_cut()

double hitfit::Top_Fit_Args::mwhad_min_cut ( ) const

Return the mwhad_min_cut parameter.

Definition at line 108 of file Top_Fit.cc.

113  {
114  return _mwhad_min_cut;
115  }

References _mwhad_min_cut.

◆ nkeep()

int hitfit::Top_Fit_Args::nkeep ( ) const

Return the nkeep parameter.

Definition at line 135 of file Top_Fit.cc.

140  {
141  return _nkeep;
142  }

References _nkeep.

Referenced by hitfit::Top_Fit::fit().

◆ print_event_flag()

bool hitfit::Top_Fit_Args::print_event_flag ( ) const

Return the print_event_flag parameter.

Definition at line 81 of file Top_Fit.cc.

86  {
87  return _print_event_flag;
88  }

References _print_event_flag.

Referenced by hitfit::Top_Fit::fit(), and hitfit::Top_Fit::fit_one_perm().

◆ solve_nu_tmass()

bool hitfit::Top_Fit_Args::solve_nu_tmass ( ) const

Return the solve_nu_tmass parameter.

Definition at line 144 of file Top_Fit.cc.

149  {
150  return _solve_nu_tmass;
151  }

References _solve_nu_tmass.

Referenced by hitfit::Top_Fit::fit_one_perm().

Member Data Documentation

◆ _args

Constrained_Top_Args hitfit::Top_Fit_Args::_args
private

The internal state, parameter settings for the Constrained_Top instance within an instance of Top_Fit.

Definition at line 222 of file Top_Fit.h.

Referenced by constrainer_args().

◆ _do_higgs_flag

bool hitfit::Top_Fit_Args::_do_higgs_flag
private

If TRUE, then fit a $ t\bar{t}H $ events. Otherwise fit $ t\bar{t} $ event.

Definition at line 165 of file Top_Fit.h.

Referenced by do_higgs_flag().

◆ _jet_mass_cut

double hitfit::Top_Fit_Args::_jet_mass_cut
private

Reject event before fit if there is at least one jet which have mass larger than this value, in GeV.

Definition at line 171 of file Top_Fit.h.

Referenced by jet_mass_cut().

◆ _mtdiff_max_cut

double hitfit::Top_Fit_Args::_mtdiff_max_cut
private

Reject event before fit if the mass difference between leptonic top and hadronic top is larger than this value, in GeV.

Definition at line 189 of file Top_Fit.h.

Referenced by mtdiff_max_cut().

◆ _mwhad_max_cut

double hitfit::Top_Fit_Args::_mwhad_max_cut
private

Reject event before fit if the mass of the hadronic $ W- $ boson is larger than this value, in GeV.

Definition at line 183 of file Top_Fit.h.

Referenced by mwhad_max_cut().

◆ _mwhad_min_cut

double hitfit::Top_Fit_Args::_mwhad_min_cut
private

Reject event before fit if the mass of the hadronic $ W- $ boson is smaller than this value, in GeV.

Definition at line 177 of file Top_Fit.h.

Referenced by mwhad_min_cut().

◆ _nkeep

int hitfit::Top_Fit_Args::_nkeep
private

The number of Fit_Results from different jet permutations to keep. It is recommended that the number is set accordingly to the maximally allowed number of jets in the event. The number for possible permutations, $ N_{t\bar{t}} $ , as a function of number of jets, $ n $ , for $ t\bar{t} $ event is given by:

\[ N_{t\bar{t}}(n) = \frac{n!}{(n-4)!};~ n \ge 4 \]

The number for possible permutations, $ N_{t\bar{t}H} $ , as a function of number of jets, $ n $ , for $ t\bar{t}H $ is given by:

\[ N_{t\bar{t}}(n) = \frac{n!}{(n-6)!2!};~ n \ge 6 \]

Definition at line 207 of file Top_Fit.h.

Referenced by nkeep().

◆ _print_event_flag

bool hitfit::Top_Fit_Args::_print_event_flag
private

If TRUE, then print the event after the fit. Otherwise don't print.

Definition at line 159 of file Top_Fit.h.

Referenced by print_event_flag().

◆ _solve_nu_tmass

bool hitfit::Top_Fit_Args::_solve_nu_tmass
private

If TRUE, then solve the neutrino longitudinal $ z- $ component by requiring the leptonic top have the same mass as the hadronic top. If FALSE, then solve the neutrino longitudinal $ z- $ component by requiring the lepton and neutrino mass to equal to the mass of the $ W- $ boson $ m_{W} $ .

Definition at line 216 of file Top_Fit.h.

Referenced by solve_nu_tmass().

hitfit::Top_Fit_Args::_mtdiff_max_cut
double _mtdiff_max_cut
Definition: Top_Fit.h:189
hitfit::Top_Fit_Args::_mwhad_min_cut
double _mwhad_min_cut
Definition: Top_Fit.h:177
hitfit::Top_Fit_Args::_nkeep
int _nkeep
Definition: Top_Fit.h:207
hitfit::Top_Fit_Args::_do_higgs_flag
bool _do_higgs_flag
Definition: Top_Fit.h:165
hitfit::Top_Fit_Args::_print_event_flag
bool _print_event_flag
Definition: Top_Fit.h:159
hitfit::Top_Fit_Args::_args
Constrained_Top_Args _args
Definition: Top_Fit.h:222
hitfit::Top_Fit_Args::_jet_mass_cut
double _jet_mass_cut
Definition: Top_Fit.h:171
hitfit::Top_Fit_Args::_solve_nu_tmass
bool _solve_nu_tmass
Definition: Top_Fit.h:216
hitfit::Top_Fit_Args::_mwhad_max_cut
double _mwhad_max_cut
Definition: Top_Fit.h:183