src/modules/DepositionGenerator/PrimariesReaderHepMC.hpp
Defines the HepMC generator file reader module for primary particles. More…
Namespaces
Name |
---|
allpix Helper class to hold support layers for a detector model. |
Classes
Name | |
---|---|
class | allpix::PrimariesReaderHepMC Reads particles from an input data file. |
Detailed Description
Defines the HepMC generator file reader module for primary particles.
Copyright: Copyright (c) 2022-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_PRIMARIES_DEPOSITION_MODULE_READER_HEPMC_H
#define ALLPIX_PRIMARIES_DEPOSITION_MODULE_READER_HEPMC_H
#include "PrimariesReader.hpp"
#include "HepMC3/GenEvent.h"
#include "HepMC3/Reader.h"
namespace allpix {
class PrimariesReaderHepMC : public PrimariesReader {
public:
explicit PrimariesReaderHepMC(const Configuration& config);
std::vector<Particle> getParticles() override;
private:
std::shared_ptr<HepMC3::Reader> reader_;
};
} // namespace allpix
#endif /* ALLPIX_PRIMARIES_DEPOSITION_MODULE_READER_HEPMC_H */
Updated on 2024-12-13 at 08:31:37 +0000