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.
Fit_Result_Vec & operator=(const Fit_Result_Vec &vec)
Assignment operator.
~Fit_Result_Vec()
Destructor.
Hold the result of one kinematic fit.
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 > >::size_type size() const
Return the number of Fit_Result objects in the list.
void push(std::shared_ptr< Fit_Result > res)
Add a new Fit_Result to the list.
Fit_Result_Vec(std::vector< std::shared_ptr< Fit_Result >>::size_type max_len)
Constructor.
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.
std::vector< std::shared_ptr< Fit_Result > > _v
Holds pointers to a set of Fit_Result objects, resulting from different jet permutation with some con...
std::ostream & operator<<(std::ostream &s, const Constraint_Intermed &ci)
Output stream operator, print the content of this Constraint_Intermed to an output stream...
std::vector< std::shared_ptr< Fit_Result > >::size_type _max_len