src/modules/DepositionCosmics/DepositionCosmicsModule.hpp
Definition of DepositionCosmics module. More…
Namespaces
Name |
---|
allpix Helper class to hold support layers for a detector model. |
Classes
Name | |
---|---|
class | allpix::DepositionCosmicsModule Module to simulate the particles stemming from cosmics rays and showers incident on the setup. |
Detailed Description
Definition of DepositionCosmics 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_COSMICS_DEPOSITION_MODULE_H
#define ALLPIX_COSMICS_DEPOSITION_MODULE_H
#include "../DepositionGeant4/DepositionGeant4Module.hpp"
#include <mutex>
namespace allpix {
class DepositionCosmicsModule : public DepositionGeant4Module {
friend class CosmicsGeneratorActionG4;
public:
DepositionCosmicsModule(Configuration& config, Messenger* messenger, GeometryManager* geo_manager);
void finalizeThread() override;
void finalize() override;
private:
void initialize_g4_action() override;
static thread_local double cry_instance_time_simulated_;
std::mutex stats_mutex_;
double total_time_simulated_{};
};
} // namespace allpix
#endif /* ALLPIX_COSMICS_DEPOSITION_MODULE_H */
Updated on 2024-12-13 at 08:31:37 +0000