Skip to content

Commit d5ec8a5

Browse files
authored
[ALICE 3] Add generator and ini files for PbPb 5.52 TeV with more abundant Xi (#1973)
* Add configuration for PbPb 5.52TeV with more abundant Xi and Omegas * Update test
1 parent 47abb77 commit d5ec8a5

File tree

3 files changed

+659
-0
lines changed

3 files changed

+659
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
int External()
2+
{
3+
std::string path{"o2sim_Kine.root"};
4+
5+
TFile file(path.c_str(), "READ");
6+
if (file.IsZombie()) {
7+
std::cerr << "Cannot open ROOT file " << path << "\n";
8+
return 1;
9+
}
10+
11+
auto tree = (TTree *)file.Get("o2sim");
12+
if (!tree) {
13+
std::cerr << "Cannot find tree o2sim in file " << path << "\n";
14+
return 1;
15+
}
16+
17+
std::vector<o2::MCTrack> *tracks{};
18+
tree->SetBranchAddress("MCTrack", &tracks);
19+
auto nEvents = tree->GetEntries();
20+
int nInjected = 0;
21+
for (int i = 0; i < nEvents; i++) {
22+
tree->GetEntry(i);
23+
for (auto& track : *tracks) {
24+
auto pdgCode = std::fabs(track.GetPdgCode());
25+
if (pdgCode == 3312) {
26+
nInjected++;
27+
}
28+
}
29+
}
30+
31+
// Check if we are above typical Angantyr numbers
32+
if (nInjected < 5 * nEvents) {
33+
std::cerr << "Too few particles injected\n";
34+
return 1;
35+
}
36+
37+
return 0;
38+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[Diamond]
2+
width[2]=6.0
3+
4+
[GeneratorExternal]
5+
fileName=${O2DPG_MC_CONFIG_ROOT}/MC/config/ALICE3/pythia8/generator_pythia8_strangeness_gun_PbPb.C
6+
funcName=generatePYTHIA()
7+
8+
[GeneratorPythia8]
9+
config=${O2DPG_MC_CONFIG_ROOT}/MC/config/ALICE3/pythia8/generator/pythia8_PbPb.cfg

0 commit comments

Comments
 (0)