Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ALICE3] Add empty external generator and adjust ini files to adhere to hyperloop workflow #1603

Merged
merged 1 commit into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions MC/config/ALICE3/ini/pythia8_ArAr.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
[Diamond]
width[2]=6.0

[GeneratorExternal]
fileName=${O2DPG_ROOT}/MC/config/ALICE3/pythia8/generator_pythia8_ALICE3.C
funcName=generator_pythia8_ALICE3()

[GeneratorPythia8]
config=${O2DPG_ROOT}/MC/config/ALICE3/pythia8/generator/pythia8_ArAr.cfg
4 changes: 4 additions & 0 deletions MC/config/ALICE3/ini/pythia8_KrKr.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
[Diamond]
width[2]=6.0

[GeneratorExternal]
fileName=${O2DPG_ROOT}/MC/config/ALICE3/pythia8/generator_pythia8_ALICE3.C
funcName=generator_pythia8_ALICE3()

[GeneratorPythia8]
config=${O2DPG_ROOT}/MC/config/ALICE3/pythia8/generator/pythia8_KrKr.cfg
4 changes: 4 additions & 0 deletions MC/config/ALICE3/ini/pythia8_OO.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
[Diamond]
width[2]=6.0

[GeneratorExternal]
fileName=${O2DPG_ROOT}/MC/config/ALICE3/pythia8/generator_pythia8_ALICE3.C
funcName=generator_pythia8_ALICE3()

[GeneratorPythia8]
config=${O2DPG_ROOT}/MC/config/ALICE3/pythia8/generator/pythia8_OO.cfg
4 changes: 4 additions & 0 deletions MC/config/ALICE3/ini/pythia8_PbPb.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
[Diamond]
width[2]=6.0

[GeneratorExternal]
fileName=${O2DPG_ROOT}/MC/config/ALICE3/pythia8/generator_pythia8_ALICE3.C
funcName=generator_pythia8_ALICE3()

[GeneratorPythia8]
config=${O2DPG_ROOT}/MC/config/ALICE3/pythia8/generator/pythia8_PbPb.cfg
4 changes: 4 additions & 0 deletions MC/config/ALICE3/ini/pythia8_XeXe.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
[Diamond]
width[2]=6.0

[GeneratorExternal]
fileName=${O2DPG_ROOT}/MC/config/ALICE3/pythia8/generator_pythia8_ALICE3.C
funcName=generator_pythia8_ALICE3()

[GeneratorPythia8]
config=${O2DPG_ROOT}/MC/config/ALICE3/pythia8/generator/pythia8_XeXe.cfg
31 changes: 31 additions & 0 deletions MC/config/ALICE3/pythia8/generator_pythia8_ALICE3.C
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

#if !defined(__CLING__) || defined(__ROOTCLING__)
#include "Pythia8/Pythia.h"
#include "FairGenerator.h"
#include "FairPrimaryGenerator.h"
#include "Generators/GeneratorPythia8.h"
#include "TRandom3.h"
#include "TParticlePDG.h"
#include "TDatabasePDG.h"
#include "TMath.h"
#include <cmath>
using namespace Pythia8;
#endif

// Default pythia8 minimum bias generator
// Please do not change

class GeneratorPythia8ALICE3 : public o2::eventgen::GeneratorPythia8
{
public:
/// Constructor
GeneratorPythia8ALICE3() {}

/// Destructor
~GeneratorPythia8ALICE3() = default;
};

FairGenerator *generator_pythia8_ALICE3()
{
return new GeneratorPythia8ALICE3();
}