LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "PxHitConverter.h"
Public Member Functions | |
PxHitConverter (GeometryUtilities const &geomUtils) | |
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) More... | |
void | GeneratePxHit (std::vector< art::Ptr< recob::Hit >> const &hits, std::vector< 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, PxHit &pxhits) const |
PxHit | HitToPxHit (recob::Hit const &hit) const |
Generates and returns a PxHit out of a recob::Hit. More... | |
template<typename HitObj > | |
PxHit | ToPxHit (HitObj const &hit) const |
template<typename Cont , typename Hit = typename Cont::value_type> | |
std::vector< PxHit > | ToPxHitVector (Cont const &hits) const |
Returns a vector of PxHit out of a vector of hits. More... | |
template<typename HitObj > | |
util::PxHit | ToPxHit (HitObj const &hit) const |
template<typename Cont , typename Hit > | |
std::vector< util::PxHit > | ToPxHitVector (Cont const &hits) const |
Private Attributes | |
GeometryUtilities const & | fGeomUtils |
Definition at line 27 of file PxHitConverter.h.
|
explicit |
Definition at line 19 of file PxHitConverter.cxx.
void util::PxHitConverter::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)
Definition at line 56 of file PxHitConverter.cxx.
References util::empty(), GenerateSinglePxHit(), and hits().
Referenced by evd::HitSelector::ChangeHit(), GeneratePxHit(), and evd::HitSelector::SaveHits().
void util::PxHitConverter::GeneratePxHit | ( | std::vector< art::Ptr< recob::Hit >> const & | hits, |
std::vector< 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 22 of file PxHitConverter.cxx.
References util::empty(), GeneratePxHit(), and hits().
void util::PxHitConverter::GenerateSinglePxHit | ( | art::Ptr< recob::Hit > const & | hit, |
util::PxHit & | pxhit | ||
) | const |
Definition at line 37 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 43 of file PxHitConverter.cxx.
References util::PxHit::charge, fGeomUtils, 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().
PxHit util::PxHitConverter::ToPxHit | ( | HitObj const & | hit | ) | const |
Generates and returns a PxHit out of a pointer to recob::Hit or a hit itself
Referenced by GenerateSinglePxHit(), and ToPxHitVector().
util::PxHit util::PxHitConverter::ToPxHit | ( | HitObj const & | hit | ) | const |
Definition at line 64 of file PxHitConverter.h.
References lar::util::dereference(), HitToPxHit(), and value.
std::vector<PxHit> util::PxHitConverter::ToPxHitVector | ( | Cont const & | hits | ) | const |
Returns a vector of PxHit out of a vector of hits.
std::vector<util::PxHit> util::PxHitConverter::ToPxHitVector | ( | Cont const & | hits | ) | const |
Definition at line 75 of file PxHitConverter.h.
References ToPxHit().
|
private |
Definition at line 55 of file PxHitConverter.h.
Referenced by HitToPxHit().