GeometryCreator.h
Go to the documentation of this file.
1 #ifndef GEOMETRY_CREATOR_H
2 #define GEOMETRY_CREATOR_H 1
3 
4 #include "Api/PandoraApi.h"
5 
6 #include "Geometry/GeometryGAr.h"
7 
8 namespace gar {
9  namespace gar_pandora {
10 
12  {
13  public:
14 
15  class Settings
16  {
17  public:
18  Settings();
19  };
20 
21  GeometryCreator(const Settings &settings, const pandora::Pandora *const pPandora);
22 
24 
25  pandora::StatusCode CreateGeometry() const;
26 
27  private:
28  typedef std::map<pandora::SubDetectorType, PandoraApi::Geometry::SubDetector::Parameters> SubDetectorTypeMap;
29  typedef std::map<std::string, PandoraApi::Geometry::SubDetector::Parameters> SubDetectorNameMap;
30 
31  void SetMandatorySubDetectorParameters(SubDetectorTypeMap &subDetectorTypeMap) const;
32 
33  void SetAdditionalSubDetectorParameters(SubDetectorNameMap &subDetectorNameMap) const;
34 
35  void SetDefaultSubDetectorParameters(const gar::geo::LayeredCalorimeterData &inputParameters, const std::string &subDetectorName, const pandora::SubDetectorType subDetectorType, PandoraApi::Geometry::SubDetector::Parameters &parameters) const;
36 
37  const Settings m_settings; ///< The geometry creator settings
38  const pandora::Pandora &m_pPandora; ///< Address of the pandora object to create the geometry
39 
40  const geo::GeometryCore* fGeo; ///< Geometry provider
41  };
42  }
43 }
44 
45 #endif // #ifndef GEOMETRY_CREATOR_H
GeometryCreator(const Settings &settings, const pandora::Pandora *const pPandora)
std::string string
Definition: nybbler.cc:12
void SetAdditionalSubDetectorParameters(SubDetectorNameMap &subDetectorNameMap) const
Description of geometry of one entire detector.
Definition: GeometryCore.h:436
void SetDefaultSubDetectorParameters(const gar::geo::LayeredCalorimeterData &inputParameters, const std::string &subDetectorName, const pandora::SubDetectorType subDetectorType, PandoraApi::Geometry::SubDetector::Parameters &parameters) const
const pandora::Pandora & m_pPandora
Address of the pandora object to create the geometry.
void SetMandatorySubDetectorParameters(SubDetectorTypeMap &subDetectorTypeMap) const
const Settings m_settings
The geometry creator settings.
std::map< pandora::SubDetectorType, PandoraApi::Geometry::SubDetector::Parameters > SubDetectorTypeMap
General GArSoft Utilities.
std::map< std::string, PandoraApi::Geometry::SubDetector::Parameters > SubDetectorNameMap
const geo::GeometryCore * fGeo
Geometry provider.
art framework interface to geometry description
pandora::StatusCode CreateGeometry() const