CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Fit_Result.h
Go to the documentation of this file.
1 //
2 //
3 // File: hitfit/Fit_Result.h
4 // Purpose: Hold the result from a single kinematic fit.
5 // Created: Jul, 2000, sss, based on run 1 mass analysis code.
6 //
7 // These objects are reference-counted.
8 //
9 // CMSSW File : interface/Fit_Result.h
10 // Original Author : Scott Stuart Snyder <snyder@bnl.gov> for D0
11 // Imported to CMSSW by Haryo Sumowidagdo <Suharyo.Sumowidagdo@cern.ch>
12 //
13 
34 #ifndef HITFIT_FIT_RESULT_H
35 #define HITFIT_FIT_RESULT_H
36 
39 #include <iosfwd>
40 #include <vector>
41 
42 namespace hitfit {
43 
50  class Fit_Result
51  //
52  // Purpose: Hold the result from a single kinematic fit.
53  //
54  {
55  public:
56  // Constructor. Provide the results of the fit.
70  Fit_Result(double chisq,
71  const Lepjets_Event& ev,
72  const Column_Vector& pullx,
73  const Column_Vector& pully,
74  double umwhad,
75  double utmass,
76  double mt,
77  double sigmt);
78 
79  // Get back the fit result.
83  double chisq() const;
84 
88  double umwhad() const;
89 
93  double utmass() const;
94 
98  double mt() const;
99 
103  double sigmt() const;
104 
108  const Column_Vector& pullx() const;
109 
113  const Column_Vector& pully() const;
114 
118  const Lepjets_Event& ev() const;
119 
120  // For sorting by chisq.
121  friend bool operator<(const Fit_Result& a, const Fit_Result& b);
122 
123  // Print this object.
124  friend std::ostream& operator<<(std::ostream& s, const Fit_Result& res);
125 
126  // Get the jet-types permutation
131  std::vector<int> jet_types();
132 
133  private:
134  // Store the results of the kinematic fit.
135 
139  double _chisq;
140 
144  double _umwhad;
145 
149  double _utmass;
150 
154  double _mt;
155 
159  double _sigmt;
160 
165 
170 
175  };
176 
177 } // namespace hitfit
178 
179 #endif // not HITFIT_FIT_RESULT_H
Hold the result of one kinematic fit.
Definition: Fit_Result.h:50
Column_Vector _pully
Definition: Fit_Result.h:169
const Column_Vector & pullx() const
Return the pull quantities for the well-measured variables.
Definition: Fit_Result.cc:121
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.
Definition: Fit_Result.cc:43
const Lepjets_Event & ev() const
Return the event kinematics quantities after the fit.
Definition: Fit_Result.cc:151
double sigmt() const
Return the top quark mass uncertainty after the fit.
Definition: Fit_Result.cc:110
CLHEP::HepVector Column_Vector
Definition: matutil.h:63
Define matrix types for the HitFit package, and supply a few additional operations.
double umwhad() const
Return the hadronic boson mass before the fit.
Definition: Fit_Result.cc:77
std::vector< int > jet_types()
Return the list of jet types for this event.
Definition: Fit_Result.cc:143
Represent a simple event consisting of lepton(s) and jet(s).
double utmass() const
Return the top quark mass before the fit.
Definition: Fit_Result.cc:88
friend std::ostream & operator<<(std::ostream &s, const Fit_Result &res)
Output stream operator, print the content of this Fit_Result to an output stream. ...
Definition: Fit_Result.cc:199
const Column_Vector & pully() const
Return the pull quantities for the poorly-measured variables.
Definition: Fit_Result.cc:132
Represent a simple event consisting of lepton(s) and jet(s). An instance of this class holds a list o...
Definition: Lepjets_Event.h:62
Lepjets_Event _ev
Definition: Fit_Result.h:174
Column_Vector _pullx
Definition: Fit_Result.h:164
friend bool operator<(const Fit_Result &a, const Fit_Result &b)
Sort fit results based on their .
Definition: Fit_Result.cc:174
double b
Definition: hdecay.h:118
double mt() const
Return the top quark mass after the fit.
Definition: Fit_Result.cc:99
double a
Definition: hdecay.h:119
double chisq() const
Return the of the fit.
Definition: Fit_Result.cc:66