LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "TripletFinder.h"
Public Member Functions | |
TripletFinder (const detinfo::DetectorPropertiesData &detProp, 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 detinfo::DetectorPropertiesData &clockData, 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 |
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 51 of file TripletFinder.h.
reco3d::TripletFinder::TripletFinder | ( | const detinfo::DetectorPropertiesData & | detProp, |
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 13 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 117 of file TripletFinder.cxx.
References fDistThreshDrift.
Referenced by DoubletHelper(), and Triplets().
|
protected |
Definition at line 123 of file TripletFinder.cxx.
References fDistThresh, geo::WireIDIntersection::y, and geo::WireIDIntersection::z.
Referenced by Triplets().
|
protected |
Definition at line 289 of file TripletFinder.cxx.
References reco3d::HitOrChan::chan, CloseDrift(), pt, and reco3d::HitOrChan::xpos.
Referenced by DoubletsXU(), and DoubletsXV().
|
protected |
Definition at line 261 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 275 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 60 of file TripletFinder.cxx.
References geo::GeometryCore::ChannelToROP(), geom, and geo::GeometryCore::ROPtoTPCs().
Referenced by TripletFinder().
|
protected |
Helper for constructor.
Definition at line 38 of file TripletFinder.cxx.
References geo::GeometryCore::ChannelToROP(), geo::GeometryCore::ChannelToWire(), detinfo::DetectorPropertiesData::ConvertTicksToX(), fXHitOffset, geom, hits(), geo::kCollection, geo::GeometryCore::ROPtoTPCs(), and geo::GeometryCore::SignalType().
Referenced by TripletFinder().
std::vector< HitTriplet > reco3d::TripletFinder::Triplets | ( | ) |
Definition at line 146 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 228 of file TripletFinder.cxx.
References DoubletsXU(), fX_by_tpc, reco3d::HitOrChan::hit, pt, x, and reco3d::HitOrChan::xpos.
|
protected |
Definition at line 90 of file TripletFinder.h.
Referenced by CloseSpace().
|
protected |
Definition at line 91 of file TripletFinder.h.
Referenced by CloseDrift().
|
protected |
Definition at line 95 of file TripletFinder.h.
Referenced by DoubletsXU(), and TripletFinder().
|
protected |
Definition at line 100 of file TripletFinder.h.
Referenced by DoubletsXU(), and TripletFinder().
|
protected |
Definition at line 96 of file TripletFinder.h.
Referenced by DoubletsXV(), and TripletFinder().
|
protected |
Definition at line 101 of file TripletFinder.h.
Referenced by DoubletsXV(), and TripletFinder().
|
protected |
Definition at line 94 of file TripletFinder.h.
Referenced by DoubletsXU(), DoubletsXV(), TripletFinder(), Triplets(), and TripletsTwoView().
|
protected |
Definition at line 99 of file TripletFinder.h.
Referenced by DoubletsXU(), DoubletsXV(), and TripletFinder().
|
protected |
Definition at line 92 of file TripletFinder.h.
Referenced by FillHitMap().
|
protected |
Definition at line 69 of file TripletFinder.h.
Referenced by FillBadMap(), FillHitMap(), and reco3d::IntersectionCache::ISect().