Go to the documentation of this file.
57 _v.reserve(max_len + 1);
67 : _v(vec._v), _max_len(vec._max_len) {}
119 struct Compare_Fitresptr
124 bool operator()(std::shared_ptr<const Fit_Result>
a, std::shared_ptr<const Fit_Result>
b)
const {
140 vector<std::shared_ptr<Fit_Result>>::iterator it =
lower_bound(
_v.begin(),
_v.end(),
res, Compare_Fitresptr());
147 _v.erase(
_v.end() - 1);
172 s <<
"Entry " <<
i <<
"\n" << *resvec.
_v[
i];
Hold the result of one kinematic fit.
Hold the result of one kinematic fit.
~Fit_Result_Vec()
Destructor.
Holds pointers to a set of Fit_Result objects, resulting from different jet permutation with some con...
const Fit_Result & operator[](std::vector< std::shared_ptr< Fit_Result >>::size_type i) const
Return the i-th element of the Fit_Result objects in the vector.
Fit_Result_Vec(std::vector< std::shared_ptr< Fit_Result >>::size_type max_len)
Constructor.
void push(std::shared_ptr< Fit_Result > res)
Add a new Fit_Result to the list.
std::ostream & operator<<(std::ostream &s, const Constraint_Intermed &ci)
Output stream operator, print the content of this Constraint_Intermed to an output stream.
Hold a list of pointers to a set of Fit_Result objects, resulting from different jet permutation with...
std::vector< std::shared_ptr< Fit_Result > > _v
std::vector< std::shared_ptr< Fit_Result > >::size_type size() const
Return the number of Fit_Result objects in the list.
Fit_Result_Vec & operator=(const Fit_Result_Vec &vec)
Assignment operator.
std::vector< std::shared_ptr< Fit_Result > >::size_type _max_len