CMS 3D CMS Logo

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 
43 #include <vector>
44 #include <iosfwd>
45 
46 namespace hitfit {
47 
48  class Lepjets_Event;
49 
56  //
57  // Purpose: Hold the results from kinematic fitting.
58  //
59  {
60  public:
61  // Constructor. Make N_LISTS lists, each of maximum length MAX_LEN.
70  Fit_Results(int max_len, int n_lists);
71 
72  // Return the Ith list.
79 
80  // Add a new result. LIST_FLAGS tells on which lists to enter it.
104  void push(double chisq,
105  const Lepjets_Event& ev,
106  const Column_Vector& pullx,
107  const Column_Vector& pully,
108  double umwhad,
109  double utmass,
110  double mt,
111  double sigmt,
112  const std::vector<int>& list_flags);
113 
114  // Print this object.
115  friend std::ostream& operator<<(std::ostream& s, const Fit_Results& res);
116 
117  private:
118  // The object state.
119  std::vector<Fit_Result_Vec> _v;
120  };
121 
122 } // namespace hitfit
123 
124 #endif // not HITFIT_FIT_RESULT_H
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:63
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:58
uint16_t size_type
Definition: Electron.h:6
Represent a simple event consisting of lepton(s) and jet(s). An instance of this class holds a list o...
Definition: Lepjets_Event.h:62
std::vector< Fit_Result_Vec > _v
Definition: Fit_Results.h:119
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:104
const Fit_Result_Vec & operator[](std::vector< Fit_Result_Vec >::size_type i) const
Access the i-th list.
Definition: Fit_Results.cc:53
Fit_Results(int max_len, int n_lists)
Constructor, make n_list of lists, each of maximum length max_len.
Definition: Fit_Results.cc:43
Holds set(s) of results from more than one kinematic fits.
Definition: Fit_Results.h:55