Esempio n. 1
0
#roifile=open("Lvl1Results.txt", "w")
#for i in xrange(0,repeat):
#    roifile.write(RoIs)
#roifile.write("\n")
#roifile.close()

#if "useBusyEventSetup" not in dir():
#    useBusyEventSetup=False

###    Setup  TrigConfigSvc      ###
####################################
from TrigConfigSvc.TrigConfigSvcConfig import SetupTrigConfigSvc
log.info("setting up TrigConfigSvc:")
svc = SetupTrigConfigSvc()
svc.hltXmlFile = 'hlttest.xml'
svc.l1topoXmlFile = 'TopoTestMenu.xml'
svc.l1XmlFile = 'l1test.xml'

try:
    svc.SetStates('xml')
except:
    log.warning('failed to set state of TrigConfigSvc ...')
try:
    svc.InitialiseSvc()
except:
    log.warning('failed to activate TrigConfigSvc ...')

ServiceMgr.TrigConfigSvc.OutputLevel = VERBOSE
ServiceMgr.HLTConfigSvc.OutputLevel = VERBOSE
ServiceMgr.LVL1ConfigSvc.OutputLevel = VERBOSE
Esempio n. 2
0
log.info("configuring LVL1 (L1Topo and CTP)")
from TriggerJobOpts.Lvl1TriggerOnlineGetter import Lvl1SimulationGetter
lvl1 = Lvl1SimulationGetter()

if globalflags.InputFormat() == 'pool':
    log.info("setting up transient BS")
    TriggerFlags.doTransientByteStream = True
    include("TriggerJobOpts/jobOfragment_TransBS_standalone.py")

# setup HLT
# initialize HLT config svc
from TrigConfigSvc.TrigConfigSvcConfig import SetupTrigConfigSvc
log.info('Creating the trigger configuration service wrapper')
svc = SetupTrigConfigSvc()
if TriggerFlags.readL1TopoConfigFromXML():
    svc.l1topoXmlFile = TriggerFlags.inputL1TopoConfigFile()  # given XML
else:
    svc.l1topoXmlFile = TriggerFlags.outputL1TopoConfigFile(
    )  # generated in python

if TriggerFlags.readLVL1configFromXML():
    svc.l1XmlFile = TriggerFlags.inputLVL1configFile()  # given XML
else:
    svc.l1XmlFile = TriggerFlags.outputLVL1configFile()  # generated in python

if TriggerFlags.readHLTconfigFromXML():
    svc.hltXmlFile = TriggerFlags.inputHLTconfigFile()  # given XML
else:
    svc.hltXmlFile = TriggerFlags.outputHLTconfigFile()  # generated in python

try: