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.

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.

73  {
74  return _chisq;
75  }

References _chisq.

◆ 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.

158  {
159  return _ev;
160  }

References _ev.

◆ 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.

147  {
148  return _ev.jet_types();
149  }

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

◆ mt()

double hitfit::Fit_Result::mt ( ) const

Return the top quark mass after the fit.

Definition at line 99 of file Fit_Result.cc.

106  {
107  return _mt;
108  }

References _mt.

◆ 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.

128  {
129  return _pullx;
130  }

References _pullx.

◆ 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.

139  {
140  return _pully;
141  }

References _pully.

◆ 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.

117  {
118  return _sigmt;
119  }

References _sigmt.

◆ 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.

84  {
85  return _umwhad;
86  }

References _umwhad.

◆ utmass()

double hitfit::Fit_Result::utmass ( ) const

Return the top quark mass before the fit.

Definition at line 88 of file Fit_Result.cc.

95  {
96  return _utmass;
97  }

References _utmass.

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  }

◆ 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  }

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().

hitfit::Lepjets_Event::jet_types
std::vector< int > jet_types() const
Return the jet types in the event.
Definition: Lepjets_Event.cc:408
hitfit::Fit_Result::_umwhad
double _umwhad
Definition: Fit_Result.h:144
hitfit::Fit_Result::sigmt
double sigmt() const
Return the top quark mass uncertainty after the fit.
Definition: Fit_Result.cc:110
hitfit::Fit_Result::mt
double mt() const
Return the top quark mass after the fit.
Definition: Fit_Result.cc:99
hitfit::Fit_Result::pullx
const Column_Vector & pullx() const
Return the pull quantities for the well-measured variables.
Definition: Fit_Result.cc:121
hitfit::Fit_Result::_pully
Column_Vector _pully
Definition: Fit_Result.h:169
alignCSCRings.s
s
Definition: alignCSCRings.py:92
hitfit::Fit_Result::utmass
double utmass() const
Return the top quark mass before the fit.
Definition: Fit_Result.cc:88
hitfit::Fit_Result::_utmass
double _utmass
Definition: Fit_Result.h:149
hitfit::Fit_Result::_sigmt
double _sigmt
Definition: Fit_Result.h:159
hitfit::Fit_Result::chisq
double chisq() const
Return the of the fit.
Definition: Fit_Result.cc:66
b
double b
Definition: hdecay.h:118
a
double a
Definition: hdecay.h:119
hitfit::Fit_Result::_chisq
double _chisq
Definition: Fit_Result.h:139
hitfit::Fit_Result::_pullx
Column_Vector _pullx
Definition: Fit_Result.h:164
res
Definition: Electron.h:6
hitfit::Fit_Result::umwhad
double umwhad() const
Return the hadronic boson mass before the fit.
Definition: Fit_Result.cc:77
hitfit::Fit_Result::_mt
double _mt
Definition: Fit_Result.h:154
hitfit::Fit_Result::_ev
Lepjets_Event _ev
Definition: Fit_Result.h:174
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
hitfit::Fit_Result::pully
const Column_Vector & pully() const
Return the pull quantities for the poorly-measured variables.
Definition: Fit_Result.cc:132
hitfit::Fit_Result::ev
const Lepjets_Event & ev() const
Return the event kinematics quantities after the fit.
Definition: Fit_Result.cc:151