61 _v.reserve (max_len + 1);
126 assert (
i <
_v.size());
134 struct Compare_Fitresptr
139 bool operator() (std::shared_ptr<const Fit_Result>
a, std::shared_ptr<const Fit_Result>
b)
const 158 vector<std::shared_ptr<Fit_Result>>::iterator it =
lower_bound (
_v.begin(),
161 Compare_Fitresptr());
168 _v.erase (
_v.end()-1);
193 for (std::vector<std::shared_ptr<Fit_Result>>::
size_type i=0;
i < resvec.
_v.size();
i++)
194 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...
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.
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::vector< std::shared_ptr< Fit_Result > >::size_type size() const
Return the number of Fit_Result objects in the list.
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.
friend std::ostream & operator<<(std::ostream &s, const Fit_Result_Vec &resvec)
Output stream operator, print the content of this Fit_Result_Vec to an output stream.
std::vector< std::shared_ptr< Fit_Result > >::size_type _max_len