45 using std::lower_bound;
61 _v.reserve (max_len + 1);
73 _max_len (vec._max_len)
143 struct Compare_Fitresptr
167 vector<Fit_Result*>::iterator it = lower_bound (
_v.begin(),
170 Compare_Fitresptr());
178 _v.back()->decref ();
179 _v.erase (
_v.end()-1);
205 s <<
"Entry " <<
i <<
"\n" << *resvec.
_v[
i];
Hold the result of one kinematic fit.
void incref() const
Increment the reference count.
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...
const Fit_Result & operator[](std::vector< Fit_Result * >::size_type i) const
Return the i-th element of the Fit_Result objects in the vector.
void push(Fit_Result *res)
Add a new Fit_Result to the list.
Fit_Result_Vec(std::vector< Fit_Result * >::size_type max_len)
Constructor.
std::vector< Fit_Result * >::size_type _max_len
std::vector< 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< Fit_Result * >::size_type size() const
Return the number of Fit_Result objects in the list.