Skip to content
Snippets Groups Projects
Commit cab79da8 authored by Tomasz Bold's avatar Tomasz Bold
Browse files

Progressing with L2 calo alg setup

parent 27d8083f
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ def TrigBSReadCfg( inputFlags ): ...@@ -9,7 +9,7 @@ def TrigBSReadCfg( inputFlags ):
""" """
Creates accumulator for BS reading Creates accumulator for BS reading
""" """
filenames=inputFlags.get("AthenaConfiguration.GlobalFlags.InputFiles") filenames = inputFlags.get("AthenaConfiguration.GlobalFlags.InputFiles")
acc = ComponentAccumulator() acc = ComponentAccumulator()
...@@ -110,7 +110,13 @@ def TrigBSReadCfg( inputFlags ): ...@@ -110,7 +110,13 @@ def TrigBSReadCfg( inputFlags ):
#conddb.addFolder( 'TDAQ', '/TDAQ/RunCtrl/SOR_Params' ) #conddb.addFolder( 'TDAQ', '/TDAQ/RunCtrl/SOR_Params' )
#acc.addService( conddb ) #acc.addService( conddb )
# creation of xAOD::EventInfo return acc
if __name__ == "__main__":
from AthenaConfiguration.ConfigFlags import ConfigFlagContainer
flags = ConfigFlagContainer()
flags.set("AthenaConfiguration.GlobalFlags.InputFiles", ["dummy.data"])
return acc acc = TrigBSReadCfg( flags )
acc.store( file( "test.pkl", "w" ) )
print "All OK"
def TrigConfigSvcMod(flags): def TrigConfigSvcMod( flags ):
from AthenaConfiguration.CfgLogMsg import cfgLogMsg from AthenaConfiguration.CfgLogMsg import cfgLogMsg
from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
acc = ComponentAccumulator() acc = ComponentAccumulator()
...@@ -17,3 +17,13 @@ def TrigConfigSvcMod(flags): ...@@ -17,3 +17,13 @@ def TrigConfigSvcMod(flags):
acc.addService( l1ConfigSvc ) acc.addService( l1ConfigSvc )
return acc return acc
if __name__ == "__main__":
from AthenaConfiguration.ConfigFlags import ConfigFlagContainer
flags = ConfigFlagContainer()
acc = TrigConfigSvcMod( flags )
acc = TrigConfigSvcMod( flags )
acc.store( file( "test.pkl", "w" ) )
print "All OK"
...@@ -45,7 +45,7 @@ l1 = acc.getEventAlgo( "L1Decoder" ) ...@@ -45,7 +45,7 @@ l1 = acc.getEventAlgo( "L1Decoder" )
from TrigUpgradeTest.TestUtils import applyMenu from TrigUpgradeTest.TestUtils import applyMenu
applyMenu( l1 ) applyMenu( l1 )
# here the menu starts
acc.addSequence( seqAND( "hltSteps"), sequenceName="hltTop" ) acc.addSequence( seqAND( "hltSteps"), sequenceName="hltTop" )
for step in range(1, 6): for step in range(1, 6):
acc.addSequence( parOR( "hltStep%d" % step), sequenceName="hltSteps" ) acc.addSequence( parOR( "hltStep%d" % step), sequenceName="hltSteps" )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment