![]() |
LArSoft
v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
|
Detector interface for a 3view, horizontal drift, single-phase LArTPC. More...
#include "VintageLArTPCThreeView.h"
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... | |
float | WirePitchU () const override |
The wire pitch of the mapped U view. More... | |
float | WirePitchV () const override |
The wire pitch of the mapped V view. More... | |
float | WirePitchW () const override |
The wire pitch of the mapped W view. More... | |
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... | |
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... | |
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... | |
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... | |
LArDetectorGap | CreateDetectorGap (const geo::Point_t &point1, const geo::Point_t &point2, const geo::Vector_t &widths) const override |
Create a detector gap. More... | |
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... | |
PandoraApi::Geometry::LineGap::Parameters | CreateLineGapParametersFromDetectorGaps (const LArDetectorGap &gap) const override |
Create the line gap parameters to give to the pandora API. More... | |
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 geo::GeometryCore & | GetLArSoftGeometry () const |
Loan the LArSoft geometry handle owned by this class. More... | |
const geo::WireReadoutGeom & | GetChannelMap () const |
Private Attributes | |
art::ServiceHandle< geo::Geometry > | m_LArSoftGeometry |
the LArSoft geometry handle More... | |
geo::WireReadoutGeom const * | m_wireReadoutGeom = &art::ServiceHandle<geo::WireReadout>()->Get() |
Detector interface for a 3view, horizontal drift, single-phase LArTPC.
Definition at line 29 of file VintageLArTPCThreeView.h.
|
inlineoverridevirtual |
Check whether a gap size is small enough to be registered as a detector gap.
gaps | a cartesean vector holding gap sizes between adjacent TPCs |
deltas | a cartesean vector holding distances between adjacent TPCs |
maxDisplacement | the gap size threshold |
Implements lar_pandora::LArPandoraDetectorType.
Definition at line 174 of file VintageLArTPCThreeView.h.
|
inlineoverridevirtual |
Create a detector gap.
point1 | a point on TPC1 that are closest to TPC2 |
point2 | a point on TPC2 that are closest to TPC1 |
width | the gap sizes |
Implements lar_pandora::LArPandoraDetectorType.
Definition at line 186 of file VintageLArTPCThreeView.h.
|
inlineoverridevirtual |
Create the line gap parameters to give to the pandora API.
gap | the input detector gap |
Implements lar_pandora::LArPandoraDetectorType.
Definition at line 205 of file VintageLArTPCThreeView.h.
References lar_pandora::detector_functions::CreateDriftGapParameters().
|
inlineoverridevirtual |
Create the line gap parameters to give to the pandora API.
view | the LArSoft view |
tpc | the LArSoft TPC ID |
cstat | the LArSoft cryostat ID |
firstXYZ | the first 3D coordinate |
lastXYZ | the last 3D coordinate |
halfWirePitch | the half wire pitch |
pPandora | the pandora instance |
xFirst | the min X of the gap |
xLast | the max X of the gap |
Implements lar_pandora::LArPandoraDetectorType.
Definition at line 213 of file VintageLArTPCThreeView.h.
References lar_pandora::detector_functions::CreateReadoutGapParameters(), f, TargetViewU(), TargetViewV(), and TargetViewW().
|
inline |
Definition at line 254 of file VintageLArTPCThreeView.h.
References m_wireReadoutGeom.
Referenced by lar_pandora::DUNEFarDetVDThreeView::TargetViewU(), lar_pandora::ICARUS::TargetViewU(), lar_pandora::ProtoDUNEDualPhase::TargetViewU(), lar_pandora::DUNEFarDetVDThreeView::TargetViewV(), lar_pandora::ProtoDUNEDualPhase::TargetViewV(), lar_pandora::ICARUS::TargetViewV(), lar_pandora::DUNEFarDetVDThreeView::TargetViewW(), lar_pandora::ICARUS::TargetViewW(), and lar_pandora::ICARUS::WireAngleW().
|
inline |
Loan the LArSoft geometry handle owned by this class.
Definition at line 249 of file VintageLArTPCThreeView.h.
References m_LArSoftGeometry.
Referenced by lar_pandora::ICARUS::TargetViewU(), and lar_pandora::ICARUS::TargetViewV().
|
inlineoverridevirtual |
Create detector gaps for all daughter volumes in a logical TPC volume.
driftVolume | the parent drift volume |
maxDisplacement | the gap size threshold |
listOfGaps | the gaps vector to be filled |
Implements lar_pandora::LArPandoraDetectorType.
Definition at line 195 of file VintageLArTPCThreeView.h.
|
inlineoverridevirtual |
Map a LArSoft view to Pandora's U view.
tpc | the LArSoft TPC ID |
cstat | the LArSoft cryostat ID |
Implements lar_pandora::LArPandoraDetectorType.
Definition at line 96 of file VintageLArTPCThreeView.h.
References geo::TPCGeo::DriftAxisWithSign(), m_LArSoftGeometry, m_wireReadoutGeom, geo::WireReadoutGeom::Plane(), geo::Positive, pmtana::sign(), geo::GeometryCore::TPC(), and geo::PlaneGeo::View().
Referenced by CreateLineGapParametersFromReadoutGaps(), WireAngleU(), and WirePitchU().
|
inlineoverridevirtual |
Map a LArSoft view to Pandora's V view.
tpc | the LArSoft TPC ID |
cstat | the LArSoft cryostat ID |
Implements lar_pandora::LArPandoraDetectorType.
Definition at line 107 of file VintageLArTPCThreeView.h.
References geo::TPCGeo::DriftAxisWithSign(), m_LArSoftGeometry, m_wireReadoutGeom, geo::WireReadoutGeom::Plane(), geo::Positive, pmtana::sign(), geo::GeometryCore::TPC(), and geo::PlaneGeo::View().
Referenced by CreateLineGapParametersFromReadoutGaps(), WireAngleV(), and WirePitchV().
|
inlineoverridevirtual |
Map a LArSoft view to Pandora's W view.
tpc | the LArSoft TPC ID |
cstat | the LArSoft cryostat ID |
Implements lar_pandora::LArPandoraDetectorType.
Definition at line 120 of file VintageLArTPCThreeView.h.
References m_wireReadoutGeom, and geo::WireReadoutGeom::Plane().
Referenced by CreateLineGapParametersFromReadoutGaps(), WireAngleW(), and WirePitchW().
|
inlineoverridevirtual |
The angle of the wires in the mapped U view.
Implements lar_pandora::LArPandoraDetectorType.
Definition at line 150 of file VintageLArTPCThreeView.h.
References m_wireReadoutGeom, TargetViewU(), and lar_pandora::detector_functions::WireAngle().
|
inlineoverridevirtual |
The angle of the wires in the mapped V view.
Implements lar_pandora::LArPandoraDetectorType.
Definition at line 158 of file VintageLArTPCThreeView.h.
References m_wireReadoutGeom, TargetViewV(), and lar_pandora::detector_functions::WireAngle().
|
inlineoverridevirtual |
The angle of the wires in the mapped V view.
Implements lar_pandora::LArPandoraDetectorType.
Definition at line 166 of file VintageLArTPCThreeView.h.
References m_wireReadoutGeom, TargetViewW(), and lar_pandora::detector_functions::WireAngle().
|
inlineoverridevirtual |
The wire pitch of the mapped U view.
Implements lar_pandora::LArPandoraDetectorType.
Definition at line 129 of file VintageLArTPCThreeView.h.
References m_wireReadoutGeom, geo::WireReadoutGeom::Plane(), and TargetViewU().
Referenced by lar_pandora::ProtoDUNEDualPhase::WirePitchW().
|
inlineoverridevirtual |
The wire pitch of the mapped V view.
Implements lar_pandora::LArPandoraDetectorType.
Definition at line 136 of file VintageLArTPCThreeView.h.
References m_wireReadoutGeom, geo::WireReadoutGeom::Plane(), and TargetViewV().
Referenced by lar_pandora::ProtoDUNEDualPhase::WirePitchW().
|
inlineoverridevirtual |
The wire pitch of the mapped W view.
Implements lar_pandora::LArPandoraDetectorType.
Definition at line 143 of file VintageLArTPCThreeView.h.
References m_wireReadoutGeom, geo::WireReadoutGeom::Plane(), and TargetViewW().
|
private |
the LArSoft geometry handle
Definition at line 90 of file VintageLArTPCThreeView.h.
Referenced by GetLArSoftGeometry(), TargetViewU(), and TargetViewV().
|
private |
Definition at line 91 of file VintageLArTPCThreeView.h.
Referenced by GetChannelMap(), TargetViewU(), TargetViewV(), TargetViewW(), WireAngleU(), WireAngleV(), WireAngleW(), WirePitchU(), WirePitchV(), and WirePitchW().