/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FastSimulation/SimplifiedGeometryPropagator/interface/Decayer.h
58 строк
1 KB
Kevin Pedro
silence decayer by default
06 дек 2025, 00:42
06 дек 2025, 00:42
1f2fb64
Код
Авторство
О чём код?
#ifndef FASTSIM_DECAYER_H #define FASTSIM_DECAYER_H #include <memory> #include <vector> /////////////////////////////////////////////// // Author: L. Vanelderen // Date: 13 May 2014 // // Revision: Class structure modified to match SimplifiedGeometryPropagator // S. Kurz, 29 May 2017 ////////////////////////////////////////////////////////// namespace gen { class P8RndmEngine; typedef std::shared_ptr<P8RndmEngine> P8RndmEnginePtr; } // namespace gen namespace CLHEP { class HepRandomEngine; } namespace Pythia8 { class Pythia; } namespace fastsim { class Particle; //! Implementation of non-stable particle decays. /*! Inspired by method Pythia8Hadronizer::residualDecay() in GeneratorInterface/Pythia8Interface/src/Py8GunBase.cc */ class Decayer { public: //! Default Constructor. Decayer(bool verbose); //! Default destructor. ~Decayer(); //! Decay particle using pythia. /*! \param particle The particle that should be decayed. \param secondaries The decay products. \param engine The Random Engine. */ void decay(const Particle& particle, std::vector<std::unique_ptr<Particle> >& secondaries, CLHEP::HepRandomEngine& engine) const; private: std::unique_ptr<Pythia8::Pythia> pythia_; //!< Instance of pythia gen::P8RndmEnginePtr pythiaRandomEngine_; //!< Instance of pythia Random Engine }; } // namespace fastsim #endif