Holds set(s) of results from more than one kinematic fits. More...
#include <Fit_Results.h>
Public Member Functions | |
Fit_Results (int max_len, int n_lists) | |
Constructor, make n_list of lists, each of maximum length max_len. More... | |
const Fit_Result_Vec & | operator[] (std::vector< Fit_Result_Vec >::size_type i) const |
Access the i-th list. More... | |
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. More... | |
Private Attributes | |
std::vector< Fit_Result_Vec > | _v |
Friends | |
std::ostream & | operator<< (std::ostream &s, const Fit_Results &res) |
Output stream operator, print the content of this Fit_Results to an output stream. More... | |
Holds set(s) of results from more than one kinematic fits.
Definition at line 55 of file Fit_Results.h.
hitfit::Fit_Results::Fit_Results | ( | int | max_len, |
int | n_lists | ||
) |
Constructor, make n_list of lists, each of maximum length max_len.
max_len | The maximum length of each list. |
n_lists | The number of lists. |
Definition at line 43 of file Fit_Results.cc.
const Fit_Result_Vec & hitfit::Fit_Results::operator[] | ( | std::vector< Fit_Result_Vec >::size_type | i | ) | const |
Access the i-th list.
i | The index of the list. |
Definition at line 53 of file Fit_Results.cc.
References _v, and mps_fire::i.
void hitfit::Fit_Results::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.
chisq | The fit . |
ev | The event kinematics. |
pullx | The pull quantities for the well-measured variables. |
pully | The pull quantities for the poorly-measured variables. |
umwhad | The hadronic W mass before fit. |
utmass | The top quark mass before the fit. |
mt | The top quark mass after the fit. |
sigmt | The top quark mass uncertainty after the fit. |
list_flags | Vector indicating to which lists the result should be added. This vector should have a same length as the internal object _v. |
Definition at line 58 of file Fit_Results.cc.
References _v, ev, mps_fire::i, TtSemiLepEvtBuilder_cfi::mt, and TtSemiLepEvtBuilder_cfi::sigmt.
|
friend |
Output stream operator, print the content of this Fit_Results to an output stream.
s | The output stream to which to write. |
res | The instance Fit_Results to be printed. |
Definition at line 104 of file Fit_Results.cc.
|
private |
Definition at line 119 of file Fit_Results.h.
Referenced by hitfit::operator<<(), operator[](), and push().