LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "PxHitConverter.h"
Public Member Functions | |
virtual | ~PxHitConverter ()=default |
Default destructor (virtual) More... | |
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) More... | |
void | GeneratePxHit (std::vector< art::Ptr< recob::Hit >> const &hits, std::vector< util::PxHit > &pxhits) const |
Generate: from 1 set of hits => 1 set of PxHits using using all hits. More... | |
void | GenerateSinglePxHit (art::Ptr< recob::Hit > const &hit, util::PxHit &pxhits) const |
util::PxHit | HitToPxHit (recob::Hit const &hit) const |
Generates and returns a PxHit out of a recob::Hit. More... | |
template<typename HitObj > | |
util::PxHit | ToPxHit (HitObj const &hit) const |
template<typename Cont , typename Hit = typename Cont::value_type> | |
std::vector< util::PxHit > | ToPxHitVector (Cont const &hits) const |
Returns a vector of util::PxHit out of a vector of hits. More... | |
Definition at line 41 of file PxHitConverter.h.
|
virtualdefault |
Default destructor (virtual)
void util::PxHitConverter::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)
Definition at line 70 of file PxHitConverter.cxx.
References GenerateSinglePxHit(), and hits().
Referenced by evd::HitSelector::ChangeHit(), GeneratePxHit(), cluster::SimpleClusterMerger::produce(), cluster::FuzzyClusterMerger::produce(), ShowerReco3D::produce(), and evd::HitSelector::SaveHits().
void util::PxHitConverter::GeneratePxHit | ( | std::vector< art::Ptr< recob::Hit >> const & | hits, |
std::vector< util::PxHit > & | pxhits | ||
) | const |
Generate: from 1 set of hits => 1 set of PxHits using using all hits.
Generate: from 1 set of hits => 1 set of PxHits using indexes (association)
Definition at line 25 of file PxHitConverter.cxx.
References GeneratePxHit(), and hits().
void util::PxHitConverter::GenerateSinglePxHit | ( | art::Ptr< recob::Hit > const & | hit, |
util::PxHit & | pxhits | ||
) | const |
Definition at line 44 of file PxHitConverter.cxx.
References ToPxHit().
Referenced by GeneratePxHit().
PxHit util::PxHitConverter::HitToPxHit | ( | recob::Hit const & | hit | ) | const |
Generates and returns a PxHit out of a recob::Hit.
Definition at line 51 of file PxHitConverter.cxx.
References util::PxHit::charge, recob::Hit::Integral(), util::PxHit::peak, recob::Hit::PeakAmplitude(), recob::Hit::PeakTime(), util::PxPoint::plane, geo::PlaneID::Plane, util::PxHit::sumADC, recob::Hit::SummedADC(), util::PxPoint::t, util::GeometryUtilities::TimeToCm(), util::PxPoint::w, geo::WireID::Wire, recob::Hit::WireID(), and util::GeometryUtilities::WireToCm().
Referenced by ToPxHit().
util::PxHit util::PxHitConverter::ToPxHit | ( | HitObj const & | hit | ) | const |
Generates and returns a PxHit out of a pointer to recob::Hit or a hit itself
Definition at line 115 of file PxHitConverter.h.
References lar::util::dereference(), HitToPxHit(), ToPxHitVector(), and fhicl::detail::atom::value().
Referenced by GenerateSinglePxHit(), and ToPxHitVector().
std::vector< util::PxHit > util::PxHitConverter::ToPxHitVector | ( | Cont const & | hits | ) | const |
Returns a vector of util::PxHit out of a vector of hits.
Definition at line 132 of file PxHitConverter.h.
References ToPxHit().
Referenced by cluster::StandardClusterParamsAlg::SetHits(), and ToPxHit().