Skip to content

Commit

Permalink
Add empty external generator and adjust ini files (#1603)
Browse files Browse the repository at this point in the history
Co-authored-by: jesgum <[email protected]>
  • Loading branch information
jesgum and jesgum authored Apr 23, 2024
1 parent d9e1665 commit 2eb7908
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 0 deletions.
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();
}

0 comments on commit 2eb7908

Please sign in to comment.