src/modules/GeometryBuilderGeant4/PassiveMaterialConstructionG4.hpp
Wrapper for the Geant4 Passive Material Construction. More…
Namespaces
Name |
---|
allpix Helper class to hold support layers for a detector model. |
Classes
Name | |
---|---|
class | allpix::PassiveMaterialConstructionG4 Constructs passive materials during Geant4 initialization. |
Detailed Description
Wrapper for the Geant4 Passive Material Construction.
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_PASSIVE_MATERIAL_CONSTRUCTION_H
#define ALLPIX_MODULE_PASSIVE_MATERIAL_CONSTRUCTION_H
#include <vector>
#include <G4LogicalVolume.hh>
#include <G4Material.hh>
#include "core/geometry/GeometryManager.hpp"
#include "PassiveMaterialModel.hpp"
namespace allpix {
class PassiveMaterialConstructionG4 {
public:
explicit PassiveMaterialConstructionG4(GeometryManager* geo_manager);
void registerVolumes();
void buildVolumes(const std::shared_ptr<G4LogicalVolume>& world_log);
private:
GeometryManager* geo_manager_;
std::vector<std::shared_ptr<PassiveMaterialModel>> passive_volumes_;
};
} // namespace allpix
#endif /* ALLPIX_MODULE_PASSIVE_MATERIAL_CONSTRUCTION_H */
Updated on 2024-12-13 at 08:31:37 +0000