@@ -60,11 +60,6 @@ namespace eventgen
6060// using the configured GeneratorExternalParam. This makes the simulation parallelisation automatic
6161// on Hyperloop.
6262// To-do: Define the behaviour with ini configuration which are already definining a hybrid gen
63- //
64- // Note on GeneratorHybrid.num_workers: expanding to 8 sub-generators does not by itself raise
65- // the number of TBB workers that actually run them in parallel. This is controlled by
66- // the parameter GeneratorHybrid.num_workers. On Hyperloop this will be part
67- // of the standard train configuration
6863std::string buildHyperloopExternalHybridConfig (GeneratorExternalParam const & extparams)
6964{
7065 rapidjson::Document doc;
@@ -89,12 +84,10 @@ std::string buildHyperloopExternalHybridConfig(GeneratorExternalParam const& ext
8984 doc.AddMember (" generators" , generators, alloc);
9085 doc.AddMember (" fractions" , fractions, alloc);
9186
92- // The generated config file is deliberatelly left on disk for possible inspection after the process ran.
9387 std::string path = " hyperloop_exttohybrid_" + std::to_string (getpid ()) + " .json" ;
9488 std::ofstream ofs (path);
9589 if (!ofs.is_open ()) {
9690 LOG (fatal) << " Failed to open " << path << " for writing the Hyperloop hybrid generator configuration" ;
97- exit (1 );
9891 }
9992 rapidjson::OStreamWrapper osw (ofs);
10093 rapidjson::Writer<rapidjson::OStreamWrapper> writer (osw);
@@ -140,7 +133,7 @@ void GeneratorFactory::setPrimaryGenerator(o2::conf::SimConfig const& conf, Fair
140133
141134 /* * generators **/
142135
143- o2::O2DatabasePDG::addALICEParticles ( TDatabasePDG:: Instance ());
136+ o2::O2DatabasePDG::Instance (); // --> ALICE particles are added once in this call
144137 auto genconfig = conf.getGenerator ();
145138#if defined(GENERATORS_WITH_PYTHIA8) && defined(GENERATORS_WITH_HEPMC3)
146139 std::string hyperloopExtHybridConfigFile; // set when IS_HYPERLOOP is defined
0 commit comments