Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HadronizationModule.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file HadronizationModule.h
1 /*******************************************************************************
2  * Copyright (c) The JETSCAPE Collaboration, 2018
3  *
4  * Modular, task-based framework for simulating all aspects of heavy-ion collisions
5  *
6  * For the list of contributors see AUTHORS.
7  *
8  * Report issues at https://github.com/JETSCAPE/JETSCAPE/issues
9  *
10  * or via email to bugs.jetscape@gmail.com
11  *
12  * Distributed under the GNU General Public License 3.0 (GPLv3 or later).
13  * See COPYING for details.
14  ******************************************************************************/
15 
16 #ifndef HADRONIZATIONMODULE_H
17 #define HADRONIZATIONMODULE_H
18 
19 #include "Hadronization.h"
20 
21 namespace Jetscape {
22 
23 template <typename Derived> class HadronizationModule : public Hadronization {
24 
25 public:
27 
28  virtual shared_ptr<Hadronization> Clone() const override {
29  auto ret = make_shared<Derived>(static_cast<const Derived &>(*this));
30  return ret;
31  }
32 };
33 
34 } // end namespace Jetscape
35 
36 #endif