diff --git a/MC/config/PWGLF/ini/GeneratorLFStrangenessInJets_gap4.ini b/MC/config/PWGLF/ini/GeneratorLFStrangenessInJets_gap4.ini new file mode 100644 index 000000000..b2e2057a3 --- /dev/null +++ b/MC/config/PWGLF/ini/GeneratorLFStrangenessInJets_gap4.ini @@ -0,0 +1,5 @@ +[GeneratorHybrid] +configFile=${O2DPG_MC_CONFIG_ROOT}/MC/config/common/external/generator/pythia8_inel_plus_jets_ropes_13p6TeV.json + +[DecayerPythia8] +config[0]=${O2DPG_MC_CONFIG_ROOT}/MC/config/common/pythia8/decayer/base.cfg diff --git a/MC/config/PWGLF/ini/tests/GeneratorLFStrangenessInJets_gap4.C b/MC/config/PWGLF/ini/tests/GeneratorLFStrangenessInJets_gap4.C new file mode 100644 index 000000000..9e5f6f85f --- /dev/null +++ b/MC/config/PWGLF/ini/tests/GeneratorLFStrangenessInJets_gap4.C @@ -0,0 +1,28 @@ +#include "TFile.h" +#include "TTree.h" +#include +#include +#include "SimulationDataFormat/MCTrack.h" + +int Hybrid() +{ + std::string path{"o2sim_Kine.root"}; + + TFile file(path.c_str(), "READ"); + if (file.IsZombie()) { + std::cerr << "Cannot open ROOT file " << path << "\n"; + return 1; + } + + auto tree = (TTree *)file.Get("o2sim"); + if (!tree) { + std::cerr << "Cannot find tree o2sim in file " << path << "\n"; + return 1; + } + + std::vector *tracks{}; + tree->SetBranchAddress("MCTrack", &tracks); + + std::cout << "Found " << tree->GetEntries() << " events." << std::endl; + return 0; +} diff --git a/MC/config/common/external/generator/pythia8_inel_plus_jets_ropes_13p6TeV.json b/MC/config/common/external/generator/pythia8_inel_plus_jets_ropes_13p6TeV.json new file mode 100644 index 000000000..80a650f1b --- /dev/null +++ b/MC/config/common/external/generator/pythia8_inel_plus_jets_ropes_13p6TeV.json @@ -0,0 +1,30 @@ +{ + "generators": [ + { + "name": "pythia8", + "config": { + "config": "${O2_ROOT}/share/Generators/egconfig/pythia8_inel.cfg", + "hooksFileName": "", + "hooksFuncName": "", + "includePartonEvent": false, + "particleFilter": "", + "verbose": 0 + } + }, + { + "name": "pythia8", + "config": { + "config": "${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGLF/pythia8/generator/pythia8_jet_ropes_136tev.cfg", + "hooksFileName": "", + "hooksFuncName": "", + "includePartonEvent": false, + "particleFilter": "", + "verbose": 0 + } + } + ], + "fractions": [ + 4, + 1 + ] +}