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>(); }
271 auto ID()
const {
return point().ID(); }
288 {
return chargeInfo().charge(); }
292 bool hasCharge()
const {
return chargeInfo().hasCharge(); }
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>
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.
int main(int argc, char **argv)
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.
Proxy tag for a recob::SpacePoint collection with 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.
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.