Go to the documentation of this file.
53 int nobjs =
ev.nobjs_all();
59 for (
int i = 0;
i < nobjs - 1;
i++)
60 for (
int j =
i + 1;
j < nobjs;
j++) {
66 for (
int k = 0;
k < nc;
k++) {
67 int val =
cv[
k].has_labels(
ev.obj(
i).label,
ev.obj(
j).label);
70 p.has_constraint(
k,
val);
103 assert(pairno < _pairs.size());
104 return _pairs[pairno];
127 for (
int i = 0;
i <
p.npairs();
i++)
128 s <<
" " <<
p.get_pair(
i) <<
"\n";
Represent an event for kinematic fitting as a collection of four-momenta.
A lookup table to speed up constraint evaluation.
Represent an event for kinematic fitting as a collection of four-momenta. Each object is represented ...
const Objpair & get_pair(std::vector< Objpair >::size_type pairno) const
Get one of the pairs from the table, index starts from 0.
int npairs() const
Return the number of pairs in the table.
std::ostream & operator<<(std::ostream &s, const Constraint_Intermed &ci)
Output stream operator, print the content of this Constraint_Intermed to an output stream.
Represent a pair of objects in Pair_Table.
std::vector< Objpair > _pairs
Pair_Table(const std::vector< Constraint > &cv, const Fourvec_Event &ev)
Constructor, give it the event and the list of constraints.
A lookup table to speed up constraint evaluation using Fourvec_Constrainer.