Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:20:03

0001 /*******************************************************************************
0002  * Copyright (c) The JETSCAPE Collaboration, 2018
0003  *
0004  * Modular, task-based framework for simulating all aspects of heavy-ion collisions
0005  * 
0006  * For the list of contributors see AUTHORS.
0007  *
0008  * Report issues at https://github.com/JETSCAPE/JETSCAPE/issues
0009  *
0010  * or via email to bugs.jetscape@gmail.com
0011  *
0012  * Distributed under the GNU General Public License 3.0 (GPLv3 or later).
0013  * See COPYING for details.
0014  ******************************************************************************/
0015 //Parton Gun
0016 
0017 #ifndef PGUN_H
0018 #define PGUN_H
0019 
0020 #include "HardProcess.h"
0021 #include "JetScapeLogger.h"
0022 #include "Pythia8/Pythia.h"
0023 
0024 using namespace Jetscape;
0025 
0026 class PGun : public HardProcess {
0027 
0028   static Pythia8::Pythia InternalHelperPythia;
0029 
0030 private:
0031   double fixed_pT;
0032   double parID;
0033 
0034   // Allows the registration of the module so that it is available to be used by the Jetscape framework.
0035   static RegisterJetScapeModule<PGun> reg;
0036 
0037 public:
0038   PGun();
0039   ~PGun();
0040 
0041   void InitTask();
0042   void Exec();
0043 };
0044 
0045 #endif // PGUN_H