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 
41 #include <iosfwd>
42 #include <vector>
43 
44 namespace hitfit {
45 
46 
54  : public hitfit::Refcount
55 //
56 // Purpose: Hold the result from a single kinematic fit.
57 //
58 {
59 public:
60  // Constructor. Provide the results of the fit.
74  Fit_Result (double chisq,
75  const Lepjets_Event& ev,
76  const Column_Vector& pullx,
77  const Column_Vector& pully,
78  double umwhad,
79  double utmass,
80  double mt,
81  double sigmt);
82 
83  // Get back the fit result.
87  double chisq () const;
88 
92  double umwhad () const;
93 
97  double utmass () const;
98 
102  double mt () const;
103 
107  double sigmt () const;
108 
112  const Column_Vector& pullx () const;
113 
117  const Column_Vector& pully () const;
118 
122  const Lepjets_Event& ev () const;
123 
124  // For sorting by chisq.
125  friend bool operator< (const Fit_Result& a, const Fit_Result& b);
126 
127  // Print this object.
128  friend std::ostream& operator<< (std::ostream& s, const Fit_Result& res);
129 
130  // Get the jet-types permutation
135  std::vector<int> jet_types();
136 
137 private:
138  // Store the results of the kinematic fit.
139 
143  double _chisq;
144 
148  double _umwhad;
149 
153  double _utmass;
154 
158  double _mt;
159 
163  double _sigmt;
164 
169 
174 
179 };
180 
181 
182 } // namespace hitfit
183 
184 
185 #endif // not HITFIT_FIT_RESULT_H
Hold the result of one kinematic fit.
Definition: Fit_Result.h:53
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
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
A base class for simple reference-counted object.
CLHEP::HepVector Column_Vector
Definition: matutil.h:66
Define matrix types for the HitFit package, and supply a few additional operations.
Definition: Electron.h:4
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
Simple reference-counted object.
Definition: Refcount.h:67
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:178
Column_Vector _pullx
Definition: Fit_Result.h:168
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