LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
LArPandoraGeometry class. More...
#include "LArPandoraGeometry.h"
Static Public Member Functions | |
static void | LoadDetectorGaps (LArDetectorGapList &listOfGaps) |
Load the 2D gaps that go with the chosen geometry. More... | |
static void | LoadGeometry (LArDriftVolumeList &outputVolumeList, LArDriftVolumeMap &outputVolumeMap) |
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 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) |
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 254 of file LArPandoraGeometry.h.
|
static |
Convert to global coordinate system.
cstat | the input cryostat |
tpc | the input tpc |
hit_View | the input view |
Definition at line 111 of file LArPandoraGeometry.cxx.
References geo::kU, geo::kV, geo::kW, geo::kY, and ShouldSwitchUV().
Referenced by lar_pandora::LArPandoraInput::CreatePandoraHits2D(), and lar_pandora::LArPandoraInput::CreatePandoraReadoutGaps().
|
staticprivate |
Generate a unique identifier for each TPC.
cstat | the input cryostat |
tpc | the input tpc |
Definition at line 136 of file LArPandoraGeometry.cxx.
Referenced by 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 96 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. |
Definition at line 23 of file LArPandoraGeometry.cxx.
References f, lar_pandora::LArDriftVolume::GetCenterX(), lar_pandora::LArDriftVolume::GetCenterY(), lar_pandora::LArDriftVolume::GetCenterZ(), lar_pandora::LArDriftVolume::GetVolumeID(), lar_pandora::LArDriftVolume::GetWidthX(), lar_pandora::LArDriftVolume::GetWidthY(), lar_pandora::LArDriftVolume::GetWidthZ(), LoadGeometry(), max, min, 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 |
Definition at line 74 of file LArPandoraGeometry.cxx.
References GetTpcID(), and LoadGlobalDaughterGeometry().
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 |
Definition at line 167 of file LArPandoraGeometry.cxx.
References f, geo::kPosX, geo::kU, geo::kV, geo::kW, geo::kY, max, geo::GeometryCore::MaxPlanes(), min, geo::GeometryCore::Ncryostats(), geo::GeometryCore::NTPC(), geo::TPCGeo::Plane(), geo::GeometryCore::TPC(), geo::PlaneGeo::View(), geo::GeometryCore::WireAngleToVertical(), and geo::GeometryCore::WirePitch().
|
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 305 of file LArPandoraGeometry.cxx.
References ShouldSwitchUV().
Referenced by LoadGeometry().
|
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 147 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 159 of file LArPandoraGeometry.cxx.