All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Member Functions | List of all members
geo::GeometryBuilder Class Referenceabstract

Manages the extraction of LArSoft geometry information from ROOT. More...

#include <GeometryBuilder.h>

Inheritance diagram for geo::GeometryBuilder:
geo::GeometryBuilderStandard geo::GeometryBuilderWireless

Public Types

using Path_t = geo::GeoNodePath
 Identification of a single node in ROOT geometry. More...
 
template<typename GeoObj >
using GeoColl_t = std::vector< GeoObj >
 Type of direct collection of geometry objects. More...
 

Public Member Functions

virtual ~GeometryBuilder ()=default
 Virtual destructor. More...
 

Protected Member Functions

virtual Cryostats_t doExtractCryostats (Path_t &path)=0
 Custom implementation of extractCryostats(). More...
 
virtual AuxDets_t doExtractAuxiliaryDetectors (Path_t &path)=0
 Custom implementation of extractAuxiliaryDetectors(). More...
 

Cryostat information

using Cryostats_t = GeoColl_t< geo::CryostatGeo >
 Collection of cryostat information objects. More...
 
Cryostats_t extractCryostats (Path_t const &path)
 Looks for all cryostats under the specified path. More...
 

Auxiliary detector information

using AuxDets_t = GeoColl_t< geo::AuxDetGeo >
 Collection of auxiliary detector information objects. More...
 
AuxDets_t extractAuxiliaryDetectors (Path_t const &path)
 Looks for all auxiliary detectors under the specified path. More...
 

Detailed Description

Manages the extraction of LArSoft geometry information from ROOT.

The general interface only provides abstraction for the high level objects (cryostats and auxiliary detectors). The implementations can use a finer internal structure to address single subcomponents (e.g. wire planes).

Builder objects can be configured via FHiCL parameters.

This is an abstract interface.

Customization of geometry objects

The builders return collections of LArSoft geometry objects dynamically allocated. In this way, in future it will be possible to easily customize those objects for detector-specific needs. Note that as of LArSoft v08_06_00, no polymorphism is actually implemented.

Definition at line 52 of file GeometryBuilder.h.

Member Typedef Documentation

Collection of auxiliary detector information objects.

Definition at line 102 of file GeometryBuilder.h.

Collection of cryostat information objects.

Definition at line 79 of file GeometryBuilder.h.

template<typename GeoObj >
using geo::GeometryBuilder::GeoColl_t = std::vector<GeoObj>

Type of direct collection of geometry objects.

Definition at line 62 of file GeometryBuilder.h.

Identification of a single node in ROOT geometry.

Definition at line 58 of file GeometryBuilder.h.

Constructor & Destructor Documentation

virtual geo::GeometryBuilder::~GeometryBuilder ( )
virtualdefault

Virtual destructor.

Member Function Documentation

virtual AuxDets_t geo::GeometryBuilder::doExtractAuxiliaryDetectors ( Path_t path)
protectedpure virtual

Custom implementation of extractAuxiliaryDetectors().

Implemented in geo::GeometryBuilderStandard.

virtual Cryostats_t geo::GeometryBuilder::doExtractCryostats ( Path_t path)
protectedpure virtual

Custom implementation of extractCryostats().

Implemented in geo::GeometryBuilderStandard.

AuxDets_t geo::GeometryBuilder::extractAuxiliaryDetectors ( Path_t const &  path)
inline

Looks for all auxiliary detectors under the specified path.

Parameters
pathpath pointing to the starting node
Returns
a list of fully constructed auxiliary detectors

The auxiliary detectors contain all their inner elements. The current node itself of the path is also considered as auxiliary detector candidate, then it is descended into.

Definition at line 113 of file GeometryBuilder.h.

114  { auto myPath = path; return doExtractAuxiliaryDetectors(myPath); }
BEGIN_PROLOG triggeremu_data_config_icarus settings PMTADCthresholds sequence::icarus_stage0_multiTPC_TPC physics sequence::icarus_stage0_EastHits_TPC physics sequence::icarus_stage0_WestHits_TPC physics producers purityana0 caloskimCalorimetryCryoE physics caloskimCalorimetryCryoW physics path
virtual AuxDets_t doExtractAuxiliaryDetectors(Path_t &path)=0
Custom implementation of extractAuxiliaryDetectors().
Cryostats_t geo::GeometryBuilder::extractCryostats ( Path_t const &  path)
inline

Looks for all cryostats under the specified path.

Parameters
pathpath pointing to the starting node
Returns
a list of fully constructed cryostats

The cryostats contain all their inner elements. The current node itself of the path is also considered as cryostat candidate, then it is descended into.

Definition at line 90 of file GeometryBuilder.h.

91  { auto myPath = path; return doExtractCryostats(myPath); }
virtual Cryostats_t doExtractCryostats(Path_t &path)=0
Custom implementation of extractCryostats().
BEGIN_PROLOG triggeremu_data_config_icarus settings PMTADCthresholds sequence::icarus_stage0_multiTPC_TPC physics sequence::icarus_stage0_EastHits_TPC physics sequence::icarus_stage0_WestHits_TPC physics producers purityana0 caloskimCalorimetryCryoE physics caloskimCalorimetryCryoW physics path

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