All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
lar_pandora::ICARUS Class Reference

Detector interface for ICARUS. More...

#include <ICARUS.h>

Inheritance diagram for lar_pandora::ICARUS:
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...
 
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...
 
- Public Member Functions inherited from lar_pandora::VintageLArTPCThreeView
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 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 double firstXYZ[3], const double lastXYZ[3], 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 for ICARUS.

Definition at line 20 of file ICARUS.h.

Member Function Documentation

geo::View_t lar_pandora::ICARUS::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 36 of file ICARUS.h.

38  {
39  return (this->GetLArSoftGeometry()->TPC(tpc, cstat).DriftDirection() == geo::kPosX ?
40  this->GetLArSoftGeometry()->View(geo::PlaneID(cstat, tpc, 1)) :
41  this->GetLArSoftGeometry()->View(geo::PlaneID(cstat, tpc, 2)));
42  }
The data type to uniquely identify a Plane.
Definition: geo_types.h:472
BEGIN_PROLOG TPC
const art::ServiceHandle< geo::Geometry > & GetLArSoftGeometry() const
Loan the LArSoft geometry handle owned by this class.
Drift towards positive X values.
Definition: geo_types.h:161
geo::View_t lar_pandora::ICARUS::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 47 of file ICARUS.h.

49  {
50  return (this->GetLArSoftGeometry()->TPC(tpc, cstat).DriftDirection() == geo::kPosX ?
51  this->GetLArSoftGeometry()->View(geo::PlaneID(cstat, tpc, 2)) :
52  this->GetLArSoftGeometry()->View(geo::PlaneID(cstat, tpc, 1)));
53  }
The data type to uniquely identify a Plane.
Definition: geo_types.h:472
BEGIN_PROLOG TPC
const art::ServiceHandle< geo::Geometry > & GetLArSoftGeometry() const
Loan the LArSoft geometry handle owned by this class.
Drift towards positive X values.
Definition: geo_types.h:161
geo::View_t lar_pandora::ICARUS::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 58 of file ICARUS.h.

60  {
61  return this->GetLArSoftGeometry()->View(geo::PlaneID(cstat, tpc, 0));
62  }
The data type to uniquely identify a Plane.
Definition: geo_types.h:472
const art::ServiceHandle< geo::Geometry > & GetLArSoftGeometry() const
Loan the LArSoft geometry handle owned by this class.
float lar_pandora::ICARUS::WireAngleW ( const geo::TPCID::TPCID_t  tpc,
const geo::CryostatID::CryostatID_t  cstat 
) const
inlineoverridevirtual

The angle of the wires in the mapped V view.

Returns
The mapped wire angle

Reimplemented from lar_pandora::VintageLArTPCThreeView.

Definition at line 67 of file ICARUS.h.

68  {
70  this->TargetViewW(tpc, cstat), tpc, cstat, this->GetLArSoftGeometry()));
71  }
T abs(T value)
const art::ServiceHandle< geo::Geometry > & GetLArSoftGeometry() const
Loan the LArSoft geometry handle owned by this class.
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.
Definition: ICARUS.h:58
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.

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