Skip to content

Commit 748b1b4

Browse files
committed
Fixing PDG numbering scheme for PDG codes
1 parent ff3b1ce commit 748b1b4

File tree

4 files changed

+38
-38
lines changed

4 files changed

+38
-38
lines changed

MC/config/PWGHF/external/generator/generator_pythia8_gaptriggered_hf.C

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public:
3434
mPartPdgToReplaceList = partPdgToReplaceList;
3535
mFreqReplaceList = freqReplaceList;
3636
// Ds1*(2700), Ds1*(2860), Ds3*(2860), Xic(3055)+, Xic(3080)+, Xic(3055)0, Xic(3080)0, LambdaC(2625), LambdaC(2595), LambdaC(2860), LambdaC(2880), LambdaC(2940), ThetaC(3100)
37-
mCustomPartPdgs = {30433, 40433, 437, 4315, 4316, 4325, 4326, 4124, 14122, 34122, 44122, 54122, 9422111};
37+
mCustomPartPdgs = {30433, 40433, 437, 4315, 4316, 4325, 4326, 4124, 14122, 24124, 24126, 4125, 9422111};
3838
mCustomPartMasses[30433] = 2.714f;
3939
mCustomPartMasses[40433] = 2.859f;
4040
mCustomPartMasses[437] = 2.860f;
@@ -44,9 +44,9 @@ public:
4444
mCustomPartMasses[4326] = 3.0772f;
4545
mCustomPartMasses[4124] = 2.62810f;
4646
mCustomPartMasses[14122] = 2.59225f;
47-
mCustomPartMasses[34122] = 2.8561f;
48-
mCustomPartMasses[44122] = 2.8816;
49-
mCustomPartMasses[54124] = 2.9396f;
47+
mCustomPartMasses[24124] = 2.8561f;
48+
mCustomPartMasses[24126] = 2.8816;
49+
mCustomPartMasses[4125] = 2.9396f;
5050
mCustomPartMasses[9422111] = 3.099f;
5151
mCustomPartWidths[30433] = 0.122f;
5252
mCustomPartWidths[40433] = 0.160f;
@@ -57,9 +57,9 @@ public:
5757
mCustomPartWidths[4326] = 0.0036f;
5858
mCustomPartWidths[4124] = 0.00052f;
5959
mCustomPartWidths[14122] = 0.0026f;
60-
mCustomPartWidths[34122] = 0.0676f;
61-
mCustomPartWidths[44122] = 0.0056f;
62-
mCustomPartWidths[54122] = 0.017f;
60+
mCustomPartWidths[24124] = 0.0676f;
61+
mCustomPartWidths[24126] = 0.0056f;
62+
mCustomPartWidths[4125] = 0.017f;
6363
mCustomPartWidths[9422111] = 0.0000083f;
6464
Print();
6565
}

MC/config/PWGHF/ini/GeneratorHF_D2H_ccbar_and_bbbar_gap5_LcResoTrigger.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
### The external generator derives from GeneratorPythia8.
33
[GeneratorExternal]
44
fileName=${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGHF/external/generator/generator_pythia8_gaptriggered_hf.C
5-
funcName=GeneratorPythia8GapTriggeredCharmAndBeauty(5, -1.5, 1.5, -1.5, 1.5, {34122, 44122, 54122, 9422111}, {{4122, 34122}, {4122, 44122}, {4122, 54122}, {4122, 9422111}}, {0.1, 0.1, 0.1, 0.1})
5+
funcName=GeneratorPythia8GapTriggeredCharmAndBeauty(5, -1.5, 1.5, -1.5, 1.5, {24124, 24126, 4125, 9422111}, {{4122, 24124}, {4122, 24126}, {4122, 4125}, {4122, 9422111}}, {0.1, 0.1, 0.1, 0.1})
66

77
[GeneratorPythia8]
88
config=${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGHF/pythia8/generator/pythia8_charmhadronic_with_decays_LcResoTrigger.cfg

MC/config/PWGHF/ini/tests/GeneratorHF_D2H_ccbar_and_bbbar_gap5_LcResoTrigger.C

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ int ExternalLc() {
77

88
// PDG replacements: Λc(4122) -> resonances
99
std::array<std::array<int, 2>, 4> pdgReplParticles = {
10-
std::array{4122, 34122}, // Λc -> Λc(2860)
11-
std::array{4122, 44122}, // Λc -> Λc(2880)
12-
std::array{4122, 54122}, // Λc -> Λc(2940)
10+
std::array{4122, 24124}, // Λc -> Λc(2860)
11+
std::array{4122, 24126}, // Λc -> Λc(2880)
12+
std::array{4122, 4125}, // Λc -> Λc(2940)
1313
std::array{4122, 9422111} // Λc -> Tc(3100)
1414
};
1515

@@ -22,15 +22,15 @@ int ExternalLc() {
2222
std::map<int,int> sumOrigReplacedParticles = {{4122,0}};
2323

2424
// Hadrons to check
25-
std::array<int, 5> checkPdgHadron{34122, 44122, 54122, 9422111, 5122};
25+
std::array<int, 5> checkPdgHadron{24124, 24126, 4125, 9422111, 5122};
2626

2727
// Correct decays
2828
std::map<int, std::vector<std::vector<int>>> checkHadronDecays{
29-
{34122, {{421, 2212}}},
30-
{44122, {{421, 2212}}},
31-
{54122, {{421, 2212}}},
32-
{9422111, {{413, 2212}}},
33-
{5122, {{421, 2212, -211}, {41221, -211}, {34122, -211}, {44122, -211}, {54122, -211}}}
29+
{24124, {{421, 2212}}},
30+
{24126, {{421, 2212}}},
31+
{4125, {{421, 2212}}},
32+
{9422111, {{413, 2212}}},
33+
{5122, {{421, 2212, -211}, {41221, -211}, {24124, -211}, {24126, -211}, {4125, -211}}}
3434
};
3535

3636
TFile file(path.c_str(), "READ");

MC/config/PWGHF/pythia8/generator/pythia8_charmhadronic_with_decays_LcResoTrigger.cfg

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -35,25 +35,25 @@ ParticleDecays:tau0Max 10.
3535
### id:all = name antiName spinType chargeType colType m0 mWidth mMin mMax tau0
3636

3737
### LambdaC(2860)
38-
34122:all = Lambda_c(2860)+ Lambda_c(2860)- 3 1 0 2.8561 0.0676 2.7 10. 0.
39-
34122:mayDecay = on
38+
24124:all = Lambda_c(2860)+ Lambda_c(2860)- 3 1 0 2.8561 0.0676 2.7 10. 0.
39+
24124:mayDecay = on
4040

4141
### LambdaC(2880)
42-
44122:all = Lambda_c(2880)+ Lambda_c(2880)- 5 1 0 2.8816 0.0056 2.85 10. 0.
43-
44122:mayDecay = on
42+
24126:all = Lambda_c(2880)+ Lambda_c(2880)- 5 1 0 2.8816 0.0056 2.85 10. 0.
43+
24126:mayDecay = on
4444

4545
### LambdaC(2940)
46-
54122:all = Lambda_c(2940)+ Lambda_c(2940)- 3 1 0 2.9396 0.020 2.9 10. 0.
47-
54122:mayDecay = on
46+
4125:all = Lambda_c(2940)+ Lambda_c(2940)- 3 1 0 2.9396 0.020 2.9 10. 0.
47+
4125:mayDecay = on
4848

4949
### TC(3100)
5050
9422111:all = Theta_c(3100) 3 0 0 3.099 0.0000083 2.95 10. 0.
5151
9422111:mayDecay = on
5252

5353
### turn off all charm resonances decays
54-
# 34122:onMode = off # LambdaC(2860)
55-
# 44122:onMode = off # LambdaC(2880)
56-
# 54122:onMode = off # LambdaC(2940)
54+
# 24124:onMode = off # LambdaC(2860)
55+
# 24126:onMode = off # LambdaC(2880)
56+
# 4125:onMode = off # LambdaC(2940)
5757
# 9422111:onMode = off # Theta_c(3100)
5858

5959
### turn off all beauty hadron decays
@@ -62,31 +62,31 @@ ParticleDecays:tau0Max 10.
6262
5122:onMode = off
6363

6464
### add LambdaC(2860)
65-
34122:oneChannel = 1 1 0 421 2212
66-
34122:onIfMatch = 421 2212
65+
24124:oneChannel = 1 1 0 421 2212
66+
24124:onIfMatch = 421 2212
6767

6868
### add LambdaC(2880)
69-
44122:oneChannel = 1 1 0 421 2212
70-
44122:onIfMatch = 421 2212
69+
24126:oneChannel = 1 1 0 421 2212
70+
24126:onIfMatch = 421 2212
7171

7272
### add LambdaC(2940)
73-
54122:oneChannel = 1 1 0 421 2212
74-
54122:onIfMatch = 421 2212
73+
4125:oneChannel = 1 1 0 421 2212
74+
4125:onIfMatch = 421 2212
7575

7676
### add ThetaC(3100)
7777
9422111:oneChannel = 1 1 0 413 2212
7878
9422111:onIfMatch = 413 2212
7979

8080
### add Lb
8181
5122:addChannel = 1 0.2 0 421 2212 -211 # Lb -> D0 p pi- non resonant
82-
5122:addChannel = 1 0.4 0 34122 -211 # Lb -> LambdaC(2860)+ pi-
83-
5122:addChannel = 1 0.25 0 44122 -211 # Lb -> LambdaC(2880)+ pi-
84-
5122:addChannel = 1 0.15 0 54122 -211 # Lb -> LambdaC(2940)+ pi-
82+
5122:addChannel = 1 0.4 0 24124 -211 # Lb -> LambdaC(2860)+ pi-
83+
5122:addChannel = 1 0.25 0 24126 -211 # Lb -> LambdaC(2880)+ pi-
84+
5122:addChannel = 1 0.15 0 4125 -211 # Lb -> LambdaC(2940)+ pi-
8585

8686
5122:onIfMatch = 421 2212 -211 # D0 p pi-
87-
5122:onIfMatch = 34122 -211 # LambdaC(2860)+ pi-
88-
5122:onIfMatch = 44122 -211 # LambdaC(2880)+ pi-
89-
5122:onIfMatch = 54122 -211 # LambdaC(2940)+ pi-
87+
5122:onIfMatch = 24124 -211 # LambdaC(2860)+ pi-
88+
5122:onIfMatch = 24126 -211 # LambdaC(2880)+ pi-
89+
5122:onIfMatch = 4125 -211 # LambdaC(2940)+ pi-
9090

9191
# Correct decay lengths (wrong in PYTHIA8 decay table)
9292
# Lb

0 commit comments

Comments
 (0)