CMS 3D CMS Logo

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

Hold the result of one kinematic fit. More...

#include <Fit_Result.h>

Public Member Functions

double chisq () const
 Return the $ \chi^{2} $ of the fit. More...
 
const Lepjets_Eventev () const
 Return the event kinematics quantities after the fit. More...
 
 Fit_Result (double chisq, const Lepjets_Event &ev, const Column_Vector &pullx, const Column_Vector &pully, double umwhad, double utmass, double mt, double sigmt)
 Constructor, provide the results of the fit. More...
 
std::vector< int > jet_types ()
 Return the list of jet types for this event. More...
 
double mt () const
 Return the top quark mass after the fit. More...
 
const Column_Vectorpullx () const
 Return the pull quantities for the well-measured variables. More...
 
const Column_Vectorpully () const
 Return the pull quantities for the poorly-measured variables. More...
 
double sigmt () const
 Return the top quark mass uncertainty after the fit. More...
 
double umwhad () const
 Return the hadronic $ W- $ boson mass before the fit. More...
 
double utmass () const
 Return the top quark mass before the fit. More...
 

Private Attributes

double _chisq
 
Lepjets_Event _ev
 
double _mt
 
Column_Vector _pullx
 
Column_Vector _pully
 
double _sigmt
 
double _umwhad
 
double _utmass
 

Friends

bool operator< (const Fit_Result &a, const Fit_Result &b)
 Sort fit results based on their $\chi^{2}$. More...
 
std::ostream & operator<< (std::ostream &s, const Fit_Result &res)
 Output stream operator, print the content of this Fit_Result to an output stream. More...
 

Detailed Description

Hold the result of one kinematic fit.

Definition at line 50 of file Fit_Result.h.

Constructor & Destructor Documentation

◆ Fit_Result()

hitfit::Fit_Result::Fit_Result ( double  chisq,
const Lepjets_Event ev,
const Column_Vector pullx,
const Column_Vector pully,
double  umwhad,
double  utmass,
double  mt,
double  sigmt 
)

Constructor, provide the results of the fit.

Parameters
chisqThe $ \chi^{2} $ of the fit.
evThe event kinematics after the fit.
pullxPull quantities for the well-measured variables.
pullyPull quantities for the poorly-measured variables.
umwhadThe hadronic $ W- $ boson mass before the fit.
utmassThe top quark mass before the fit, the average of leptonic and hadronic top mass.
mtThe top quark mass after the fit.
sigmtThe top quark mass uncertainty after the fit.

Definition at line 43 of file Fit_Result.cc.

Column_Vector _pully
Definition: Fit_Result.h:169
const Column_Vector & pully() const
Return the pull quantities for the poorly-measured variables.
Definition: Fit_Result.cc:132
const Column_Vector & pullx() const
Return the pull quantities for the well-measured variables.
Definition: Fit_Result.cc:121
double utmass() const
Return the top quark mass before the fit.
Definition: Fit_Result.cc:88
Lepjets_Event _ev
Definition: Fit_Result.h:174
double mt() const
Return the top quark mass after the fit.
Definition: Fit_Result.cc:99
Column_Vector _pullx
Definition: Fit_Result.h:164
double chisq() const
Return the of the fit.
Definition: Fit_Result.cc:66
double sigmt() const
Return the top quark mass uncertainty after the fit.
Definition: Fit_Result.cc:110
const Lepjets_Event & ev() const
Return the event kinematics quantities after the fit.
Definition: Fit_Result.cc:151
double umwhad() const
Return the hadronic boson mass before the fit.
Definition: Fit_Result.cc:77

Member Function Documentation

◆ chisq()

double hitfit::Fit_Result::chisq ( ) const

Return the $ \chi^{2} $ of the fit.

Definition at line 66 of file Fit_Result.cc.

References _chisq.

73  {
74  return _chisq;
75  }

◆ ev()

const Lepjets_Event & hitfit::Fit_Result::ev ( ) const

Return the event kinematics quantities after the fit.

Definition at line 151 of file Fit_Result.cc.

References _ev.

158  {
159  return _ev;
160  }
Lepjets_Event _ev
Definition: Fit_Result.h:174

◆ jet_types()

std::vector< int > hitfit::Fit_Result::jet_types ( )

Return the list of jet types for this event.

Definition at line 143 of file Fit_Result.cc.

References _ev, and hitfit::Lepjets_Event::jet_types().

147  {
148  return _ev.jet_types();
149  }
Lepjets_Event _ev
Definition: Fit_Result.h:174
std::vector< int > jet_types() const
Return the jet types in the event.

◆ mt()

double hitfit::Fit_Result::mt ( ) const

Return the top quark mass after the fit.

Definition at line 99 of file Fit_Result.cc.

References _mt.

106  {
107  return _mt;
108  }

◆ pullx()

const Column_Vector & hitfit::Fit_Result::pullx ( ) const

Return the pull quantities for the well-measured variables.

Definition at line 121 of file Fit_Result.cc.

References _pullx.

128  {
129  return _pullx;
130  }
Column_Vector _pullx
Definition: Fit_Result.h:164

◆ pully()

const Column_Vector & hitfit::Fit_Result::pully ( ) const

Return the pull quantities for the poorly-measured variables.

Definition at line 132 of file Fit_Result.cc.

References _pully.

139  {
140  return _pully;
141  }
Column_Vector _pully
Definition: Fit_Result.h:169

◆ sigmt()

double hitfit::Fit_Result::sigmt ( ) const

Return the top quark mass uncertainty after the fit.

Definition at line 110 of file Fit_Result.cc.

References _sigmt.

117  {
118  return _sigmt;
119  }

◆ umwhad()

double hitfit::Fit_Result::umwhad ( ) const

Return the hadronic $ W- $ boson mass before the fit.

Definition at line 77 of file Fit_Result.cc.

References _umwhad.

84  {
85  return _umwhad;
86  }

◆ utmass()

double hitfit::Fit_Result::utmass ( ) const

Return the top quark mass before the fit.

Definition at line 88 of file Fit_Result.cc.

References _utmass.

95  {
96  return _utmass;
97  }

Friends And Related Function Documentation

◆ operator<

bool operator< ( const Fit_Result a,
const Fit_Result b 
)
friend

Sort fit results based on their $\chi^{2}$.

Parameters
aThe first instance of Fit_Result to compare.
bThe second instance of Fit_Result to compare.
Return:
TRUE if the first instance has smaller absolute value of $\chi^{2}$ than b.
FALSE all other cases.

Definition at line 174 of file Fit_Result.cc.

187  {
188  return abs(a._chisq) < abs(b._chisq);
189  }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double b
Definition: hdecay.h:118
double a
Definition: hdecay.h:119

◆ operator<<

std::ostream& operator<< ( std::ostream &  s,
const Fit_Result res 
)
friend

Output stream operator, print the content of this Fit_Result to an output stream.

Parameters
sThe output stream to which to write.
resThe instance of Fit_Result to be printed.

Definition at line 199 of file Fit_Result.cc.

210  {
211  s << "chisq: " << res._chisq << "\n";
212  s << "umwhad: " << res._umwhad << "\n";
213  s << "utmass: " << res._utmass << "\n";
214  s << "mt: " << res._mt << "\n";
215  s << "sigmt: " << res._sigmt << "\n";
216  s << res._ev;
217  s << "pullx: " << res._pullx.T();
218  s << "pully: " << res._pully.T();
219  return s;
220  }
Definition: Electron.h:6

Member Data Documentation

◆ _chisq

double hitfit::Fit_Result::_chisq
private

The $ \chi^{2} $ of the fit.

Definition at line 139 of file Fit_Result.h.

Referenced by chisq().

◆ _ev

Lepjets_Event hitfit::Fit_Result::_ev
private

The event kinematics after the fit.

Definition at line 174 of file Fit_Result.h.

Referenced by ev(), and jet_types().

◆ _mt

double hitfit::Fit_Result::_mt
private

The top quark mass after the fit.

Definition at line 154 of file Fit_Result.h.

Referenced by mt().

◆ _pullx

Column_Vector hitfit::Fit_Result::_pullx
private

Pull quantities for the well-measured variables.

Definition at line 164 of file Fit_Result.h.

Referenced by pullx().

◆ _pully

Column_Vector hitfit::Fit_Result::_pully
private

Pull quantities for the poorly-measured variables.

Definition at line 169 of file Fit_Result.h.

Referenced by pully().

◆ _sigmt

double hitfit::Fit_Result::_sigmt
private

The top quark mass uncertainty after the fit.

Definition at line 159 of file Fit_Result.h.

Referenced by sigmt().

◆ _umwhad

double hitfit::Fit_Result::_umwhad
private

The hadronic $ W- $ boson mass before the fit.

Definition at line 144 of file Fit_Result.h.

Referenced by umwhad().

◆ _utmass

double hitfit::Fit_Result::_utmass
private

The top quark mass before the fit.

Definition at line 149 of file Fit_Result.h.

Referenced by utmass().