LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "TripletFinder.h"
Public Member Functions | |
TripletFinder (const std::vector< art::Ptr< recob::Hit >> &xhits, const std::vector< art::Ptr< recob::Hit >> &uhits, const std::vector< art::Ptr< recob::Hit >> &vhits, const std::vector< raw::ChannelID_t > &xbad, const std::vector< raw::ChannelID_t > &ubad, const std::vector< raw::ChannelID_t > &vbad, double distThresh, double distThreshDrift, double xhitOffset) | |
std::vector< HitTriplet > | Triplets () |
std::vector< HitTriplet > | TripletsTwoView () |
Only search for XU intersections. More... | |
Protected Member Functions | |
void | FillHitMap (const std::vector< art::Ptr< recob::Hit >> &hits, std::map< geo::TPCID, std::vector< HitOrChan >> &out) |
Helper for constructor. More... | |
void | FillBadMap (const std::vector< raw::ChannelID_t > &bads, std::map< geo::TPCID, std::vector< raw::ChannelID_t >> &out) |
Helper for constructor. More... | |
bool | CloseDrift (double xa, double xb) const |
bool | CloseSpace (geo::WireIDIntersection ra, geo::WireIDIntersection rb) const |
std::vector< ChannelDoublet > | DoubletsXU (geo::TPCID tpc) |
std::vector< ChannelDoublet > | DoubletsXV (geo::TPCID tpc) |
std::vector< ChannelDoublet > | DoubletHelper (geo::TPCID tpc, const std::vector< HitOrChan > &ahits, const std::vector< HitOrChan > &bhits, const std::vector< raw::ChannelID_t > &bbads) const |
Protected Attributes | |
const geo::GeometryCore * | geom |
const detinfo::DetectorProperties * | detprop |
double | fDistThresh |
double | fDistThreshDrift |
double | fXHitOffset |
std::map< geo::TPCID, std::vector< HitOrChan > > | fX_by_tpc |
std::map< geo::TPCID, std::vector< HitOrChan > > | fU_by_tpc |
std::map< geo::TPCID, std::vector< HitOrChan > > | fV_by_tpc |
std::map< geo::TPCID, std::vector< raw::ChannelID_t > > | fXbad_by_tpc |
std::map< geo::TPCID, std::vector< raw::ChannelID_t > > | fUbad_by_tpc |
std::map< geo::TPCID, std::vector< raw::ChannelID_t > > | fVbad_by_tpc |
Definition at line 53 of file TripletFinder.h.
reco3d::TripletFinder::TripletFinder | ( | const std::vector< art::Ptr< recob::Hit >> & | xhits, |
const std::vector< art::Ptr< recob::Hit >> & | uhits, | ||
const std::vector< art::Ptr< recob::Hit >> & | vhits, | ||
const std::vector< raw::ChannelID_t > & | xbad, | ||
const std::vector< raw::ChannelID_t > & | ubad, | ||
const std::vector< raw::ChannelID_t > & | vbad, | ||
double | distThresh, | ||
double | distThreshDrift, | ||
double | xhitOffset | ||
) |
Definition at line 8 of file TripletFinder.cxx.
References FillBadMap(), FillHitMap(), fU_by_tpc, fUbad_by_tpc, fV_by_tpc, fVbad_by_tpc, fX_by_tpc, and fXbad_by_tpc.
|
protected |
Definition at line 118 of file TripletFinder.cxx.
References fDistThreshDrift.
Referenced by DoubletHelper(), and Triplets().
|
protected |
Definition at line 124 of file TripletFinder.cxx.
References fDistThresh, geo::WireIDIntersection::y, and geo::WireIDIntersection::z.
Referenced by Triplets().
|
protected |
Definition at line 277 of file TripletFinder.cxx.
References reco3d::HitOrChan::chan, CloseDrift(), pt, and reco3d::HitOrChan::xpos.
Referenced by DoubletsXU(), and DoubletsXV().
|
protected |
Definition at line 250 of file TripletFinder.cxx.
References DoubletHelper(), fU_by_tpc, fUbad_by_tpc, fX_by_tpc, and fXbad_by_tpc.
Referenced by Triplets(), and TripletsTwoView().
|
protected |
Definition at line 263 of file TripletFinder.cxx.
References DoubletHelper(), fV_by_tpc, fVbad_by_tpc, fX_by_tpc, and fXbad_by_tpc.
Referenced by Triplets().
|
protected |
Helper for constructor.
Definition at line 56 of file TripletFinder.cxx.
References geo::GeometryCore::ChannelToROP(), geom, and geo::GeometryCore::ROPtoTPCs().
Referenced by FillHitMap(), and TripletFinder().
|
protected |
Helper for constructor.
Definition at line 33 of file TripletFinder.cxx.
References geo::GeometryCore::ChannelToROP(), geo::GeometryCore::ChannelToWire(), detinfo::DetectorProperties::ConvertTicksToX(), detprop, FillBadMap(), fXHitOffset, geom, hits(), geo::kCollection, geo::GeometryCore::ROPtoTPCs(), and geo::GeometryCore::SignalType().
Referenced by TripletFinder().
std::vector< HitTriplet > reco3d::TripletFinder::Triplets | ( | ) |
Definition at line 148 of file TripletFinder.cxx.
References reco3d::HitOrChan::chan, CloseDrift(), CloseSpace(), DoubletsXU(), DoubletsXV(), fX_by_tpc, reco3d::HitOrChan::hit, reco3d::LessThanXHit(), pt, reco3d::SameXHit(), x, reco3d::HitOrChan::xpos, geo::WireIDIntersection::y, and geo::WireIDIntersection::z.
Referenced by reco3d::SpacePointSolver::produce().
std::vector< HitTriplet > reco3d::TripletFinder::TripletsTwoView | ( | ) |
Only search for XU intersections.
Definition at line 220 of file TripletFinder.cxx.
References DoubletsXU(), fX_by_tpc, reco3d::HitOrChan::hit, pt, x, and reco3d::HitOrChan::xpos.
|
protected |
Definition at line 71 of file TripletFinder.h.
Referenced by FillHitMap().
|
protected |
Definition at line 93 of file TripletFinder.h.
Referenced by CloseSpace().
|
protected |
Definition at line 94 of file TripletFinder.h.
Referenced by CloseDrift().
|
protected |
Definition at line 98 of file TripletFinder.h.
Referenced by DoubletsXU(), and TripletFinder().
|
protected |
Definition at line 103 of file TripletFinder.h.
Referenced by DoubletsXU(), and TripletFinder().
|
protected |
Definition at line 99 of file TripletFinder.h.
Referenced by DoubletsXV(), and TripletFinder().
|
protected |
Definition at line 104 of file TripletFinder.h.
Referenced by DoubletsXV(), and TripletFinder().
|
protected |
Definition at line 97 of file TripletFinder.h.
Referenced by DoubletsXU(), DoubletsXV(), TripletFinder(), Triplets(), and TripletsTwoView().
|
protected |
Definition at line 102 of file TripletFinder.h.
Referenced by DoubletsXU(), DoubletsXV(), and TripletFinder().
|
protected |
Definition at line 95 of file TripletFinder.h.
Referenced by FillHitMap().
|
protected |
Definition at line 70 of file TripletFinder.h.
Referenced by FillBadMap(), FillHitMap(), and reco3d::IntersectionCache::ISect().