File tree Expand file tree Collapse file tree 5 files changed +34
-30
lines changed
Expand file tree Collapse file tree 5 files changed +34
-30
lines changed Original file line number Diff line number Diff line change 11[GeneratorExternal]
22fileName = ${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]
66config = ${O2DPG_ROOT}/MC/config/PWGEM/pythia8/generator/pythia8_hf_cocktail.cfg
@@ -10,4 +10,4 @@ includePartonEvent=true
1010
1111[DecayerPythia8]
1212config[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
Original file line number Diff line number Diff line change @@ -10,4 +10,4 @@ includePartonEvent=true
1010
1111[DecayerPythia8]
1212config[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
Original file line number Diff line number Diff line change 11int 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}
Original file line number Diff line number Diff line change 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
253511:oneChannel = 1 0.0207000 0 12 -11 -411
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments