3 __author__ =
'Javier Montejo'
4 __version__=
"$Revision: 1.00 $"
5 __doc__=
"Script generating lists of future unprescaled triggers when the package is built"
7 from TriggerMenuMT.TriggerAPI.TriggerAPI
import TriggerAPI
8 from TriggerMenuMT.TriggerAPI.TriggerEnums
import TriggerPeriod, TriggerType
11 TriggerAPI.setRelease(
"current")
12 with open(outfolder+
"/list_unprescaled1p8e34.py",
"w")
as outfile:
14 for triggerType
in TriggerType:
15 outfile.write(
to_nice_list( TriggerAPI.getUnprescaled(TriggerPeriod.future1p8e34, triggerType), triggerType.name) )
17 with open(outfolder+
"/list_unprescaled2e34.py",
"w")
as outfile:
19 for triggerType
in TriggerType:
20 outfile.write(
to_nice_list( TriggerAPI.getUnprescaled(TriggerPeriod.future2e34, triggerType), triggerType.name ) )
23 thestr =
"list_%s = [\n"%name
25 thestr +=
"\t'%s',\n"%i
30 thestr =
'# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration\n'
31 thestr +=
'# File was auto-generated with generateUnprescaledLists.py\n\n'
34 if __name__ ==
"__main__":
36 sys.exit(
main(sys.argv[1]) )