Skip to content

crest trigger menu access python

Joerg Stelzer requested to merge stelzer/athena:main-crestTrigConfigSvc into main

This implements access to the trigger configuration database in python through CREST

For simplicity this uses the python request library rather than pycrest

TriggerMenuRW.py has been extended with parameters --use-crest and --crest-server, whit the second one defaulting to http://crest-04.cern.ch/api-v5.0

The output from accessing oracle directly

TriggerMenuRW.py --db TRIGGERDB_RUN3 --smk 3370 -w
TriggerMenuRW.py --db TRIGGERDB_RUN3 --l1psk 15049 -w
TriggerMenuRW.py --db TRIGGERDB_RUN3 --hltpsk 11179 -w

and and through crest

TriggerMenuRW.py --db TRIGGERDB_RUN3 --smk 3370 --use-crest -w
TriggerMenuRW.py --db TRIGGERDB_RUN3 --l1psk 15049 --use-crest -w
TriggerMenuRW.py --db TRIGGERDB_RUN3 --hltpsk 11179 --use-crest -w

has been checked to be identical. (i.e. the trigger config json files

cc @ballbroo, @fwinkl, @smh, @formica, @nozturk, @gunal

Merge request reports