Skip to content

Commit 1e8ccbc

Browse files
mpucciosawenzel
authored andcommitted
Fill PDG code database before event generation
1 parent b2c6158 commit 1e8ccbc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Generators/src/GeneratorFactory.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include <Generators/GeneratorHepMCParam.h>
3333
#endif
3434
#include <Generators/BoxGunParam.h>
35+
#include <Generators/PDG.h>
3536
#include <Generators/TriggerParticle.h>
3637
#include <Generators/TriggerExternalParam.h>
3738
#include <Generators/TriggerParticleParam.h>
@@ -77,6 +78,7 @@ void GeneratorFactory::setPrimaryGenerator(o2::conf::SimConfig const& conf, Fair
7778

7879
/** generators **/
7980

81+
o2::PDG::addParticlesToPdgDataBase();
8082
auto genconfig = conf.getGenerator();
8183
if (genconfig.compare("boxgen") == 0) {
8284
// a simple "box" generator configurable via BoxGunparam

0 commit comments

Comments
 (0)