g4system
Loading...
Searching...
No Matches
cadSystemFactory.h
Go to the documentation of this file.
1#pragma once
19
20// c++
21#include <unordered_map>
22#include <string>
23
24// g4system
26
38{
39public:
40 // inherit the base (const std::shared_ptr<GOptions>&) ctor
42
47 [[nodiscard]] std::string_view className() const override { return "G4CadSystemFactory"; }
48
49protected:
69 G4VSolid* buildSolid(const GVolume* s,
70 std::unordered_map<std::string, G4Volume*>* g4s) override;
71};
Builds a tessellated solid from CAD files using CADMesh.
std::string_view className() const override
Factory label used in logs.
G4ObjectsFactory(const std::shared_ptr< GOptions > &g)
Construct a factory using the global option set.
G4VSolid * buildSolid(const GVolume *s, std::unordered_map< std::string, G4Volume * > *g4s) override
Create (or fetch) a tessellated solid from a CAD file.
Definition buildSolid.cc:49
G4ObjectsFactory(const std::shared_ptr< GOptions > &g)
Construct a factory using the global option set.
Abstract factory that converts a GEMC DB GVolume into Geant4 objects.