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
hitfit::Column_Vector
CLHEP::HepVector Column_Vector
Definition: matutil.h:63
mps_fire.i
i
Definition: mps_fire.py:428
hitfit
Definition: Base_Constrainer.h:43
hitfit::Fit_Results
Holds set(s) of results from more than one kinematic fits.
Definition: Fit_Results.h:55
hitfit::Fit_Results::_v
std::vector< Fit_Result_Vec > _v
Definition: Fit_Results.h:119
hitfit::Fit_Results::Fit_Results
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
hitfit::Fit_Result_Vec
Holds pointers to a set of Fit_Result objects, resulting from different jet permutation with some con...
Definition: Fit_Result_Vec.h:67
alignCSCRings.s
s
Definition: alignCSCRings.py:92
trigger::size_type
uint16_t size_type
Definition: TriggerTypeDefs.h:18
hitfit::n_lists
Definition: Top_Fit.h:61
hitfit::Lepjets_Event
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
matutil.h
Define matrix types for the HitFit package, and supply a few additional operations.
hitfit::Fit_Results::operator<<
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
Fit_Result_Vec.h
Hold a list of pointers to a set of Fit_Result objects, resulting from different jet permutation with...
TtSemiLepEvtBuilder_cfi.sigmt
sigmt
Definition: TtSemiLepEvtBuilder_cfi.py:48
hitfit::Fit_Results::push
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
res
Definition: Electron.h:6
ev
bool ev
Definition: Hydjet2Hadronizer.cc:95
TtSemiLepEvtBuilder_cfi.mt
mt
Definition: TtSemiLepEvtBuilder_cfi.py:47
hitfit::Fit_Results::operator[]
const Fit_Result_Vec & operator[](std::vector< Fit_Result_Vec >::size_type i) const
Access the i-th list.
Definition: Fit_Results.cc:53