LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
lar_pandora::DUNEFarDetVDThreeView Class Reference

Detector interface DUNE's vertical drift far detector. More...

#include "DUNEFarDetVDThreeView.h"

Inheritance diagram for lar_pandora::DUNEFarDetVDThreeView:
lar_pandora::VintageLArTPCThreeView lar_pandora::LArPandoraDetectorType

Public Member Functions

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. More...
 
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. More...
 
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. More...
 
virtual float WirePitchU () const override
 The wire pitch of the mapped U view. More...
 
virtual float WirePitchV () const override
 The wire pitch of the mapped V view. More...
 
virtual float WirePitchW () const override
 The wire pitch of the mapped W view. More...
 
virtual float WireAngleU (const geo::TPCID::TPCID_t tpc, const geo::CryostatID::CryostatID_t cstat) const override
 The angle of the wires in the mapped U view. More...
 
virtual float WireAngleV (const geo::TPCID::TPCID_t tpc, const geo::CryostatID::CryostatID_t cstat) const override
 The angle of the wires in the mapped V view. More...
 
virtual 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. More...
 
virtual 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. More...
 
virtual LArDetectorGap CreateDetectorGap (const geo::Point_t &point1, const geo::Point_t &point2, const geo::Vector_t &widths) const override
 Create a detector gap. More...
 
virtual void LoadDaughterDetectorGaps (const LArDriftVolume &driftVolume, const float maxDisplacement, LArDetectorGapList &listOfGaps) const override
 Create detector gaps for all daughter volumes in a logical TPC volume. More...
 
virtual PandoraApi::Geometry::LineGap::Parameters CreateLineGapParametersFromDetectorGaps (const LArDetectorGap &gap) const override
 Create the line gap parameters to give to the pandora API. More...
 
virtual 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. More...
 
const art::ServiceHandle< geo::Geometry > & GetLArSoftGeometry () const
 Loan the LArSoft geometry handle owned by this class. More...
 

Detailed Description

Detector interface DUNE's vertical drift far detector.

Definition at line 18 of file DUNEFarDetVDThreeView.h.

Member Function Documentation

bool lar_pandora::VintageLArTPCThreeView::CheckDetectorGapSize ( const geo::Vector_t gaps,
const geo::Vector_t deltas,
const float  maxDisplacement 
) const
inlineoverridevirtualinherited

Check whether a gap size is small enough to be registered as a detector gap.

Parameters
gapsa cartesean vector holding gap sizes between adjacent TPCs
deltasa cartesean vector holding distances between adjacent TPCs
maxDisplacementthe gap size threshold
Returns
logic bool

Implements lar_pandora::LArPandoraDetectorType.

Reimplemented in lar_pandora::ProtoDUNEDualPhase.

Definition at line 172 of file VintageLArTPCThreeView.h.

175  {
176  if (gaps.X() < 0.f || gaps.X() > maxDisplacement || deltas.Y() > maxDisplacement ||
177  deltas.Z() > maxDisplacement)
178  return false;
179  return true;
180  }
LArDetectorGap lar_pandora::VintageLArTPCThreeView::CreateDetectorGap ( const geo::Point_t point1,
const geo::Point_t point2,
const geo::Vector_t widths 
) const
inlineoverridevirtualinherited

Create a detector gap.

Parameters
point1a point on TPC1 that are closest to TPC2
point2a point on TPC2 that are closest to TPC1
widththe gap sizes
Returns
the detector gap object

Implements lar_pandora::LArPandoraDetectorType.

Reimplemented in lar_pandora::ProtoDUNEDualPhase.

Definition at line 184 of file VintageLArTPCThreeView.h.

187  {
188  return LArDetectorGap(point1.X(), point1.Y(), point1.Z(), point2.X(), point2.Y(), point2.Z());
189  }
PandoraApi::Geometry::LineGap::Parameters lar_pandora::VintageLArTPCThreeView::CreateLineGapParametersFromDetectorGaps ( const LArDetectorGap gap) const
inlineoverridevirtualinherited

Create the line gap parameters to give to the pandora API.

Parameters
gapthe input detector gap
Returns
the pandora API's line gap parameters object

Implements lar_pandora::LArPandoraDetectorType.

Reimplemented in lar_pandora::ProtoDUNEDualPhase.

Definition at line 203 of file VintageLArTPCThreeView.h.

References lar_pandora::detector_functions::CreateDriftGapParameters().

204  {
206  }
PandoraApi::Geometry::LineGap::Parameters CreateDriftGapParameters(const LArDetectorGap &gap)
Make the drift gap parameters for the Pandora API.
PandoraApi::Geometry::LineGap::Parameters lar_pandora::VintageLArTPCThreeView::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
inlineoverridevirtualinherited

Create the line gap parameters to give to the pandora API.

Parameters
viewthe LArSoft view
tpcthe LArSoft TPC ID
cstatthe LArSoft cryostat ID
firstXYZthe first 3D coordinate
lastXYZthe last 3D coordinate
halfWirePitchthe half wire pitch
pPandorathe pandora instance
xFirstthe min X of the gap
xLastthe max X of the gap
Returns
the pandora API's line gap parameters object

Implements lar_pandora::LArPandoraDetectorType.

Reimplemented in lar_pandora::ProtoDUNEDualPhase.

Definition at line 211 of file VintageLArTPCThreeView.h.

References lar_pandora::detector_functions::CreateReadoutGapParameters(), f, lar_pandora::VintageLArTPCThreeView::TargetViewU(), lar_pandora::VintageLArTPCThreeView::TargetViewV(), and lar_pandora::VintageLArTPCThreeView::TargetViewW().

221  {
222  float first(0.f), last(0.f);
223  pandora::LineGapType gapType(pandora::TPC_DRIFT_GAP);
224  if (view == this->TargetViewW(tpc, cstat)) {
225  first = firstXYZ.Z();
226  last = lastXYZ.Z();
227  gapType = pandora::TPC_WIRE_GAP_VIEW_W;
228  }
229  else if (view == this->TargetViewU(tpc, cstat)) {
230  first =
231  pPandora->GetPlugins()->GetLArTransformationPlugin()->YZtoU(firstXYZ.Y(), firstXYZ.Z());
232  last = pPandora->GetPlugins()->GetLArTransformationPlugin()->YZtoU(lastXYZ.Y(), lastXYZ.Z());
233  gapType = pandora::TPC_WIRE_GAP_VIEW_U;
234  }
235  else if (view == this->TargetViewV(tpc, cstat)) {
236  first =
237  pPandora->GetPlugins()->GetLArTransformationPlugin()->YZtoV(firstXYZ.Y(), firstXYZ.Z());
238  last = pPandora->GetPlugins()->GetLArTransformationPlugin()->YZtoV(lastXYZ.Y(), lastXYZ.Z());
239  gapType = pandora::TPC_WIRE_GAP_VIEW_V;
240  }
242  first, last, xFirst, xLast, halfWirePitch, gapType);
243  }
virtual geo::View_t TargetViewV(const geo::TPCID::TPCID_t tpc, const geo::CryostatID::CryostatID_t cstat) const override
Map a LArSoft view to Pandora&#39;s V view.
virtual geo::View_t TargetViewU(const geo::TPCID::TPCID_t tpc, const geo::CryostatID::CryostatID_t cstat) const override
Map a LArSoft view to Pandora&#39;s U view.
virtual geo::View_t TargetViewW(const geo::TPCID::TPCID_t tpc, const geo::CryostatID::CryostatID_t cstat) const override
Map a LArSoft view to Pandora&#39;s W view.
TFile f
Definition: plotHisto.C:6
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.
const art::ServiceHandle< geo::Geometry > & lar_pandora::VintageLArTPCThreeView::GetLArSoftGeometry ( ) const
inlineinherited
void lar_pandora::VintageLArTPCThreeView::LoadDaughterDetectorGaps ( const LArDriftVolume driftVolume,
const float  maxDisplacement,
LArDetectorGapList listOfGaps 
) const
inlineoverridevirtualinherited

Create detector gaps for all daughter volumes in a logical TPC volume.

Parameters
driftVolumethe parent drift volume
maxDisplacementthe gap size threshold
listOfGapsthe gaps vector to be filled

Implements lar_pandora::LArPandoraDetectorType.

Reimplemented in lar_pandora::ProtoDUNEDualPhase.

Definition at line 193 of file VintageLArTPCThreeView.h.

196  {
197  return;
198  }
geo::View_t lar_pandora::DUNEFarDetVDThreeView::TargetViewU ( const geo::TPCID::TPCID_t  tpc,
const geo::CryostatID::CryostatID_t  cstat 
) const
inlineoverridevirtual

Map a LArSoft view to Pandora's U view.

Parameters
tpcthe LArSoft TPC ID
cstatthe LArSoft cryostat ID
Returns
The mapped LArSoft view

Reimplemented from lar_pandora::VintageLArTPCThreeView.

Definition at line 32 of file DUNEFarDetVDThreeView.h.

References lar_pandora::VintageLArTPCThreeView::GetLArSoftGeometry(), and geo::GeometryCore::View().

35  {
36  return this->GetLArSoftGeometry()->View(geo::PlaneID(cstat, tpc, 0));
37  }
The data type to uniquely identify a Plane.
Definition: geo_types.h:463
const art::ServiceHandle< geo::Geometry > & GetLArSoftGeometry() const
Loan the LArSoft geometry handle owned by this class.
View_t View(PlaneID const &pid) const
Returns the view (wire orientation) on the channels of specified TPC plane.
geo::View_t lar_pandora::DUNEFarDetVDThreeView::TargetViewV ( const geo::TPCID::TPCID_t  tpc,
const geo::CryostatID::CryostatID_t  cstat 
) const
inlineoverridevirtual

Map a LArSoft view to Pandora's V view.

Parameters
tpcthe LArSoft TPC ID
cstatthe LArSoft cryostat ID
Returns
The mapped LArSoft view

Reimplemented from lar_pandora::VintageLArTPCThreeView.

Definition at line 41 of file DUNEFarDetVDThreeView.h.

References lar_pandora::VintageLArTPCThreeView::GetLArSoftGeometry(), and geo::GeometryCore::View().

44  {
45  return this->GetLArSoftGeometry()->View(geo::PlaneID(cstat, tpc, 1));
46  }
The data type to uniquely identify a Plane.
Definition: geo_types.h:463
const art::ServiceHandle< geo::Geometry > & GetLArSoftGeometry() const
Loan the LArSoft geometry handle owned by this class.
View_t View(PlaneID const &pid) const
Returns the view (wire orientation) on the channels of specified TPC plane.
geo::View_t lar_pandora::DUNEFarDetVDThreeView::TargetViewW ( const geo::TPCID::TPCID_t  tpc,
const geo::CryostatID::CryostatID_t  cstat 
) const
inlineoverridevirtual

Map a LArSoft view to Pandora's W view.

Parameters
tpcthe LArSoft TPC ID
cstatthe LArSoft cryostat ID
Returns
The mapped LArSoft view

Reimplemented from lar_pandora::VintageLArTPCThreeView.

Definition at line 50 of file DUNEFarDetVDThreeView.h.

References lar_pandora::VintageLArTPCThreeView::GetLArSoftGeometry(), and geo::GeometryCore::View().

53  {
54  return this->GetLArSoftGeometry()->View(geo::PlaneID(cstat, tpc, 2));
55  }
The data type to uniquely identify a Plane.
Definition: geo_types.h:463
const art::ServiceHandle< geo::Geometry > & GetLArSoftGeometry() const
Loan the LArSoft geometry handle owned by this class.
View_t View(PlaneID const &pid) const
Returns the view (wire orientation) on the channels of specified TPC plane.
float lar_pandora::VintageLArTPCThreeView::WireAngleU ( const geo::TPCID::TPCID_t  tpc,
const geo::CryostatID::CryostatID_t  cstat 
) const
inlineoverridevirtualinherited

The angle of the wires in the mapped U view.

Returns
The mapped wire angle

Implements lar_pandora::LArPandoraDetectorType.

Definition at line 145 of file VintageLArTPCThreeView.h.

References lar_pandora::VintageLArTPCThreeView::m_LArSoftGeometry, lar_pandora::VintageLArTPCThreeView::TargetViewU(), and lar_pandora::detector_functions::WireAngle().

147  {
149  this->TargetViewU(tpc, cstat), tpc, cstat, m_LArSoftGeometry);
150  }
virtual geo::View_t TargetViewU(const geo::TPCID::TPCID_t tpc, const geo::CryostatID::CryostatID_t cstat) const override
Map a LArSoft view to Pandora&#39;s U view.
art::ServiceHandle< geo::Geometry > m_LArSoftGeometry
the LArSoft geometry handle
float WireAngle(const geo::View_t view, const geo::TPCID::TPCID_t tpc, const geo::CryostatID::CryostatID_t cstat, const art::ServiceHandle< geo::Geometry > &larsoftGeometry)
Calculate the wire angle of a LArTPC view in a given TPC/cryostat.
float lar_pandora::VintageLArTPCThreeView::WireAngleV ( const geo::TPCID::TPCID_t  tpc,
const geo::CryostatID::CryostatID_t  cstat 
) const
inlineoverridevirtualinherited

The angle of the wires in the mapped V view.

Returns
The mapped wire angle

Implements lar_pandora::LArPandoraDetectorType.

Definition at line 154 of file VintageLArTPCThreeView.h.

References lar_pandora::VintageLArTPCThreeView::m_LArSoftGeometry, lar_pandora::VintageLArTPCThreeView::TargetViewV(), and lar_pandora::detector_functions::WireAngle().

156  {
158  this->TargetViewV(tpc, cstat), tpc, cstat, m_LArSoftGeometry);
159  }
virtual geo::View_t TargetViewV(const geo::TPCID::TPCID_t tpc, const geo::CryostatID::CryostatID_t cstat) const override
Map a LArSoft view to Pandora&#39;s V view.
art::ServiceHandle< geo::Geometry > m_LArSoftGeometry
the LArSoft geometry handle
float WireAngle(const geo::View_t view, const geo::TPCID::TPCID_t tpc, const geo::CryostatID::CryostatID_t cstat, const art::ServiceHandle< geo::Geometry > &larsoftGeometry)
Calculate the wire angle of a LArTPC view in a given TPC/cryostat.
float lar_pandora::VintageLArTPCThreeView::WireAngleW ( const geo::TPCID::TPCID_t  tpc,
const geo::CryostatID::CryostatID_t  cstat 
) const
inlineoverridevirtualinherited

The angle of the wires in the mapped V view.

Returns
The mapped wire angle

Implements lar_pandora::LArPandoraDetectorType.

Reimplemented in lar_pandora::ProtoDUNEDualPhase, and lar_pandora::ICARUS.

Definition at line 163 of file VintageLArTPCThreeView.h.

References lar_pandora::VintageLArTPCThreeView::m_LArSoftGeometry, lar_pandora::VintageLArTPCThreeView::TargetViewW(), and lar_pandora::detector_functions::WireAngle().

165  {
167  this->TargetViewW(tpc, cstat), tpc, cstat, m_LArSoftGeometry);
168  }
virtual geo::View_t TargetViewW(const geo::TPCID::TPCID_t tpc, const geo::CryostatID::CryostatID_t cstat) const override
Map a LArSoft view to Pandora&#39;s W view.
art::ServiceHandle< geo::Geometry > m_LArSoftGeometry
the LArSoft geometry handle
float WireAngle(const geo::View_t view, const geo::TPCID::TPCID_t tpc, const geo::CryostatID::CryostatID_t cstat, const art::ServiceHandle< geo::Geometry > &larsoftGeometry)
Calculate the wire angle of a LArTPC view in a given TPC/cryostat.
float lar_pandora::VintageLArTPCThreeView::WirePitchU ( ) const
inlineoverridevirtualinherited

The wire pitch of the mapped U view.

Returns
The mapped wire pitch

Implements lar_pandora::LArPandoraDetectorType.

Definition at line 124 of file VintageLArTPCThreeView.h.

References lar_pandora::VintageLArTPCThreeView::m_LArSoftGeometry, lar_pandora::VintageLArTPCThreeView::TargetViewU(), and geo::GeometryCore::WirePitch().

Referenced by lar_pandora::ProtoDUNEDualPhase::WirePitchW().

125  {
126  return m_LArSoftGeometry->WirePitch(this->TargetViewU(0, 0));
127  }
virtual geo::View_t TargetViewU(const geo::TPCID::TPCID_t tpc, const geo::CryostatID::CryostatID_t cstat) const override
Map a LArSoft view to Pandora&#39;s U view.
art::ServiceHandle< geo::Geometry > m_LArSoftGeometry
the LArSoft geometry handle
Length_t WirePitch(PlaneID const &planeid=plane_zero) const
Returns the distance between two consecutive wires.
float lar_pandora::VintageLArTPCThreeView::WirePitchV ( ) const
inlineoverridevirtualinherited

The wire pitch of the mapped V view.

Returns
The mapped wire pitch

Implements lar_pandora::LArPandoraDetectorType.

Definition at line 131 of file VintageLArTPCThreeView.h.

References lar_pandora::VintageLArTPCThreeView::m_LArSoftGeometry, lar_pandora::VintageLArTPCThreeView::TargetViewV(), and geo::GeometryCore::WirePitch().

Referenced by lar_pandora::ProtoDUNEDualPhase::WirePitchW().

132  {
133  return m_LArSoftGeometry->WirePitch(this->TargetViewV(0, 0));
134  }
virtual geo::View_t TargetViewV(const geo::TPCID::TPCID_t tpc, const geo::CryostatID::CryostatID_t cstat) const override
Map a LArSoft view to Pandora&#39;s V view.
art::ServiceHandle< geo::Geometry > m_LArSoftGeometry
the LArSoft geometry handle
Length_t WirePitch(PlaneID const &planeid=plane_zero) const
Returns the distance between two consecutive wires.
float lar_pandora::VintageLArTPCThreeView::WirePitchW ( ) const
inlineoverridevirtualinherited

The wire pitch of the mapped W view.

Returns
The mapped wire pitch

Implements lar_pandora::LArPandoraDetectorType.

Reimplemented in lar_pandora::ProtoDUNEDualPhase.

Definition at line 138 of file VintageLArTPCThreeView.h.

References lar_pandora::VintageLArTPCThreeView::m_LArSoftGeometry, lar_pandora::VintageLArTPCThreeView::TargetViewW(), and geo::GeometryCore::WirePitch().

139  {
140  return m_LArSoftGeometry->WirePitch(this->TargetViewW(0, 0));
141  }
virtual geo::View_t TargetViewW(const geo::TPCID::TPCID_t tpc, const geo::CryostatID::CryostatID_t cstat) const override
Map a LArSoft view to Pandora&#39;s W view.
art::ServiceHandle< geo::Geometry > m_LArSoftGeometry
the LArSoft geometry handle
Length_t WirePitch(PlaneID const &planeid=plane_zero) const
Returns the distance between two consecutive wires.

The documentation for this class was generated from the following file: