104 #ifndef LARDATA_RECOBASEPROXY_CHARGEDSPACEPOINTS_H
105 #define LARDATA_RECOBASEPROXY_CHARGEDSPACEPOINTS_H
243 template <
typename CollProxy>
247 using base_t::base_t;
264 {
return base_t::template get<ChargedSpacePoints::ChargeTag>(); }
322 template <
typename MainColl,
typename... AuxColl>
328 using base_t::base_t;
339 return base_t::template get<ChargedSpacePoints::ChargeTag>().dataRef();
363 template <
typename Tag = proxy::ChargedSpacePo
ints::ChargeTag>
365 {
return proxy::withParallelDataAs<recob::PointCharge, Tag>(inputTag); }
393 template <
typename Event,
typename... Args>
395 (Event
const& event, art::InputTag inputTag, Args&&... withArgs)
397 return proxy::getCollection<ChargedSpacePoints>(
398 event, inputTag,
withCharge(inputTag), std::forward<Args>(withArgs)...
427 template <
typename... Args>
437 #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.
main_collection_t const & main() const
Returns the wrapped collection.
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.
constexpr bool hasCharge() const
Returns whether the reconstructed charge value is valid.
auto const & spacePoints() const
Returns the original collection of space points.
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.
Proxy tag for a recob::SpacePoint collection with charge.
constexpr Charge_t charge() const
Returns the stored value of the reconstructed charge.
recob::PointCharge::Charge_t charge() const
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Point_t
Type for representation of position in physical 3D space.
main_element_t const & operator*() const
Returns a reference to the main element.
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.
Charge reconstructed in the active volume.