Skip to content

Commit

Permalink
Merge pull request #565 from aborquez/aborquez/sexaquark
Browse files Browse the repository at this point in the history
Added HIJING + anti-sexaquark + anti-neutrons gen.
  • Loading branch information
gconesab authored Nov 30, 2023
2 parents 58dd501 + ec1b48b commit b97767d
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions MC/CustomGenerators/PWGLF/Hijing_Sexaquark.C
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
AliGenerator *GeneratorCustom(TString opt = "") {

// `opt` should be formatted as "<reaction_channel><mass_sexaquark>"
// - where <reaction_channel> should be replaced by a single-digit char from 'A' to 'H'
// - 'A' : AntiSexaquark + Neutron -> AntiLambda, K0
// - 'B' : AntiSexaquark + Neutron -> AntiLambda, K0, Pi-, Pi+
// - 'C' : AntiSexaquark + Neutron -> AntiProton, K0, K0, Pi+
// - 'D' : AntiSexaquark + Proton -> AntiLambda, K+
// - 'E' : AntiSexaquark + Proton -> AntiLambda, K+, Pi-, Pi+
// - 'F' : AntiSexaquark + Proton -> AntiProton, K+, K0, Pi+
// - 'G' : AntiSexaquark + Neutron -> Xi+, Pi-
// - 'H' : AntiSexaquark + Proton -> AntiProton, K+, K+, Pi0
// - and <mass_sexaquark> corresponds to the mass of the injected anti-sexaquark
// - we're interested in: 1.73, 1.8, 1.87, 1.94, 2.01
// examples of valid `opt`: "A1.8", "B1.73", "C2.01", etc.

/* Parse option string */

// default values
Char_t reaction_channel = 'A';
Double_t mass_sexaquark = 1.8; // GeV/c^2
if (opt != "") {
reaction_channel = opt(0);
mass_sexaquark = ((TString)opt(1, opt.Length())).Atof();
}

/* Initialize generators */

AliGenCocktail *ctl = (AliGenCocktail *)GeneratorCocktail("Hijing+AntiNeutron+AntiSexaquark");

AliGenHijing *hij = (AliGenHijing *)GeneratorHijing();
ctl->AddGenerator(hij, "Hijing", 1.);

AliGenerator *ani = GeneratorInjector(100, -2112, 1., 6., -0.8, 0.8);
ctl->AddGenerator(ani, "Injector (Anti-Neutron)", 1.);

AliGenSexaquarkReaction *sr = new AliGenSexaquarkReaction(20, mass_sexaquark, reaction_channel);
sr->SetPtRange(0., 5.); // GeV/c
sr->SetPhiRange(0., 2 * TMath::Pi()); // radians
sr->SetYRange(-0.8, 0.8);
sr->SetRadiusRange(5., 180.); // cm

ctl->AddGenerator(sr, Form("Anti-Sexaquark Interaction (Channel %c)", reaction_channel), 1.);

return ctl;
}

0 comments on commit b97767d

Please sign in to comment.