#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 59 of file PxHitConverter.cxx.
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 23 of file PxHitConverter.cxx.
void util::PxHitConverter::GenerateSinglePxHit | ( | art::Ptr< recob::Hit > const & | hit, |
util::PxHit & | pxhit | ||
) | const |
Definition at line 39 of file PxHitConverter.cxx.
PxHit util::PxHitConverter::HitToPxHit | ( | recob::Hit const & | hit | ) | const |
Generates and returns a PxHit out of a recob::Hit.
Definition at line 45 of file PxHitConverter.cxx.
PxHit util::PxHitConverter::ToPxHit | ( | HitObj const & | hit | ) | const |
Generates and returns a PxHit out of a pointer to recob::Hit or a hit itself
util::PxHit util::PxHitConverter::ToPxHit | ( | HitObj const & | hit | ) | const |
Definition at line 65 of file PxHitConverter.h.
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 77 of file PxHitConverter.h.
|
private |
Definition at line 55 of file PxHitConverter.h.