Skip to content

Commit

Permalink
Fix some formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Volkel committed Jun 30, 2024
1 parent 4601153 commit e2e179c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/generators/generatorscustom.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Implement your own generator

# Implement your own generator

Users can implement their own custom primary generator. To integrate it into an O2 simulation, it must at least derive from [`FairGenerator`](https://github.com/FairRootGroup/FairRoot/blob/master/base/sim/FairGenerator.h). However, the easiest to use O2-specific class and derive from ['Generator`](https://github.com/AliceO2Group/AliceO2/blob/dev/Generators/include/Generators/Generator.h) or even
Users can implement their own custom primary generator. To integrate it into an O2 simulation, it must at least derive from [`FairGenerator`](https://github.com/FairRootGroup/FairRoot/blob/master/base/sim/FairGenerator.h). However, the easiest to use O2-specific class and derive from [`Generator`](https://github.com/AliceO2Group/AliceO2/blob/dev/Generators/include/Generators/Generator.h) or even
from [`GeneratorTGenerator`](https://github.com/AliceO2Group/AliceO2/blob/dev/Generators/include/Generators/GeneratorTGenerator.h) and the usage of the latter two is recommended. It might be instructive to browse the [O2DPG repository](https://github.com/AliceO2Group/O2DPG) for some inspiration, checkout for instance
[this one](https://github.com/AliceO2Group/O2DPG/blob/master/MC/config/PWGDQ/external/generator/GeneratorCocktailPromptCharmoniaToMuonEvtGen_pp13TeV.C).

Expand All @@ -20,7 +20,7 @@ In addition, only particles with a HepMC status of 1 will be tracked (that was t

## Tweak existing generators

Of course, one can also derive from an already fully-functional generator implementations, for instance from [`GeneratorPythia8](https://github.com/AliceO2Group/AliceO2/blob/dev/Generators/include/Generators/GeneratorPythia8.h) as it is done [here](https://github.com/AliceO2Group/O2DPG/blob/master/MC/config/PWGLF/pythia8/generator_pythia8_longlived.C).
Of course, one can also derive from an already fully-functional generator implementations, for instance from [`GeneratorPythia8`](https://github.com/AliceO2Group/AliceO2/blob/dev/Generators/include/Generators/GeneratorPythia8.h) as it is done [here](https://github.com/AliceO2Group/O2DPG/blob/master/MC/config/PWGLF/pythia8/generator_pythia8_longlived.C).


## Troubleshooting
Expand Down

0 comments on commit e2e179c

Please sign in to comment.