CollectionBuilderBase::MomentaWrapper Class Reference

Facade to access elements of the collection of momenta. More...

#include <CollectionBuilder.h>

Collaboration diagram for CollectionBuilderBase::MomentaWrapper:
Collaboration graph
[legend]

List of all members.

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_

Detailed Description

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Enumerations Enumerator

Generated on 30 Oct 2020 for H→ZZ→2ℓ2ν analysis by  doxygen 1.6.1