src/modules/GeometryBuilderGeant4/GeometryBuilderGeant4Module.hpp
Definition of Geant4 geometry construction module. More…
Namespaces
Name |
---|
allpix Helper class to hold support layers for a detector model. |
Classes
Name | |
---|---|
class | allpix::GeometryBuilderGeant4Module Module to construct the Geant4 geometry from the internal geometry. |
Detailed Description
Definition of Geant4 geometry construction module.
Copyright: Copyright (c) 2017-2024 CERN and the Allpix Squared authors. This software is distributed under the terms of the MIT License, copied verbatim in the file “LICENSE.md”. In applying this license, CERN does not waive the privileges and immunities granted to it by virtue of its status as an Intergovernmental Organization or submit itself to any jurisdiction. SPDX-License-Identifier: MIT
Source code
#ifndef ALLPIX_MODULE_GEOMETRY_CONSTRUCTION_MODULE_H
#define ALLPIX_MODULE_GEOMETRY_CONSTRUCTION_MODULE_H
#include <memory>
#include <string>
#include "GeometryConstructionG4.hpp"
#include "PassiveMaterialConstructionG4.hpp"
#include "core/config/ConfigReader.hpp"
#include "core/config/Configuration.hpp"
#include "core/geometry/GeometryManager.hpp"
#include "core/messenger/Messenger.hpp"
#include "core/module/Module.hpp"
class G4RunManager;
namespace allpix {
class GeometryBuilderGeant4Module : public Module {
public:
GeometryBuilderGeant4Module(Configuration& config, Messenger* messenger, GeometryManager* geo_manager);
void initialize() override;
private:
GeometryManager* geo_manager_;
// Geant4 run manager is owned by this module
GeometryConstructionG4* geometry_construction_;
std::unique_ptr<G4RunManager> run_manager_g4_;
};
} // namespace allpix
#endif /* ALLPIX_MODULE_GEOMETRY_CONSTRUCTION_MODULE_H */
Updated on 2024-12-13 at 08:31:37 +0000