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

68  : _chisq (chisq),
69  _umwhad (umwhad),
70  _utmass (utmass),
71  _mt (mt),
72  _sigmt (sigmt),
73  _pullx (pullx),
74  _pully (pully),
75  _ev (ev)
76 {
77 }
Column_Vector _pully
Definition: Fit_Result.h:174
const Column_Vector & pullx() const
Return the pull quantities for the well-measured variables.
Definition: Fit_Result.cc:140
const Lepjets_Event & ev() const
Return the event kinematics quantities after the fit.
Definition: Fit_Result.cc:172
double sigmt() const
Return the top quark mass uncertainty after the fit.
Definition: Fit_Result.cc:128
double umwhad() const
Return the hadronic boson mass before the fit.
Definition: Fit_Result.cc:92
double utmass() const
Return the top quark mass before the fit.
Definition: Fit_Result.cc:104
const Column_Vector & pully() const
Return the pull quantities for the poorly-measured variables.
Definition: Fit_Result.cc:152
Lepjets_Event _ev
Definition: Fit_Result.h:179
Column_Vector _pullx
Definition: Fit_Result.h:169
double mt() const
Return the top quark mass after the fit.
Definition: Fit_Result.cc:116
double chisq() const
Return the of the fit.
Definition: Fit_Result.cc:80

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.

87 {
88  return _chisq;
89 }
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.

179 {
180  return _ev;
181 }
Lepjets_Event _ev
Definition: Fit_Result.h:179
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().

168 {
169  return _ev.jet_types();
170 }
std::vector< int > jet_types() const
Return the jet types in the event.
Lepjets_Event _ev
Definition: Fit_Result.h:179
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.

123 {
124  return _mt;
125 }
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.

147 {
148  return _pullx;
149 }
Column_Vector _pullx
Definition: Fit_Result.h:169
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.

159 {
160  return _pully;
161 }
Column_Vector _pully
Definition: Fit_Result.h:174
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.

135 {
136  return _sigmt;
137 }
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.

99 {
100  return _umwhad;
101 }
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.

111 {
112  return _utmass;
113 }

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.

209 {
210  return abs (a._chisq) < abs (b._chisq);
211 }
#define abs(x)
Definition: mlp_lapack.h:159
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 222 of file Fit_Result.cc.

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

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

Lepjets_Event hitfit::Fit_Result::_ev
private

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

Column_Vector hitfit::Fit_Result::_pullx
private

Pull quantities for the well-measured variables.

Definition at line 169 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 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().