15 const float maxDisplacement,
21 iterDghtr1 != iterDghtrEnd1;
26 iterDghtr2 = iterDghtr1,
28 iterDghtr2 != iterDghtrEnd2;
32 if (tpcVolume1.
GetTpc() == tpcVolume2.
GetTpc())
continue;
42 const float gapX(deltaX - widthX);
43 const float gapY(deltaY - widthY);
44 const float gapZ(deltaZ - widthZ);
61 geo::Vector_t gaps(gapX, gapY, gapZ), deltas(deltaX, deltaY, deltaZ);
float GetCenterZ() const
Return Z position at centre of tpc volume.
float GetWidthY() const
Return Y span of tpc volume.
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.
daughter drift volume class to hold properties of daughter drift volumes
float GetWidthZ() const
Return Z span of tpc volume.
float GetWidthX() const
Return X span of tpc volume.
Detector interface for ProtoDUNE dual phase.
void LoadDaughterDetectorGaps(const LArDriftVolume &driftVolume, const float maxDisplacement, LArDetectorGapList &listOfGaps) const override
Create detector gaps for all daughter volumes in a logical TPC volume.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Vector_t
Type for representation of momenta in 3D space.
const LArDaughterDriftVolumeList & GetTpcVolumeList() const
Return list of daughter drift volumes associated with this drift volume.
float GetCenterX() const
Return X position at centre of tpc volume.
static int max(int a, int b)
float GetCenterY() const
Return Y position at centre of tpc volume.
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Point_t
Type for representation of position in physical 3D space.
T min(sqlite3 *const db, std::string const &table_name, std::string const &column_name)
std::vector< LArDetectorGap > LArDetectorGapList
drift volume class to hold properties of drift volume
LArDetectorGap CreateDetectorGap(const geo::Point_t &point1, const geo::Point_t &point2, const geo::Vector_t &widths) const override
Create a detector gap.
unsigned int GetTpc() const
Return tpc ID.