26 std::vector<util::PxHit> &pxhits)
const 29 if(!(
hits.size()))
throw UtilException(Form(
"Hit list empty! (%s)",__FUNCTION__));
31 std::vector<unsigned int> hit_index;
34 hit_index.reserve(
hits.size());
37 for(
unsigned int ix=0; ix<
hits.size();++ix ) hit_index.push_back(ix);
72 std::vector<util::PxHit> &pxhits)
const 75 if(!(hit_index.size()))
throw UtilException(Form(
"Hit list empty! (%s)",__FUNCTION__));
78 pxhits.reserve(hit_index.size());
80 for(
auto const& index : hit_index) {
void GenerateSinglePxHit(art::Ptr< recob::Hit > const &hit, util::PxHit &pxhits) const
Namespace for general, non-LArSoft-specific utilities.
geo::WireID WireID() const
Initial tdc tick for hit.
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.
util::PxHit ToPxHit(HitObj const &hit) const
float PeakAmplitude() const
The estimated amplitude of the hit at its peak, in ADC units.
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.
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