3 #ifndef RECO3D_TRIPLETFINDER_H
4 #define RECO3D_TRIPLETFINDER_H
6 #include "canvas/Persistency/Common/Ptr.h"
12 class DetectorPropertiesData;
57 const std::vector<raw::ChannelID_t>& xbad,
58 const std::vector<raw::ChannelID_t>& ubad,
59 const std::vector<raw::ChannelID_t>& vbad,
61 double distThreshDrift,
74 std::map<
geo::TPCID, std::vector<HitOrChan>>& out);
76 void FillBadMap(
const std::vector<raw::ChannelID_t>& bads,
77 std::map<
geo::TPCID, std::vector<raw::ChannelID_t>>& out);
86 const std::vector<HitOrChan>& ahits,
87 const std::vector<HitOrChan>& bhits,
88 const std::vector<raw::ChannelID_t>& bbads)
const;
94 std::map<geo::TPCID, std::vector<HitOrChan>>
fX_by_tpc;
95 std::map<geo::TPCID, std::vector<HitOrChan>>
fU_by_tpc;
96 std::map<geo::TPCID, std::vector<HitOrChan>>
fV_by_tpc;
bool CloseSpace(geo::WireIDIntersection ra, geo::WireIDIntersection rb) const
geo::WireIDIntersection pt
process_name opflash particleana ie x
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
Declaration of signal hit object.
ChannelDoublet(HitOrChan a_, HitOrChan b_, geo::WireIDIntersection p)
std::map< geo::TPCID, std::vector< HitOrChan > > fX_by_tpc
HitOrChan(const recob::Hit *h, double x)
std::map< geo::TPCID, std::vector< HitOrChan > > fV_by_tpc
std::map< geo::TPCID, std::vector< raw::ChannelID_t > > fXbad_by_tpc
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
HitOrChan(raw::ChannelID_t c)
std::map< geo::TPCID, std::vector< HitOrChan > > fU_by_tpc
const geo::GeometryCore * geom
The data type to uniquely identify a TPC.
Description of geometry of one entire detector.
Definition of data types for geometry description.
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 > TripletsTwoView()
Only search for XU intersections.
std::vector< ChannelDoublet > DoubletsXV(geo::TPCID tpc)
std::vector< ChannelDoublet > DoubletsXU(geo::TPCID tpc)
bool CloseDrift(double xa, double xb) const
std::vector< HitTriplet > Triplets()
2D representation of charge deposited in the TDC/wire plane
unsigned int ChannelID_t
Type representing the ID of a readout channel.
std::map< geo::TPCID, std::vector< raw::ChannelID_t > > fUbad_by_tpc
void FillBadMap(const std::vector< raw::ChannelID_t > &bads, std::map< geo::TPCID, std::vector< raw::ChannelID_t >> &out)
Helper for constructor.
std::map< geo::TPCID, std::vector< raw::ChannelID_t > > fVbad_by_tpc
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.