Ejemplo n.º 1
0
    def __init__(self,
                 streamName="Stream2",
                 fileName="HLT.root",
                 catalog="xmlcatalog_file:Catalog1.xml",
                 store=None):

        import AthenaPoolCnvSvc.WriteAthenaPool
        from AthenaCommon.AppMgr import ServiceMgr as svcMgr
        from PoolSvc.PoolSvcConf import PoolSvc
        svcMgr += PoolSvc()
        svcMgr.PoolSvc.WriteCatalog = catalog

        from AthenaPoolCnvSvc.AthenaPoolCnvSvcConf import AthenaPoolCnvSvc
        svcMgr += AthenaPoolCnvSvc()
        svcMgr.AthenaPoolCnvSvc.CommitInterval = 10

        from OutputStreamAthenaPool.OutputStreamAthenaPool import AthenaPoolOutputConditionStream
        self.stream = AthenaPoolOutputConditionStream(streamName)

        from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
        self.stream = AthenaPoolOutputStream(streamName)

        self.stream.OutputFile = fileName

        if store != None:
            self.stream.Store = store
        else:
            from StoreGate.StoreGateConf import StoreGateSvc
            self.stream.Store = StoreGateSvc("DetectorStore")

        TrigConditionStream.setItemList(self.stream)
Ejemplo n.º 2
0
# fix back the outut level

# at the end of the list partial buildin info dumper
from TrigSteeringTest.TrigSteeringTestConf import PartialEBDumper
peb = PartialEBDumper()
peb.OutputLevel = DEBUG
job += peb


####### from here goes AthenPool
import AthenaPoolCnvSvc.WriteAthenaPool
from AthenaCommon.AppMgr import ServiceMgr as svcMgr
svcMgr.PoolSvc.WriteCatalog = "xmlcatalog_file:Catalogue1.xml"

from AthenaPoolCnvSvc.AthenaPoolCnvSvcConf import AthenaPoolCnvSvc
svcMgr += AthenaPoolCnvSvc()
#svcMgr.AthenaPoolCnvSvc.OutputLevel = DEBUG
svcMgr.AthenaPoolCnvSvc.CommitInterval = 10;

from OutputStreamAthenaPool.OutputStreamAthenaPool import createOutputStream
stream = createOutputStream( "Stream1" )

#from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
#stream = AthenaPoolOutputStream( "Stream1" )

stream.OutputFile = "Result.root"
stream.ItemList += [ "HLT::HLTResult#HLTResult_L2", "HLT::HLTResult#HLTResult_EF" ]
stream.ItemList += [ "TrigRoiDescriptorCollection#HLT_initialRoI" ]

from StoreGate.StoreGateConf import StoreGateSvc
stream.Store = StoreGateSvc( "StoreGateSvc" )
Ejemplo n.º 3
0
                merRDOLog.warning('The AFP DetFlag is not supported in this release')
    if hasattr(runArgs, "FwdRegionOn"):
        if runArgs.FwdRegionOn:
            checkFwdRegionOn = getattr(DetFlags, 'FwdRegion_setOn', None)
            if checkFwdRegionOn is not None:
                checkFwdRegionOn()
            else:
                merRDOLog.warning('The FwdRegion DetFlag is not supported in this release')


#--------------------------------------------------------------
# Load POOL support
#--------------------------------------------------------------
from AthenaCommon.AppMgr import ServiceMgr
from AthenaPoolCnvSvc.AthenaPoolCnvSvcConf import AthenaPoolCnvSvc
ServiceMgr += AthenaPoolCnvSvc()

# Still the right setting?
ServiceMgr.AthenaPoolCnvSvc.PoolAttributes = [ "DEFAULT_BUFFERSIZE = '2048'" ]

import AthenaPoolCnvSvc.ReadAthenaPool

from CLIDComps.CLIDCompsConf import ClassIDSvc
ServiceMgr += ClassIDSvc()
include( "PartPropSvc/PartPropSvc.py" )

# load all possible converters for EventCheck
GeoModelSvc = Service( "GeoModelSvc" )
GeoModelSvc.IgnoreTagDifference=True

# set up all detector description stuff