You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\page refrunSimExamplesTrigger_ImpactB_Pythia8 Example Trigger_ImpactB_Pythia8
3
+
/doxy -->
4
+
5
+
This is a simple simulation example showing how to run event simulation using the Pythia8 event generator in heavy-ion mode and use an external custom trigger.
6
+
The external trigger makes use of the `DeepTrigger` functionality to allow the user to access the internals of the event generator to define the trigger.
7
+
In this example, information about the impact parameter of the currently-generated Pythia8 heavy-ion event is used.
8
+
The trigger selection defines impact parameters to be accepted according to a min-max range that can be adjusted from the command line.
9
+
10
+
The definition and configuration of the external `DeepTrigger` is performed by the function `trigger_impactb_pythia8(double bMin = 0., double bMax = 20.)` defined in the macro `trigger_impactb_pythia8.macro`.
11
+
12
+
The macro file is specified via the argument of `--extTrgFile` whereas the specific function call to retrieve the configuration is specified via the argument of `--extTrgFunc`.
13
+
14
+
# WARNING
15
+
Using a trigger is not always the most efficient way to deal with event generation.
16
+
It is always advisable to find a way to bias the event-geneator process to save CPU time.
17
+
In this case, the selection of a specific impact-parameter range in Pythia8 can lead to
18
+
a large time spent in the event generation rather than in the simulation.
0 commit comments