Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Generators/include/Generators/GeneratorHybrid.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,11 @@ class GeneratorHybrid : public Generator
Bool_t confSetter(const auto& gen);
template <typename T>
std::string jsonValueToString(const T& value);
static std::vector<std::shared_ptr<o2::eventgen::Generator>> const& getGenerators() { return gens; }

private:
o2::eventgen::Generator* currentgen = nullptr;
std::vector<std::shared_ptr<o2::eventgen::Generator>> gens;
static std::vector<std::shared_ptr<o2::eventgen::Generator>> gens;
const std::vector<std::string> generatorNames = {"extkinO2", "evtpool", "boxgen", "external", "hepmc", "pythia8", "pythia8pp", "pythia8hi", "pythia8hf", "pythia8powheg"};
std::vector<std::string> mInputGens;
std::vector<std::string> mGens;
Expand Down
2 changes: 2 additions & 0 deletions Generators/src/GeneratorHybrid.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ namespace o2
namespace eventgen
{

std::vector<std::shared_ptr<o2::eventgen::Generator>> GeneratorHybrid::gens;

GeneratorHybrid::GeneratorHybrid(const std::string& inputgens)
{
// This generator has trivial unit conversions
Expand Down