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 //
3 // File: hitfit/Fit_Results.h
4 // Purpose: Hold the results from kinematic fitting.
5 // Created: Jul, 2000, sss, based on run 1 mass analysis code.
6 //
7 // This is a set of lists of fit results.
8 // Each list corresponds to some subset of jet permutations:
9 // all permutations, btagged permutations, etc.
10 //
11 // CMSSW File : interface/Fit_Results.h
12 // Original Author : Scott Stuart Snyder <snyder@bnl.gov> for D0
13 // Imported to CMSSW by Haryo Sumowidagdo <Suharyo.Sumowidagdo@cern.ch>
14 //
15 
38 #ifndef HITFIT_FIT_RESULTS_H
39 #define HITFIT_FIT_RESULTS_H
40 
41 
44 #include <vector>
45 #include <iosfwd>
46 
47 
48 namespace hitfit {
49 
50 
51 class Lepjets_Event;
52 
53 
60 //
61 // Purpose: Hold the results from kinematic fitting.
62 //
63 {
64 public:
65  // Constructor. Make N_LISTS lists, each of maximum length MAX_LEN.
74  Fit_Results (int max_len, int n_lists);
75 
76  // Return the Ith list.
83 
84  // Add a new result. LIST_FLAGS tells on which lists to enter it.
108  void push (double chisq,
109  const Lepjets_Event& ev,
110  const Column_Vector& pullx,
111  const Column_Vector& pully,
112  double umwhad,
113  double utmass,
114  double mt,
115  double sigmt,
116  const std::vector<int>& list_flags);
117 
118  // Print this object.
119  friend std::ostream& operator<< (std::ostream& s, const Fit_Results& res);
120 
121 
122 private:
123  // The object state.
124  std::vector<Fit_Result_Vec> _v;
125 };
126 
127 
128 } // namespace hitfit
129 
130 
131 #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:66
bool ev
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:67
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:66
std::vector< Fit_Result_Vec > _v
Definition: Fit_Results.h:124
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:117
const Fit_Result_Vec & operator[](std::vector< Fit_Result_Vec >::size_type i) const
Access the i-th list.
Definition: Fit_Results.cc:60
Fit_Results(int max_len, int n_lists)
Constructor, make n_list of lists, each of maximum length max_len.
Definition: Fit_Results.cc:47
Holds set(s) of results from more than one kinematic fits.
Definition: Fit_Results.h:59