LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
LArPandoraGeometry class. More...
#include "LArPandoraGeometry.h"
Static Public Member Functions | |
static void | LoadDetectorGaps (LArDetectorGapList &listOfGaps, const bool useActiveBoundingBox) |
Load the 2D gaps that go with the chosen geometry. More... | |
static void | LoadGeometry (LArDriftVolumeList &outputVolumeList, LArDriftVolumeMap &outputVolumeMap, const bool useActiveBoundingBox) |
Load drift volume geometry. More... | |
static unsigned int | GetVolumeID (const LArDriftVolumeMap &driftVolumeMap, const unsigned int cstat, const unsigned int tpc) |
Get drift volume ID from a specified cryostat/tpc pair. More... | |
static unsigned int | GetDaughterVolumeID (const LArDriftVolumeMap &driftVolumeMap, const unsigned int cstat, const unsigned int tpc) |
Get daughter volume ID from a specified cryostat/tpc pair. More... | |
static geo::View_t | GetGlobalView (const unsigned int cstat, const unsigned int tpc, const geo::View_t hit_View) |
Convert to global coordinate system. More... | |
Static Private Member Functions | |
static unsigned int | GetTpcID (const unsigned int cstat, const unsigned int tpc) |
Generate a unique identifier for each TPC. More... | |
static bool | ShouldSwitchUV (const unsigned int cstat, const unsigned int tpc) |
Return whether U/V should be switched in global coordinate system for this cryostat/tpc. More... | |
static bool | ShouldSwitchUV (const bool isPositiveDrift) |
Return whether U/V should be switched in global coordinate system for this drift direction. More... | |
static void | LoadGeometry (LArDriftVolumeList &driftVolumeList, const bool useActiveBoundingBox) |
This method will group TPCs into drift volumes (these are regions of the detector that share a common drift direction, common range of X coordinates, and common detector parameters such as wire pitch and wire angle). More... | |
static void | LoadGlobalDaughterGeometry (const LArDriftVolumeList &driftVolumeList, LArDriftVolumeList &daughterVolumeList) |
This method will create one or more daughter volumes (these share a common drift orientation along the X-axis, have parallel or near-parallel wire angles, and similar wire pitches) More... | |
LArPandoraGeometry class.
Definition at line 22 of file LArPandoraGeometry.h.
|
static |
Get daughter volume ID from a specified cryostat/tpc pair.
driftVolumeMap | the output mapping between cryostat/tpc and drift volumes |
cstat | the input cryostat unique ID |
tpc | the input tpc unique ID |
Definition at line 136 of file LArPandoraGeometry.cxx.
References lar_pandora::LArDaughterDriftVolume::GetCryostat(), lar_pandora::LArDaughterDriftVolume::GetTpc(), and GetTpcID().
Referenced by lar_pandora::LArPandoraInput::CreatePandoraHits2D().
|
static |
Convert to global coordinate system.
cstat | the input cryostat |
tpc | the input tpc |
hit_View | the input view |
Definition at line 167 of file LArPandoraGeometry.cxx.
References geo::kU, geo::kV, geo::kW, geo::kY, and ShouldSwitchUV().
|
staticprivate |
Generate a unique identifier for each TPC.
cstat | the input cryostat |
tpc | the input tpc |
Definition at line 188 of file LArPandoraGeometry.cxx.
Referenced by GetDaughterVolumeID(), GetVolumeID(), and LoadGeometry().
|
static |
Get drift volume ID from a specified cryostat/tpc pair.
driftVolumeMap | the output mapping between cryostat/tpc and drift volumes |
cstat | the input cryostat unique ID |
tpc | the input tpc unique ID |
Definition at line 116 of file LArPandoraGeometry.cxx.
References GetTpcID().
Referenced by lar_pandora::LArPandoraInput::CreatePandoraHits2D(), and lar_pandora::LArPandoraInput::CreatePandoraReadoutGaps().
|
static |
Load the 2D gaps that go with the chosen geometry.
listOfGaps | the output list of 2D gaps. |
useActiveBoundingBox | when true use ActiveBoundingBox instead of the default midpoint. Meant to handle offsets and things in a better way. |
Definition at line 25 of file LArPandoraGeometry.cxx.
References lar_pandora::LArPandoraDetectorType::CheckDetectorGapSize(), lar_pandora::LArPandoraDetectorType::CreateDetectorGap(), f, lar_pandora::LArDriftVolume::GetCenterX(), lar_pandora::LArDriftVolume::GetCenterY(), lar_pandora::LArDriftVolume::GetCenterZ(), lar_pandora::detector_functions::GetDetectorType(), lar_pandora::LArDetectorGap::GetMaxGapSize(), lar_pandora::LArDriftVolume::GetVolumeID(), lar_pandora::LArDriftVolume::GetWidthX(), lar_pandora::LArDriftVolume::GetWidthY(), lar_pandora::LArDriftVolume::GetWidthZ(), lar_pandora::LArPandoraDetectorType::LoadDaughterDetectorGaps(), LoadGeometry(), X1, X2, Y1, Y2, Z1, and Z2.
Referenced by lar_pandora::LArPandora::beginJob().
|
static |
Load drift volume geometry.
outputVolumeList | the output list of drift volumes |
outputVolumeMap | the output mapping between cryostat/tpc and drift volumes |
useActiveBoundingBox | when true use ActiveBoundingBox instead of the default midpoint. Meant to handle offsets and things in a better way. |
Definition at line 95 of file LArPandoraGeometry.cxx.
References GetTpcID().
Referenced by lar_pandora::LArPandora::beginJob(), and LoadDetectorGaps().
|
staticprivate |
This method will group TPCs into drift volumes (these are regions of the detector that share a common drift direction, common range of X coordinates, and common detector parameters such as wire pitch and wire angle).
driftVolumeList | to receive the populated drift volume list |
useActiveBoundingBox | when true use ActiveBoundingBox instead of the default midpoint. Meant to handle offsets and things in a better way. |
Definition at line 224 of file LArPandoraGeometry.cxx.
References f, lar_pandora::detector_functions::GetDetectorType(), geo::GeometryCore::Iterate(), geo::kPosX, lar_pandora::LArPandoraDetectorType::WireAngleU(), lar_pandora::LArPandoraDetectorType::WireAngleV(), lar_pandora::LArPandoraDetectorType::WireAngleW(), lar_pandora::LArPandoraDetectorType::WirePitchU(), lar_pandora::LArPandoraDetectorType::WirePitchV(), and lar_pandora::LArPandoraDetectorType::WirePitchW().
|
staticprivate |
This method will create one or more daughter volumes (these share a common drift orientation along the X-axis, have parallel or near-parallel wire angles, and similar wire pitches)
driftVolumeList | to receive the input drift volume list |
parentVolumeList | to receive the output daughter drift volume list |
Definition at line 395 of file LArPandoraGeometry.cxx.
References ShouldSwitchUV().
|
staticprivate |
Return whether U/V should be switched in global coordinate system for this cryostat/tpc.
cstat | the input cryostat |
tpc | the input tpc |
Definition at line 200 of file LArPandoraGeometry.cxx.
References geo::kPosX, and geo::GeometryCore::TPC().
Referenced by GetGlobalView(), and LoadGlobalDaughterGeometry().
|
staticprivate |
Return whether U/V should be switched in global coordinate system for this drift direction.
isPositiveDrift | the drift direction |
Definition at line 212 of file LArPandoraGeometry.cxx.
References geo::GeometryCore::MaxPlanes().