CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Fit_Result.h
Go to the documentation of this file.
1 //
2 // $Id: Fit_Result.h,v 1.1 2011/05/26 09:46:53 mseidel Exp $
3 //
4 // File: hitfit/Fit_Result.h
5 // Purpose: Hold the result from a single kinematic fit.
6 // Created: Jul, 2000, sss, based on run 1 mass analysis code.
7 //
8 // These objects are reference-counted.
9 //
10 // CMSSW File : interface/Fit_Result.h
11 // Original Author : Scott Stuart Snyder <snyder@bnl.gov> for D0
12 // Imported to CMSSW by Haryo Sumowidagdo <Suharyo.Sumowidagdo@cern.ch>
13 //
14 
35 #ifndef HITFIT_FIT_RESULT_H
36 #define HITFIT_FIT_RESULT_H
37 
38 
42 #include <iosfwd>
43 #include <vector>
44 
45 namespace hitfit {
46 
47 
55  : public hitfit::Refcount
56 //
57 // Purpose: Hold the result from a single kinematic fit.
58 //
59 {
60 public:
61  // Constructor. Provide the results of the fit.
75  Fit_Result (double chisq,
76  const Lepjets_Event& ev,
77  const Column_Vector& pullx,
78  const Column_Vector& pully,
79  double umwhad,
80  double utmass,
81  double mt,
82  double sigmt);
83 
84  // Get back the fit result.
88  double chisq () const;
89 
93  double umwhad () const;
94 
98  double utmass () const;
99 
103  double mt () const;
104 
108  double sigmt () const;
109 
113  const Column_Vector& pullx () const;
114 
118  const Column_Vector& pully () const;
119 
123  const Lepjets_Event& ev () const;
124 
125  // For sorting by chisq.
126  friend bool operator< (const Fit_Result& a, const Fit_Result& b);
127 
128  // Print this object.
129  friend std::ostream& operator<< (std::ostream& s, const Fit_Result& res);
130 
131  // Get the jet-types permutation
136  std::vector<int> jet_types();
137 
138 private:
139  // Store the results of the kinematic fit.
140 
144  double _chisq;
145 
149  double _umwhad;
150 
154  double _utmass;
155 
159  double _mt;
160 
164  double _sigmt;
165 
170 
175 
180 };
181 
182 
183 } // namespace hitfit
184 
185 
186 #endif // not HITFIT_FIT_RESULT_H
Hold the result of one kinematic fit.
Definition: Fit_Result.h:54
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
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:47
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
A base class for simple reference-counted object.
CLHEP::HepVector Column_Vector
Definition: matutil.h:67
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:92
std::vector< int > jet_types()
Return the list of jet types for this event.
Definition: Fit_Result.cc:164
Simple reference-counted object.
Definition: Refcount.h:68
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:104
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:222
const Column_Vector & pully() const
Return the pull quantities for the poorly-measured variables.
Definition: Fit_Result.cc:152
Represent a simple event consisting of lepton(s) and jet(s). An instance of this class holds a list o...
Definition: Lepjets_Event.h:67
Lepjets_Event _ev
Definition: Fit_Result.h:179
Column_Vector _pullx
Definition: Fit_Result.h:169
friend bool operator<(const Fit_Result &a, const Fit_Result &b)
Sort fit results based on their .
Definition: Fit_Result.cc:196
double b
Definition: hdecay.h:120
double mt() const
Return the top quark mass after the fit.
Definition: Fit_Result.cc:116
double a
Definition: hdecay.h:121
double chisq() const
Return the of the fit.
Definition: Fit_Result.cc:80