11#include "larcore/Geometry/Geometry.h"
22 geo::View_t
TargetViewU(
const geo::TPCID::TPCID_t tpc,
23 const geo::CryostatID::CryostatID_t cstat)
const override;
25 geo::View_t
TargetViewV(
const geo::TPCID::TPCID_t tpc,
26 const geo::CryostatID::CryostatID_t cstat)
const override;
28 geo::View_t
TargetViewW(
const geo::TPCID::TPCID_t tpc,
29 const geo::CryostatID::CryostatID_t cstat)
const override;
33 float WireAngleW(
const geo::TPCID::TPCID_t tpc,
34 const geo::CryostatID::CryostatID_t cstat)
const override;
37 const geo::Vector_t& deltas,
38 const float maxDisplacement)
const override;
41 const geo::Point_t& point2,
42 const geo::Vector_t& widths)
const override;
45 const float maxDisplacement,
52 const geo::View_t view,
53 const geo::TPCID::TPCID_t tpc,
54 const geo::CryostatID::CryostatID_t cstat,
55 const geo::Point_t& firstXYZ,
56 const geo::Point_t& lastXYZ,
57 const float halfWirePitch,
66 const geo::TPCID::TPCID_t tpc,
67 const geo::CryostatID::CryostatID_t cstat)
const
75 const geo::TPCID::TPCID_t tpc,
76 const geo::CryostatID::CryostatID_t cstat)
const
84 const geo::TPCID::TPCID_t tpc,
85 const geo::CryostatID::CryostatID_t cstat)
const
100 const geo::CryostatID::CryostatID_t cstat)
const
102 return std::numeric_limits<float>::epsilon();
108 const geo::Vector_t& deltas,
109 const float maxDisplacement)
const
111 return (std::fabs(gaps.Y()) > maxDisplacement || std::fabs(gaps.Z()) > maxDisplacement);
117 const geo::Point_t& point2,
118 const geo::Vector_t& widths)
const
121 point1.Y() + widths.Y(),
122 point1.Z() + widths.Z(),
124 point2.Y() - widths.Y(),
125 point2.Z() - widths.Z());
133 const bool isGapInU((
138 parameters.m_lineGapType =
143 parameters.m_lineStartX = gap.
GetX2();
144 parameters.m_lineEndX = gap.
GetX1();
145 parameters.m_lineStartZ = (isGapInU ? gap.
GetZ1() : gap.
GetY1());
146 parameters.m_lineEndZ = (isGapInU ? gap.
GetZ2() : gap.
GetY2());
155 const geo::View_t view,
156 const geo::TPCID::TPCID_t tpc,
157 const geo::CryostatID::CryostatID_t cstat,
158 const geo::Point_t& firstXYZ,
159 const geo::Point_t& lastXYZ,
160 const float halfWirePitch,
165 float first(0.f), last(0.f);
168 first = firstXYZ.Z();
173 first = firstXYZ.Y();
178 first, last, xFirst, xLast, halfWirePitch, gapType);
Detector interface for an older-style 3view, horizontal drift, single-phase LArTPC (e....
drift volume class to hold properties of drift volume
float GetZ2() const
Get upper Z coordinate.
float GetY2() const
Get upper Y coordinate.
float GetX2() const
Get upper X coordinate.
float GetZ1() const
Get lower Z coordinate.
float GetY1() const
Get lower y coordinate.
static float GetMaxGapSize() noexcept
Get maximum gap size.
float GetX1() const
Get lower X coordinate.
drift volume class to hold properties of drift volume
Detector interface for ProtoDUNE dual phase.
geo::View_t TargetViewU(const geo::TPCID::TPCID_t tpc, const geo::CryostatID::CryostatID_t cstat) const override
Map a LArSoft view to Pandora's U view.
geo::View_t TargetViewW(const geo::TPCID::TPCID_t tpc, const geo::CryostatID::CryostatID_t cstat) const override
Map a LArSoft view to Pandora's W view.
LArDetectorGap CreateDetectorGap(const geo::Point_t &point1, const geo::Point_t &point2, const geo::Vector_t &widths) const override
Create a detector gap.
float WirePitchW() const override
The wire pitch of the mapped W view.
bool CheckDetectorGapSize(const geo::Vector_t &gaps, const geo::Vector_t &deltas, const float maxDisplacement) const override
Check whether a gap size is small enough to be registered as a detector gap.
PandoraApi::Geometry::LineGap::Parameters CreateLineGapParametersFromReadoutGaps(const geo::View_t view, const geo::TPCID::TPCID_t tpc, const geo::CryostatID::CryostatID_t cstat, const geo::Point_t &firstXYZ, const geo::Point_t &lastXYZ, const float halfWirePitch, const float xFirst, const float xLast, const pandora::Pandora *pPandora) const override
Create the line gap parameters to give to the pandora API.
float WireAngleW(const geo::TPCID::TPCID_t tpc, const geo::CryostatID::CryostatID_t cstat) const override
The angle of the wires in the mapped V view.
geo::View_t TargetViewV(const geo::TPCID::TPCID_t tpc, const geo::CryostatID::CryostatID_t cstat) const override
Map a LArSoft view to Pandora's V view.
void LoadDaughterDetectorGaps(const LArDriftVolume &driftVolume, const float maxDisplacement, LArDetectorGapList &listOfGaps) const override
Create detector gaps for all daughter volumes in a logical TPC volume.
PandoraApi::Geometry::LineGap::Parameters CreateLineGapParametersFromDetectorGaps(const LArDetectorGap &gap) const override
Create the line gap parameters to give to the pandora API.
Detector interface for a 3view, horizontal drift, single-phase LArTPC.
const art::ServiceHandle< geo::Geometry > & GetLArSoftGeometry() const
Loan the LArSoft geometry handle owned by this class.
virtual float WirePitchV() const override
The wire pitch of the mapped V view.
virtual float WirePitchU() const override
The wire pitch of the mapped U view.
PandoraApi::Geometry::LineGap::Parameters CreateReadoutGapParameters(const float firstPoint, const float lastPoint, const float xFirst, const float xLast, const float halfWirePitch, const pandora::LineGapType gapType)
Make the readout gap parameters for the Pandora API.
std::vector< LArDetectorGap > LArDetectorGapList
LineGapType
Line gap type.