23 std::vector<util::PxHit>& pxhits)
const 27 std::vector<unsigned int> hit_index;
28 hit_index.reserve(
hits.size());
31 for (
unsigned int ix = 0; ix <
hits.size(); ++ix)
32 hit_index.push_back(ix);
58 std::vector<util::PxHit>& pxhits)
const 63 pxhits.reserve(hit_index.size());
65 for (
auto const& index : hit_index) {
Namespace for general, non-LArSoft-specific utilities.
GeometryUtilities const & fGeomUtils
Class def header for exception classes used in GeometryUtilities.
float Integral() const
Integral under the calibrated signal waveform of the hit, in tick x ADC units.
WireID_t Wire
Index of the wire within its plane.
geo::WireID const & WireID() const
Initial tdc tick for hit.
PxHit ToPxHit(HitObj const &hit) const
PxHitConverter(GeometryUtilities const &geomUtils)
float PeakAmplitude() const
The estimated amplitude of the hit at its peak, in ADC units.
void GenerateSinglePxHit(art::Ptr< recob::Hit > const &hit, PxHit &pxhits) const
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< PxHit > &pxhits) const
Generate: from 1 set of hits => 1 set of PxHits using indexes (association)
PxHit HitToPxHit(recob::Hit const &hit) const
Generates and returns a PxHit out of a recob::Hit.
PlaneID_t Plane
Index of the plane within its TPC.
Detector simulation of raw signals on wires.
float PeakTime() const
Time of the signal peak, in tick units.
float SummedADC() const
The sum of calibrated ADC counts of the hit (0. by default)
2D representation of charge deposited in the TDC/wire plane
double peak
peak amplitude
decltype(auto) constexpr empty(T &&obj)
ADL-aware version of std::empty.