Skip to content

Commit 4eff422

Browse files
authored
MC/PWGEM: no forced b-decays for HF Cocktail (#1711)
* no forced b-decays * check for forced charm decays
1 parent 34f5498 commit 4eff422

File tree

5 files changed

+34
-30
lines changed

5 files changed

+34
-30
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[GeneratorExternal]
22
fileName = ${O2DPG_ROOT}/MC/config/PWGEM/external/generator/Generator_pythia8_forcedDecays.C
3-
funcName=GeneratePythia8ForcedDecays("411;421;431;4122;4232;4132;4332;511;521;531;5122;5132;5232;5332")
3+
funcName=GeneratePythia8ForcedDecays("411;421;431;4122;4232;4132;4332;")
44

55
[GeneratorPythia8]
66
config = ${O2DPG_ROOT}/MC/config/PWGEM/pythia8/generator/pythia8_hf_cocktail.cfg
@@ -10,4 +10,4 @@ includePartonEvent=true
1010

1111
[DecayerPythia8]
1212
config[0] = ${O2DPG_ROOT}/MC/config/common/pythia8/decayer/base.cfg
13-
config[1] = ${O2DPG_ROOT}/MC/config/PWGEM/pythia8/decayer/force_semileptonic.cfg
13+
config[1] = ${O2DPG_ROOT}/MC/config/PWGEM/pythia8/decayer/force_semileptonic_charm.cfg

MC/config/PWGEM/ini/Pythia8_Charm_Cocktail.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ includePartonEvent=true
1010

1111
[DecayerPythia8]
1212
config[0] = ${O2DPG_ROOT}/MC/config/common/pythia8/decayer/base.cfg
13-
config[1] = ${O2DPG_ROOT}/MC/config/PWGEM/pythia8/decayer/force_semileptonic.cfg
13+
config[1] = ${O2DPG_ROOT}/MC/config/PWGEM/pythia8/decayer/force_semileptonic_charm.cfg

MC/config/PWGEM/ini/tests/Pythia8_Beauty_Cocktail.C

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
int External()
22
{
3-
3+
44
std::string path{"o2sim_Kine.root"};
55
TFile file(path.c_str(), "READ");
66
if (file.IsZombie()) {
@@ -24,11 +24,11 @@ int External()
2424
if (pdg == -5){
2525
found_bbar = true;
2626
}
27-
if ( abs(pdg) == 511 || abs(pdg) == 521 || abs(pdg) == 531 || abs(pdg) == 5122 || abs(pdg) == 5132 || abs(pdg) == 5232 || abs(pdg) == 5332){
27+
if ( abs(pdg) == 411 || abs(pdg) == 421 || abs(pdg) == 431 || abs(pdg) == 4122 || abs(pdg) == 4232 || abs(pdg) == 4132 || abs(pdg) == 4332){
2828
int ifirstdaughter = track.getFirstDaughterTrackId();
2929
int ilastdaughter = track.getLastDaughterTrackId();
3030
if (ifirstdaughter == -1 || ilastdaughter == -1){
31-
std::cerr << "Found beauty hadron that does not have daughters" << "\n";
31+
std::cerr << "Found charm hadron that does not have daughters" << "\n";
3232
return 1;
3333
}
3434
bool found_electron = false;
@@ -47,7 +47,7 @@ int External()
4747
}
4848
}
4949
if (!found_electron){
50-
std::cerr << "Found beauty hadron that does not decay to electron" << "\n";
50+
std::cerr << "Found charm hadron that does not decay to electron" << "\n";
5151
return 1;
5252
}
5353
}
@@ -56,6 +56,6 @@ int External()
5656
std::cerr << "Found event without b-bbar pair" << "\n";
5757
return 1;
5858
}
59-
}
59+
}
6060
return 0;
6161
}

MC/config/PWGEM/pythia8/decayer/force_semileptonic.cfg renamed to MC/config/PWGEM/pythia8/decayer/force_semileptonic_beauty.cfg

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,3 @@
1-
### only semileptonic decays for charm
2-
### D+
3-
411:oneChannel = 1 0.087 0 -311 -11 12
4-
411:addChannel = 1 0.040 0 -321 211 -11 12
5-
411:addChannel = 1 0.037 0 -313 -11 12
6-
### D0
7-
421:oneChannel = 1 0.035 0 -321 -11 12
8-
421:addChannel = 1 0.022 0 -323 -11 12
9-
421:addChannel = 1 0.016 0 -321 111 -11 12
10-
421:addChannel = 1 0.014 0 -311 -211 -11 12
11-
### Ds
12-
431:oneChannel = 1 0.025 0 333 -11 12
13-
431:addChannel = 1 0.027 0 221 -11 12
14-
### Lambdac
15-
4122:oneChannel = 1 0.036 0 3122 -11 12
16-
### chi_{c}^{+}
17-
4232:oneChannel = 1 0.07 0 3322 -11 12
18-
### chi_{c}^{0}
19-
4132:oneChannel = 1 0.014 0 3312 -11 12
20-
### Omega_{c}
21-
4332:oneChannel = 1 0.01224 0 3334 -11 12
22-
231
### only semileptonic decays for beauty
242
### B0
253
511:oneChannel = 1 0.0207000 0 12 -11 -411
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
### only semileptonic decays for charm
2+
### D+
3+
411:oneChannel = 1 0.087 0 -311 -11 12
4+
411:addChannel = 1 0.040 0 -321 211 -11 12
5+
411:addChannel = 1 0.037 0 -313 -11 12
6+
### D0
7+
421:oneChannel = 1 0.035 0 -321 -11 12
8+
421:addChannel = 1 0.022 0 -323 -11 12
9+
421:addChannel = 1 0.016 0 -321 111 -11 12
10+
421:addChannel = 1 0.014 0 -311 -211 -11 12
11+
### Ds
12+
431:oneChannel = 1 0.025 0 333 -11 12
13+
431:addChannel = 1 0.027 0 221 -11 12
14+
### Lambdac
15+
4122:oneChannel = 1 0.036 0 3122 -11 12
16+
### chi_{c}^{+}
17+
4232:oneChannel = 1 0.07 0 3322 -11 12
18+
### chi_{c}^{0}
19+
4132:oneChannel = 1 0.014 0 3312 -11 12
20+
### Omega_{c}
21+
4332:oneChannel = 1 0.01224 0 3334 -11 12
22+
23+
# Correct OmegaC decay length (wrong in PYTHIA8 decay table) (mm/c)
24+
4332:tau0 = 0.08000000000
25+
# Correct Lb decay length (wrong in PYTHIA8 decay table)
26+
5122:tau0 = 4.41000e-01

0 commit comments

Comments
 (0)