Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
pandora::GeometryManager Class Reference

GeometryManager class. More...

#include "GeometryManager.h"

Collaboration diagram for pandora::GeometryManager:

Public Member Functions

 GeometryManager (const Pandora *const pPandora)
 Constructor.
 
 ~GeometryManager ()
 Destructor.
 
const SubDetectorGetSubDetector (const std::string &subDetectorName) const
 Get the sub detector corresponding to a specified name.
 
const SubDetectorGetSubDetector (const SubDetectorType subDetectorType) const
 Get the sub detector corresponding to a specified type. Will throw exception if there is not exactly one subdetector registered with the specified type.
 
const SubDetectorMapGetSubDetectorMap () const
 Get the map from name to sub detector parameters.
 
const LArTPCGetLArTPC () const
 If there is exactly one registered lar tpc instance, return it; else raise an exception.
 
const LArTPCMapGetLArTPCMap () const
 Get the map from name to lar tpc parameters.
 
const DetectorGapListGetDetectorGapList () const
 Get the list of gaps in the active detector volume.
 
Granularity GetHitTypeGranularity (const HitType hitType) const
 Get the granularity level specified for a given calorimeter hit type.
 

Private Types

typedef std::map< HitType, GranularityHitTypeToGranularityMap
 
typedef std::multimap< SubDetectorType, const SubDetector * > SubDetectorTypeMap
 

Private Member Functions

StatusCode CreateSubDetector (const object_creation::Geometry::SubDetector::Parameters &parameters, const ObjectFactory< object_creation::Geometry::SubDetector::Parameters, object_creation::Geometry::SubDetector::Object > &factory)
 Create sub detector.
 
StatusCode CreateLArTPC (const object_creation::Geometry::LArTPC::Parameters &parameters, const ObjectFactory< object_creation::Geometry::LArTPC::Parameters, object_creation::Geometry::LArTPC::Object > &factory)
 Create lar tpc.
 
template<typename PARAMETERS , typename OBJECT >
StatusCode CreateGap (const PARAMETERS &parameters, const ObjectFactory< PARAMETERS, OBJECT > &factory)
 Create gap.
 
StatusCode EraseAllContent ()
 Erase all geometry manager content.
 
HitTypeToGranularityMap GetDefaultHitTypeToGranularityMap () const
 Get the default hit type to granularity map.
 
StatusCode SetHitTypeGranularity (const HitType hitType, const Granularity granularity)
 Set the granularity level to be associated with a specified hit type.
 

Private Attributes

SubDetectorMap m_subDetectorMap
 Map from sub detector name to sub detector.
 
SubDetectorTypeMap m_subDetectorTypeMap
 Map from sub detector type to sub detector.
 
LArTPCMap m_larTPCMap
 Map from lar tpc volume id to lar tpc.
 
DetectorGapList m_detectorGapList
 List of gaps in the active detector volume.
 
HitTypeToGranularityMap m_hitTypeToGranularityMap
 The hit type to granularity map.
 
const Pandora *const m_pPandora
 The associated pandora object.
 

Friends

class PandoraApiImpl
 

Detailed Description

GeometryManager class.

Definition at line 20 of file GeometryManager.h.

Member Typedef Documentation

◆ HitTypeToGranularityMap

Definition at line 124 of file GeometryManager.h.

◆ SubDetectorTypeMap

Definition at line 141 of file GeometryManager.h.

Constructor & Destructor Documentation

◆ GeometryManager()

pandora::GeometryManager::GeometryManager ( const Pandora *const  pPandora)

Constructor.

Parameters
pPandoraaddress of the associated pandora object

Definition at line 22 of file GeometryManager.cc.

◆ ~GeometryManager()

pandora::GeometryManager::~GeometryManager ( )

Destructor.

Definition at line 30 of file GeometryManager.cc.

Here is the call graph for this function:

Member Function Documentation

◆ CreateGap()

template<typename PARAMETERS , typename OBJECT >
template StatusCode pandora::GeometryManager::CreateGap ( const PARAMETERS &  parameters,
const ObjectFactory< PARAMETERS, OBJECT > &  factory 
)
private

Create gap.

Parameters
parametersthe gap parameters
factorythe factory that performs the object allocation

Definition at line 140 of file GeometryManager.cc.

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

◆ CreateLArTPC()

StatusCode pandora::GeometryManager::CreateLArTPC ( const object_creation::Geometry::LArTPC::Parameters parameters,
const ObjectFactory< object_creation::Geometry::LArTPC::Parameters, object_creation::Geometry::LArTPC::Object > &  factory 
)
private

Create lar tpc.

Parameters
parametersthe lar tpc parameters
factorythe factory that performs the object allocation

Definition at line 114 of file GeometryManager.cc.

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

◆ CreateSubDetector()

Create sub detector.

Parameters
parametersthe sub detector parameters
factorythe factory that performs the object allocation

Definition at line 87 of file GeometryManager.cc.

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

◆ EraseAllContent()

StatusCode pandora::GeometryManager::EraseAllContent ( )
private

Erase all geometry manager content.

Definition at line 165 of file GeometryManager.cc.

Here is the caller graph for this function:

◆ GetDefaultHitTypeToGranularityMap()

GeometryManager::HitTypeToGranularityMap pandora::GeometryManager::GetDefaultHitTypeToGranularityMap ( ) const
private

Get the default hit type to granularity map.

Returns
the default hit type to granularity map

Definition at line 187 of file GeometryManager.cc.

◆ GetDetectorGapList()

const DetectorGapList & pandora::GeometryManager::GetDetectorGapList ( ) const
inline

Get the list of gaps in the active detector volume.

Returns
the list of gaps in the active detector volume

Definition at line 170 of file GeometryManager.h.

Here is the caller graph for this function:

◆ GetHitTypeGranularity()

Granularity pandora::GeometryManager::GetHitTypeGranularity ( const HitType  hitType) const

Get the granularity level specified for a given calorimeter hit type.

Parameters
hitTypethe calorimeter hit type
Returns
the granularity

Definition at line 74 of file GeometryManager.cc.

◆ GetLArTPC()

const LArTPC & pandora::GeometryManager::GetLArTPC ( ) const

If there is exactly one registered lar tpc instance, return it; else raise an exception.

Returns
the lar tpc instance

Definition at line 64 of file GeometryManager.cc.

◆ GetLArTPCMap()

const LArTPCMap & pandora::GeometryManager::GetLArTPCMap ( ) const
inline

Get the map from name to lar tpc parameters.

Returns
the map from name to lar tpc paramters

Definition at line 163 of file GeometryManager.h.

Here is the caller graph for this function:

◆ GetSubDetector() [1/2]

const SubDetector & pandora::GeometryManager::GetSubDetector ( const std::string &  subDetectorName) const

Get the sub detector corresponding to a specified name.

Parameters
subDetectorNamethe sub detector name
Returns
the sub detector

Definition at line 37 of file GeometryManager.cc.

◆ GetSubDetector() [2/2]

const SubDetector & pandora::GeometryManager::GetSubDetector ( const SubDetectorType  subDetectorType) const

Get the sub detector corresponding to a specified type. Will throw exception if there is not exactly one subdetector registered with the specified type.

Parameters
subDetectorTypethe sub detector type
Returns
the sub detector

Definition at line 49 of file GeometryManager.cc.

◆ GetSubDetectorMap()

const SubDetectorMap & pandora::GeometryManager::GetSubDetectorMap ( ) const
inline

Get the map from name to sub detector parameters.

Returns
the map from name to sub detector parameters

Definition at line 156 of file GeometryManager.h.

Here is the caller graph for this function:

◆ SetHitTypeGranularity()

StatusCode pandora::GeometryManager::SetHitTypeGranularity ( const HitType  hitType,
const Granularity  granularity 
)
private

Set the granularity level to be associated with a specified hit type.

Parameters
hitTypethe specified hit type
granularitythe specified granularity

Definition at line 208 of file GeometryManager.cc.

Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ PandoraApiImpl

friend class PandoraApiImpl
friend

Definition at line 151 of file GeometryManager.h.

Member Data Documentation

◆ m_detectorGapList

DetectorGapList pandora::GeometryManager::m_detectorGapList
private

List of gaps in the active detector volume.

Definition at line 146 of file GeometryManager.h.

◆ m_hitTypeToGranularityMap

HitTypeToGranularityMap pandora::GeometryManager::m_hitTypeToGranularityMap
private

The hit type to granularity map.

Definition at line 147 of file GeometryManager.h.

◆ m_larTPCMap

LArTPCMap pandora::GeometryManager::m_larTPCMap
private

Map from lar tpc volume id to lar tpc.

Definition at line 145 of file GeometryManager.h.

◆ m_pPandora

const Pandora* const pandora::GeometryManager::m_pPandora
private

The associated pandora object.

Definition at line 149 of file GeometryManager.h.

◆ m_subDetectorMap

SubDetectorMap pandora::GeometryManager::m_subDetectorMap
private

Map from sub detector name to sub detector.

Definition at line 143 of file GeometryManager.h.

◆ m_subDetectorTypeMap

SubDetectorTypeMap pandora::GeometryManager::m_subDetectorTypeMap
private

Map from sub detector type to sub detector.

Definition at line 144 of file GeometryManager.h.


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