Facade to access elements of the collection of momenta. More...
#include <CollectionBuilder.h>
Public Member Functions | |
MomentaWrapper (CollectionBuilderBase const &builder) | |
Momentum const & | at (size_t index) const |
MomentumIt | begin () const |
MomentumIt | end () const |
Momentum const & | operator[] (size_t index) const |
size_t | size () const |
bool | HasOverlap (Momentum const &p4, double maxDR) const |
Checks for overlaps with the given momentum in the (eta, phi) metric. | |
Private Attributes | |
CollectionBuilderBase const & | builder_ |
Facade to access elements of the collection of momenta.
This auxiliary class is a syntactic sugar to iterate through momenta provided by CollectionBuilderBase. It mimics a selection of methods of std::vector that provide read-only access. In addition, some convenience methods motivated by physics are provided.