CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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>

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

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...
 
- Public Member Functions inherited from hitfit::Refcount
void decref () const
 Decrease the reference count. More...
 
bool decref_will_delete () const
 Return true if calling decref() will delete the object. Otherwise return FALSE. More...
 
void incref () const
 Increment the reference count. More...
 
 Refcount ()
 Constructor, initialize the reference count to 0. More...
 
bool unowned () const
 Return true if incref() has never been called or if the object is being deleted. Otherwise return FALSE. More...
 
virtual ~Refcount ()
 Destructor, it is an error to try to delete an object if the reference count is not 0. 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...
 

Additional Inherited Members

- Protected Member Functions inherited from hitfit::Refcount
void nuke_refcount ()
 Reset the reference count to zero. This should only be used in the context of a destructor of a derived class that wants to throw an exception. It may also be used to implement a "release" function. More...
 

Detailed Description

Hold the result of one kinematic fit.

Definition at line 53 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 46 of file Fit_Result.cc.

67  : _chisq (chisq),
68  _umwhad (umwhad),
69  _utmass (utmass),
70  _mt (mt),
71  _sigmt (sigmt),
72  _pullx (pullx),
73  _pully (pully),
74  _ev (ev)
75 {
76 }
Column_Vector _pully
Definition: Fit_Result.h:173
const Column_Vector & pullx() const
Return the pull quantities for the well-measured variables.
Definition: Fit_Result.cc:139
const Lepjets_Event & ev() const
Return the event kinematics quantities after the fit.
Definition: Fit_Result.cc:171
double sigmt() const
Return the top quark mass uncertainty after the fit.
Definition: Fit_Result.cc:127
double umwhad() const
Return the hadronic boson mass before the fit.
Definition: Fit_Result.cc:91
double utmass() const
Return the top quark mass before the fit.
Definition: Fit_Result.cc:103
const Column_Vector & pully() const
Return the pull quantities for the poorly-measured variables.
Definition: Fit_Result.cc:151
Lepjets_Event _ev
Definition: Fit_Result.h:178
Column_Vector _pullx
Definition: Fit_Result.h:168
double mt() const
Return the top quark mass after the fit.
Definition: Fit_Result.cc:115
double chisq() const
Return the of the fit.
Definition: Fit_Result.cc:79

Member Function Documentation

double hitfit::Fit_Result::chisq ( ) const

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

Definition at line 79 of file Fit_Result.cc.

References _chisq.

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

Return the event kinematics quantities after the fit.

Definition at line 171 of file Fit_Result.cc.

References _ev.

178 {
179  return _ev;
180 }
Lepjets_Event _ev
Definition: Fit_Result.h:178
std::vector< int > hitfit::Fit_Result::jet_types ( )

Return the list of jet types for this event.

Definition at line 163 of file Fit_Result.cc.

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

167 {
168  return _ev.jet_types();
169 }
std::vector< int > jet_types() const
Return the jet types in the event.
Lepjets_Event _ev
Definition: Fit_Result.h:178
double hitfit::Fit_Result::mt ( ) const

Return the top quark mass after the fit.

Definition at line 115 of file Fit_Result.cc.

References _mt.

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

Return the pull quantities for the well-measured variables.

Definition at line 139 of file Fit_Result.cc.

References _pullx.

146 {
147  return _pullx;
148 }
Column_Vector _pullx
Definition: Fit_Result.h:168
const Column_Vector & hitfit::Fit_Result::pully ( ) const

Return the pull quantities for the poorly-measured variables.

Definition at line 151 of file Fit_Result.cc.

References _pully.

158 {
159  return _pully;
160 }
Column_Vector _pully
Definition: Fit_Result.h:173
double hitfit::Fit_Result::sigmt ( ) const

Return the top quark mass uncertainty after the fit.

Definition at line 127 of file Fit_Result.cc.

References _sigmt.

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

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

Definition at line 91 of file Fit_Result.cc.

References _umwhad.

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

Return the top quark mass before the fit.

Definition at line 103 of file Fit_Result.cc.

References _utmass.

110 {
111  return _utmass;
112 }

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

208 {
209  return abs (a._chisq) < abs (b._chisq);
210 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
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 221 of file Fit_Result.cc.

232 {
233  s << "chisq: " << res._chisq << "\n";
234  s << "umwhad: " << res._umwhad << "\n";
235  s << "utmass: " << res._utmass << "\n";
236  s << "mt: " << res._mt << "\n";
237  s << "sigmt: " << res._sigmt << "\n";
238  s << res._ev;
239  s << "pullx: " << res._pullx.T();
240  s << "pully: " << res._pully.T();
241  return s;
242 }
Definition: Electron.h:4

Member Data Documentation

double hitfit::Fit_Result::_chisq
private

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

Definition at line 143 of file Fit_Result.h.

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

Lepjets_Event hitfit::Fit_Result::_ev
private

The event kinematics after the fit.

Definition at line 178 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 158 of file Fit_Result.h.

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

Column_Vector hitfit::Fit_Result::_pullx
private

Pull quantities for the well-measured variables.

Definition at line 168 of file Fit_Result.h.

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

Column_Vector hitfit::Fit_Result::_pully
private

Pull quantities for the poorly-measured variables.

Definition at line 173 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 163 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 148 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 153 of file Fit_Result.h.

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