CMS 3D CMS Logo

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 
37 
40 #include <iosfwd>
41 #include <vector>
42 
43 namespace hitfit {
44 
45 
53 //
54 // Purpose: Hold the result from a single kinematic fit.
55 //
56 {
57 public:
58  // Constructor. Provide the results of the fit.
72  Fit_Result (double chisq,
73  const Lepjets_Event& ev,
74  const Column_Vector& pullx,
75  const Column_Vector& pully,
76  double umwhad,
77  double utmass,
78  double mt,
79  double sigmt);
80 
81  // Get back the fit result.
85  double chisq () const;
86 
90  double umwhad () const;
91 
95  double utmass () const;
96 
100  double mt () const;
101 
105  double sigmt () const;
106 
110  const Column_Vector& pullx () const;
111 
115  const Column_Vector& pully () const;
116 
120  const Lepjets_Event& ev () const;
121 
122  // For sorting by chisq.
123  friend bool operator< (const Fit_Result& a, const Fit_Result& b);
124 
125  // Print this object.
126  friend std::ostream& operator<< (std::ostream& s, const Fit_Result& res);
127 
128  // Get the jet-types permutation
133  std::vector<int> jet_types();
134 
135 private:
136  // Store the results of the kinematic fit.
137 
141  double _chisq;
142 
146  double _umwhad;
147 
151  double _utmass;
152 
156  double _mt;
157 
161  double _sigmt;
162 
167 
172 
177 };
178 
179 
180 } // namespace hitfit
181 
182 
183 #endif // not HITFIT_FIT_RESULT_H
Hold the result of one kinematic fit.
Definition: Fit_Result.h:52
Column_Vector _pully
Definition: Fit_Result.h:171
const Column_Vector & pullx() const
Return the pull quantities for the well-measured variables.
Definition: Fit_Result.cc:139
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:46
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
CLHEP::HepVector Column_Vector
Definition: matutil.h:66
Define matrix types for the HitFit package, and supply a few additional operations.
Definition: Electron.h:6
double umwhad() const
Return the hadronic boson mass before the fit.
Definition: Fit_Result.cc:91
std::vector< int > jet_types()
Return the list of jet types for this event.
Definition: Fit_Result.cc:163
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:103
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:221
const Column_Vector & pully() const
Return the pull quantities for the poorly-measured variables.
Definition: Fit_Result.cc:151
Represent a simple event consisting of lepton(s) and jet(s). An instance of this class holds a list o...
Definition: Lepjets_Event.h:66
Lepjets_Event _ev
Definition: Fit_Result.h:176
Column_Vector _pullx
Definition: Fit_Result.h:166
friend bool operator<(const Fit_Result &a, const Fit_Result &b)
Sort fit results based on their .
Definition: Fit_Result.cc:195
double b
Definition: hdecay.h:120
double mt() const
Return the top quark mass after the fit.
Definition: Fit_Result.cc:115
double a
Definition: hdecay.h:121
double chisq() const
Return the of the fit.
Definition: Fit_Result.cc:79