24 std::vector<util::PxHit>& pxhits)
const 28 std::vector<unsigned int> hit_index;
29 hit_index.reserve(hits.size());
32 for (
unsigned int ix = 0; ix < hits.size(); ++ix)
33 hit_index.push_back(ix);
61 std::vector<util::PxHit>& pxhits)
const 66 pxhits.reserve(hit_index.size());
68 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.
geo::WireID WireID() const
Double_t TimeToCm() const
Double_t WireToCm() const
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.
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
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.