DetectorFactory Class Reference

Ratpac-two: RAT::DetectorFactory Class Reference
Ratpac-two

Pure virtual class for defining parameterized geometries. More...

#include <DetectorFactory.hh>

Static Public Member Functions

static void DefineWithFactory (const std::string name, DBLinkPtr detector)
 Invokes DefineDetector on the DetectorFactory registered to name.
 
static void Register (const std::string name, DetectorFactory *factory)
 Registers a DetectorFactory under a name.
 

Protected Member Functions

virtual void DefineDetector (DBLinkPtr detector)=0
 

Static Protected Attributes

static std::map< const std::string, DetectorFactory * > fFactoryMap
 Map of registered DetectorFactories.
 

Detailed Description

Pure virtual class for defining parameterized geometries.

Author
Benjamin Land benla.nosp@m.nd10.nosp@m.0@ber.nosp@m.kele.nosp@m.y.edu

REVISION HISTORY:
2015-01-07 : B Land - Added doxygen header block

Extend to create and/or modify database entries related to a geometry (e.g. based on some parameterization) before the geometry is built. If the parameterization is stored in a database table, this makes it particularly easy to control the geometry with simple macro commands. Basic implementations should load a .geo file into the database and modify the fields that can't be defined static. DetectorFactory implementations should be registered in DetectorConstruction.cc

Member Function Documentation

◆ DefineDetector()

virtual void RAT::DetectorFactory::DefineDetector ( DBLinkPtr  detector)
protectedpure virtual

Override in subclasses to set up the DB GEO tables. Typically load in a template specifying constants and calculate necessary dynamic fields on the fly.


The documentation for this class was generated from the following files:
  • /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/geo/include/RAT/DetectorFactory.hh
  • /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/geo/src/DetectorFactory.cc