CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Fit_Results.h
Go to the documentation of this file.
1 //
2 // $Id: Fit_Results.h,v 1.1 2011/05/26 09:46:53 mseidel Exp $
3 //
4 // File: hitfit/Fit_Results.h
5 // Purpose: Hold the results from kinematic fitting.
6 // Created: Jul, 2000, sss, based on run 1 mass analysis code.
7 //
8 // This is a set of lists of fit results.
9 // Each list corresponds to some subset of jet permutations:
10 // all permutations, btagged permutations, etc.
11 //
12 // CMSSW File : interface/Fit_Results.h
13 // Original Author : Scott Stuart Snyder <snyder@bnl.gov> for D0
14 // Imported to CMSSW by Haryo Sumowidagdo <Suharyo.Sumowidagdo@cern.ch>
15 //
16 
39 #ifndef HITFIT_FIT_RESULTS_H
40 #define HITFIT_FIT_RESULTS_H
41 
42 
45 #include <vector>
46 #include <iosfwd>
47 
48 
49 namespace hitfit {
50 
51 
52 class Lepjets_Event;
53 
54 
61 //
62 // Purpose: Hold the results from kinematic fitting.
63 //
64 {
65 public:
66  // Constructor. Make N_LISTS lists, each of maximum length MAX_LEN.
75  Fit_Results (int max_len, int n_lists);
76 
77  // Return the Ith list.
84 
85  // Add a new result. LIST_FLAGS tells on which lists to enter it.
109  void push (double chisq,
110  const Lepjets_Event& ev,
111  const Column_Vector& pullx,
112  const Column_Vector& pully,
113  double umwhad,
114  double utmass,
115  double mt,
116  double sigmt,
117  const std::vector<int>& list_flags);
118 
119  // Print this object.
120  friend std::ostream& operator<< (std::ostream& s, const Fit_Results& res);
121 
122 
123 private:
124  // The object state.
125  std::vector<Fit_Result_Vec> _v;
126 };
127 
128 
129 } // namespace hitfit
130 
131 
132 #endif // not HITFIT_FIT_RESULT_H
int i
Definition: DBlmapReader.cc:9
Hold a list of pointers to a set of Fit_Result objects, resulting from different jet permutation with...
CLHEP::HepVector Column_Vector
Definition: matutil.h:67
Define matrix types for the HitFit package, and supply a few additional operations.
void push(double chisq, const Lepjets_Event &ev, const Column_Vector &pullx, const Column_Vector &pully, double umwhad, double utmass, double mt, double sigmt, const std::vector< int > &list_flags)
Add a new fit result.
Definition: Fit_Results.cc:68
uint16_t size_type
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
std::vector< Fit_Result_Vec > _v
Definition: Fit_Results.h:125
Holds pointers to a set of Fit_Result objects, resulting from different jet permutation with some con...
friend std::ostream & operator<<(std::ostream &s, const Fit_Results &res)
Output stream operator, print the content of this Fit_Results to an output stream.
Definition: Fit_Results.cc:118
const Fit_Result_Vec & operator[](std::vector< Fit_Result_Vec >::size_type i) const
Access the i-th list.
Definition: Fit_Results.cc:61
Fit_Results(int max_len, int n_lists)
Constructor, make n_list of lists, each of maximum length max_len.
Definition: Fit_Results.cc:48
Holds set(s) of results from more than one kinematic fits.
Definition: Fit_Results.h:60