CMS 3D CMS Logo

Public Member Functions | Private Attributes | Friends

hitfit::Fit_Result Class Reference

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

#include <Fit_Result.h>

Inheritance diagram for hitfit::Fit_Result:
hitfit::Refcount

List of all members.

Public Member Functions

double chisq () const
 Return the $ \chi^{2} $ of the fit.
const Lepjets_Eventev () const
 Return the event kinematics quantities after the fit.
 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.
std::vector< int > jet_types ()
 Return the list of jet types for this event.
double mt () const
 Return the top quark mass after the fit.
const Column_Vectorpullx () const
 Return the pull quantities for the well-measured variables.
const Column_Vectorpully () const
 Return the pull quantities for the poorly-measured variables.
double sigmt () const
 Return the top quark mass uncertainty after the fit.
double umwhad () const
 Return the hadronic $ W- $ boson mass before the fit.
double utmass () const
 Return the top quark mass before the fit.

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}$.
std::ostream & operator<< (std::ostream &s, const Fit_Result &res)
 Output stream operator, print the content of this Fit_Result to an output stream.

Detailed Description

Hold the result of one kinematic fit.

Definition at line 54 of file Fit_Result.h.


Constructor & Destructor Documentation

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 47 of file Fit_Result.cc.


Member Function Documentation

double hitfit::Fit_Result::chisq ( ) const

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

Definition at line 80 of file Fit_Result.cc.

References _chisq.

{
  return _chisq;
}
const Lepjets_Event & hitfit::Fit_Result::ev ( ) const

Return the event kinematics quantities after the fit.

Definition at line 172 of file Fit_Result.cc.

References _ev.

{
  return _ev;
}
std::vector< int > hitfit::Fit_Result::jet_types ( )

Return the list of jet types for this event.

Definition at line 164 of file Fit_Result.cc.

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

{
  return _ev.jet_types();
}
double hitfit::Fit_Result::mt ( ) const

Return the top quark mass after the fit.

Definition at line 116 of file Fit_Result.cc.

References _mt.

{
  return _mt;
}
const Column_Vector & hitfit::Fit_Result::pullx ( ) const

Return the pull quantities for the well-measured variables.

Definition at line 140 of file Fit_Result.cc.

References _pullx.

{
  return _pullx;
}
const Column_Vector & hitfit::Fit_Result::pully ( ) const

Return the pull quantities for the poorly-measured variables.

Definition at line 152 of file Fit_Result.cc.

References _pully.

{
  return _pully;
}
double hitfit::Fit_Result::sigmt ( ) const

Return the top quark mass uncertainty after the fit.

Definition at line 128 of file Fit_Result.cc.

References _sigmt.

{
  return _sigmt;
}
double hitfit::Fit_Result::umwhad ( ) const

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

Definition at line 92 of file Fit_Result.cc.

References _umwhad.

{
  return _umwhad;
}
double hitfit::Fit_Result::utmass ( ) const

Return the top quark mass before the fit.

Definition at line 104 of file Fit_Result.cc.

References _utmass.

{
  return _utmass;
}

Friends And Related Function Documentation

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 196 of file Fit_Result.cc.

{
  return abs (a._chisq) < abs (b._chisq);
}
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 222 of file Fit_Result.cc.

{
  s << "chisq: "  << res._chisq  << "\n";
  s << "umwhad: " << res._umwhad << "\n";
  s << "utmass: " << res._utmass << "\n";
  s << "mt: "     << res._mt     << "\n";
  s << "sigmt: "  << res._sigmt << "\n";
  s << res._ev;
  s << "pullx: " << res._pullx.T();
  s << "pully: " << res._pully.T();
  return s;
}

Member Data Documentation

double hitfit::Fit_Result::_chisq [private]

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

Definition at line 144 of file Fit_Result.h.

Referenced by chisq(), hitfit::operator<(), and hitfit::operator<<().

The event kinematics after the fit.

Definition at line 179 of file Fit_Result.h.

Referenced by ev(), jet_types(), and hitfit::operator<<().

double hitfit::Fit_Result::_mt [private]

The top quark mass after the fit.

Definition at line 159 of file Fit_Result.h.

Referenced by mt(), and hitfit::operator<<().

Pull quantities for the well-measured variables.

Definition at line 169 of file Fit_Result.h.

Referenced by hitfit::operator<<(), and pullx().

Pull quantities for the poorly-measured variables.

Definition at line 174 of file Fit_Result.h.

Referenced by hitfit::operator<<(), and pully().

double hitfit::Fit_Result::_sigmt [private]

The top quark mass uncertainty after the fit.

Definition at line 164 of file Fit_Result.h.

Referenced by hitfit::operator<<(), and sigmt().

double hitfit::Fit_Result::_umwhad [private]

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

Definition at line 149 of file Fit_Result.h.

Referenced by hitfit::operator<<(), and umwhad().

double hitfit::Fit_Result::_utmass [private]

The top quark mass before the fit.

Definition at line 154 of file Fit_Result.h.

Referenced by hitfit::operator<<(), and utmass().