1 parent c182cb2 commit b0d8772Copy full SHA for b0d8772
2 files changed
MC/config/common/ini/pythia8_inel_difftuned.ini
@@ -0,0 +1,2 @@
1
+[GeneratorPythia8]
2
+config=${O2DPG_MC_CONFIG_ROOT}/MC/config/common/pythia8/generator/pythia8_inel_difftuned.cfg
MC/config/common/ini/tests/pythia8_inel_difftuned.C
@@ -0,0 +1,24 @@
+int External() {
+ std::string path{"o2sim_Kine.root"};
3
+
4
+ TFile file(path.c_str(), "READ");
5
+ if (file.IsZombie()) {
6
+ std::cerr << "Cannot open ROOT file " << path << "\n";
7
+ return 1;
8
+ }
9
10
+ auto tree = (TTree *)file.Get("o2sim");
11
+ if (!tree) {
12
+ std::cerr << "Cannot find tree o2sim in file " << path << "\n";
13
14
15
+ std::vector<o2::MCTrack> *tracks{};
16
+ tree->SetBranchAddress("MCTrack", &tracks);
17
18
+ auto nEvents = tree->GetEntries();
19
+ if (nEvents == 0) {
20
+ std::cerr << "No event of interest\n";
21
22
23
+ return 0;
24
+}
0 commit comments