Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
lar_pandora::detector_functions Namespace Reference

Functions

LArPandoraDetectorTypeGetDetectorType ()
 Factory class that returns the correct detector type interface.
 
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.
 
PandoraApi::Geometry::LineGap::Parameters CreateDriftGapParameters (const LArDetectorGap &gap)
 Make the drift gap parameters for the Pandora API.
 
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.
 

Function Documentation

◆ CreateDriftGapParameters()

PandoraApi::Geometry::LineGap::Parameters lar_pandora::detector_functions::CreateDriftGapParameters ( const LArDetectorGap gap)

Make the drift gap parameters for the Pandora API.

Parameters
gapthe detector gap object
Returns
the line gap parameters for the Pandora API

Definition at line 26 of file LArPandoraDetectorType.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateReadoutGapParameters()

PandoraApi::Geometry::LineGap::Parameters lar_pandora::detector_functions::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.

Parameters
firstPointthe first point in the gap
lastPointthe last point ih the gap
xFirstthe min X of the gap
xLastthe max X of the gap
halfWirePitchthe half wire pitch
gapTypethe pandora gap type
Returns
the line gap parameters for the Pandora API

Definition at line 41 of file LArPandoraDetectorType.cxx.

Here is the caller graph for this function:

◆ GetDetectorType()

LArPandoraDetectorType * lar_pandora::detector_functions::GetDetectorType ( )

Factory class that returns the correct detector type interface.

Returns
The detector type interface

Definition at line 23 of file GetDetectorType.cxx.

Here is the caller graph for this function:

◆ WireAngle()

float lar_pandora::detector_functions::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.

Parameters
viewthe LArSoft view
tpcthe LArSoft TPC ID
cstatthe LArSoft cryostat ID
larsoftGeometrythe LArSoft geometry service handle
Returns
the wire angle

Definition at line 16 of file LArPandoraDetectorType.cxx.

Here is the caller graph for this function: