104 #ifndef LARDATA_RECOBASEPROXY_CHARGEDSPACEPOINTS_H 105 #define LARDATA_RECOBASEPROXY_CHARGEDSPACEPOINTS_H 239 template <
typename CollProxy>
243 using base_t::base_t;
260 return base_t::template get<ChargedSpacePoints::ChargeTag>();
268 auto ID()
const {
return point().ID(); }
286 bool hasCharge()
const {
return chargeInfo().hasCharge(); }
314 template <
typename MainColl,
typename... AuxColl>
318 using base_t::base_t;
327 return base_t::template get<ChargedSpacePoints::ChargeTag>().dataRef();
350 template <
typename Tag = proxy::ChargedSpacePo
ints::ChargeTag>
353 return proxy::withParallelDataAs<recob::PointCharge, Tag>(inputTag);
381 template <
typename Event,
typename... Args>
384 return proxy::getCollection<ChargedSpacePoints>(
385 event, inputTag,
withCharge(inputTag), std::forward<Args>(withArgs)...);
410 template <
typename... Args>
418 #endif // LARDATA_RECOBASEPROXY_CHARGEDSPACEPOINTS_H Collection of data type definitions for collection proxies.
auto getChargedSpacePoints(Event const &event, art::InputTag inputTag, Args &&...withArgs)
Creates and returns a proxy to space points with associated charge.
auto withCharge(art::InputTag inputTag)
Adds additional recob::PointCharge information to the proxy.
Information about charge reconstructed in the active volume.
Base utilities for the implementation of data product facades.
Base representation of a collection of proxied objects.
Proxy class for charged space point proxy elements.
std::vector< recob::SpacePoint > SpacePointDataProduct_t
Type of the main collection.
auto const & spacePoints() const
Returns the original collection of space points.
Encloses LArSoft data product proxy objects and utilities.See this doxygen module for an introduction...
recob::SpacePoint const & point() const
Returns the original space point.
Utilities to extend the interface of geometry vectors.
float Charge_t
Type for the amount of reconstructed charge.
auto ID() const
Returns the ID of the space point.
Proxy collection class for space points associated to charge.
geo::Point_t position() const
Returns the position of the space point.
An element of a collection proxy.
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Point_t
Type for representation of position in physical 3D space.
Proxy tag for a recob::SpacePoint collection with charge.
recob::PointCharge::Charge_t charge() const
QuadExpr operator*(double v, const QuadExpr &e)
GENVECTOR_CONSTEXPR::geo::Point_t makePointFromCoords(Coords &&coords)
Creates a geo::Point_t from its coordinates (see makeFromCoords()).
recob::PointCharge const & chargeInfo() const
auto const & charges() const
Returns the original collection of charge information.
Event finding and building.
Charge reconstructed in the active volume.