10 #ifndef UTIL_PXHITCONVERTER_H 11 #define UTIL_PXHITCONVERTER_H 61 void GeneratePxHit(
const std::vector<unsigned int>& hit_index,
63 std::vector<util::PxHit> &pxhits)
const;
67 std::vector<util::PxHit> &pxhits)
const;
90 template <
typename HitObj>
95 template <
typename Cont,
typename Hit =
typename Cont::value_type>
114 template <
typename HitObj>
124 "The argument to PxHitConverter::ToPxHit() does not point to a recob::Hit" 130 template <
typename Cont,
typename Hit >
134 std::vector<util::PxHit> pxhits;
135 pxhits.reserve(hits.size());
136 std::transform(hits.begin(), hits.end(), std::back_inserter(pxhits),
143 #endif // UTIL_PXHITCONVERTER_H void GenerateSinglePxHit(art::Ptr< recob::Hit > const &hit, util::PxHit &pxhits) const
Namespace for general, non-LArSoft-specific utilities.
std::vector< util::PxHit > ToPxHitVector(Cont const &hits) const
Returns a vector of util::PxHit out of a vector of hits.
Class def header for exception classes used in GeometryUtilities.
Declaration of signal hit object.
util::PxHit ToPxHit(HitObj const &hit) const
details::dereference_class< T, details::has_dereference_class< T >::value >::reference_type dereference(T &v)
Returns the value pointed by the argument, or the argument itself.
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
void GeneratePxHit(const std::vector< unsigned int > &hit_index, const std::vector< art::Ptr< recob::Hit >> hits, std::vector< util::PxHit > &pxhits) const
Generate: from 1 set of hits => 1 set of PxHits using indexes (association)
util::PxHit HitToPxHit(recob::Hit const &hit) const
Generates and returns a PxHit out of a recob::Hit.
Detector simulation of raw signals on wires.
std::string value(boost::any const &)
2D representation of charge deposited in the TDC/wire plane
virtual ~PxHitConverter()=default
Default destructor (virtual)
art framework interface to geometry description