src/modules/DepositionGenerator/DepositionGeneratorModule.hpp
Definition of the DepositionGenerator module. More…
Namespaces
Name |
---|
allpix Helper class to hold support layers for a detector model. |
Classes
Name | |
---|---|
class | allpix::DepositionGeneratorModule Module to read primary particles from MC generators. |
Detailed Description
Definition of the DepositionGenerator 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_GENERATOR_DEPOSITION_MODULE_H
#define ALLPIX_GENERATOR_DEPOSITION_MODULE_H
#include "../DepositionGeant4/DepositionGeant4Module.hpp"
#include "PrimariesReader.hpp"
namespace allpix {
class DepositionGeneratorModule : public DepositionGeant4Module {
public:
DepositionGeneratorModule(Configuration& config, Messenger* messenger, GeometryManager* geo_manager);
void initialize() override;
void run(Event* event) override;
private:
void initialize_g4_action() override;
// The file reader for primary particles
std::shared_ptr<PrimariesReader> reader_;
PrimariesReader::FileModel file_model_;
};
} // namespace allpix
#endif /* ALLPIX_GENERATOR_DEPOSITION_MODULE_H */
Updated on 2024-12-13 at 08:31:37 +0000