@@ -187,7 +187,7 @@ o2-sim -g pythia8 -t particle --configKeyValues "TriggerParticle.pdg=333;Trigger
187187Custom triggers can also be constructed by the user to provide unlimited flexibility in the trigger needs.
188188An external trigger function can be specified via command line arguments
189189```
190- o2-sim -g pythia8 -t external --extTrgFile path_to_trigger_macro.C --extTrgFunc "the_function(some, parameters)"
190+ o2-sim -g pythia8 -t external --configKeyValues 'TriggerExternal.fileName= path_to_trigger_macro.C;TriggerExternal.funcName= "the_function(some, parameters)"'
191191```
192192The function must comply with a simple protocol and return a lambda function defined as follows
193193```
@@ -205,7 +205,7 @@ To allow users to define triggers that go beyond the particle stack generated by
205205This allows the user to go deep into the core of the event generator, whenever this is possible.
206206For this reason, this is called a 'DeepTrigger'. A 'DeepTrigger' is attached to the simulation in the same way as a normal trigger
207207```
208- o2-sim -g pythia8 -t external --extTrgFile path_to_deep_trigger_macro.C --extTrgFunc "the_deep_function(some, parameters)"
208+ o2-sim -g pythia8 -t external --configKeyValues 'TriggerExternal.fileName= path_to_deep_trigger_macro.C;TriggerExternal.funcName= "the_deep_function(some, parameters)"'
209209```
210210In this case the function must comply with a similar, but different protocol than before and return a lambda function defined as follows
211211``` o2::eventgen::DeepTrigger the_deep_function()
@@ -227,8 +227,7 @@ Deep triggers is just a name to a new functionality that allows the user to defi
227227Here is an example of a deep trigger implementation in Pythia8.
228228
229229```
230- // usage: o2sim --trigger external --extTrgFile trigger_mpi.C
231- // options: --extTrgFunc "trigger_mpi()"
230+ // usage: o2sim --trigger external --configKeyValues 'TriggerExternal.fileName=trigger_mpi.C;TriggerExternal.funcName="trigger_mpi()"'
232231
233232#include "Generators/Trigger.h"
234233#include "Pythia8/Pythia.h"
@@ -294,8 +293,7 @@ Pythia8::UserHooks*
294293A new Pythia6 interface is provided via GeneratorPythia6. This complies with the o2::eventgen::Generator protocol, and hence the user is allowed to use all the trigger functionalities. The class can also be used for DeepTriggers as this modified macro shows.
295294
296295```
297- // usage: o2sim --trigger external --extTrgFile trigger_mpi.C
298- // options: --extTrgFunc "trigger_mpi()"
296+ // usage: o2sim --trigger external --configKeyValues "TriggerExternal.fileName=trigger_mpi.C;TriggerExternal.funcName="trigger_mpi()"'
299297
300298#include "Generators/Trigger.h"
301299#include "Pythia8/Pythia.h"
0 commit comments