GenerateTriggerFcl: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 17: | Line 17: | ||
where <code>myInput.config</code> contains the list of the trigger paths you want to include in the fcl, together with their prescale factors if needed, <code>myTrigFcl.fcl</code> is the name of the file that will be generated by the script. | where <code>myInput.config</code> contains the list of the trigger paths you want to include in the fcl, together with their prescale factors if needed, <code>myTrigFcl.fcl</code> is the name of the file that will be generated by the script. | ||
==How to get the whole list of trigger paths available== | |||
The simplest way is to run the python script with the <code>help</code> option: | The simplest way is to run the python script with the <code>help</code> option: | ||
<pre> | <pre> | ||
python Trigger/scripts/genTriggerFcl.py -h | python Trigger/scripts/genTriggerFcl.py -h | ||
</pre> | </pre> |
Revision as of 21:49, 24 November 2018
Intro
How to generate and run a Trigger executable in the Offline
The Mu2e offline provides a dedicated python script Trigger/scripts/genTriggerFcl.py
that allows the user to generate an fcl starting from a trigger configuration file. Examples of config file can be found on Trigger/scripts/inputs
directory. The configuration file allows the user to set a general event prescale factor and also a second prescale factor that is applied to the good events.
caloCosmicMuon 10 100 tprDeMSeed cprDeMSeed ...
To run the python script you need to use the following command:
python Trigger/scripts/genTriggerFcl.py -c myInput.config -o myTrigFcl.fcl
where myInput.config
contains the list of the trigger paths you want to include in the fcl, together with their prescale factors if needed, myTrigFcl.fcl
is the name of the file that will be generated by the script.
How to get the whole list of trigger paths available
The simplest way is to run the python script with the help
option:
python Trigger/scripts/genTriggerFcl.py -h