Exemplo n.º 1
0
def remapHLTContainerNames():
    for containertype, renamelist in six.iteritems(HLT_Name_Changes):
        for run3name, run2name in renamelist:
            log.info("Remapping {} object SG Keys: {} --> {}".format(
                containertype, run3name, run2name))

            auxcontainertype = containertype.replace("Container",
                                                     "AuxContainer")
            if containertype == "xAOD::CaloClusterContainer":
                auxcontainertype = "xAOD::CaloClusterTrigAuxContainer"

            #AddressRemappingSvc.addInputRename(containertype,run3name,run2name)
            ars = AddressRemappingSvc.getAddressRemappingSvc()
            ars.TypeKeyOverwriteMaps += [
                '%s#%s->%s#%s' %
                (containertype, run3name, containertype, run2name)
            ]

            #AddressRemappingSvc.addInputRename(auxcontainertype,run3name+"Aux.",run2name+"Aux.")
            ars.TypeKeyOverwriteMaps += [
                '%s#%s->%s#%s' % (auxcontainertype, run3name + "Aux.",
                                  auxcontainertype, run2name + "Aux.")
            ]
Exemplo n.º 2
0
# the correct tag should be specified
from IOVDbSvc.CondDB import conddb
conddb.setGlobalTag("OFLCOND-SDR-BS7T-04-00")

#--------------------------------------------------------------
# Input options
#--------------------------------------------------------------
svcMgr.DoubleEventSelector.InputCollections = [ "/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/OverlayMonitoringRTT/PileupPremixing/22.0/v4/RDO.merged-pileup-MT.100events.pool.root" ]
svcMgr.SecondaryEventSelector.InputCollections  = [ "/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/OverlayMonitoringRTT/TestCase_xAODEventInfo.root" ]

#--------------------------------------------------------------
# Remapping Service
#--------------------------------------------------------------
from SGComps import AddressRemappingSvc
AddressRemappingSvc.addInputRename("xAOD::EventInfo", "EventInfo", "Sig_EventInfo")
AddressRemappingSvc.addInputRename("xAOD::EventAuxInfo", "EventInfoAux.", "Sig_EventInfoAux.")

#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
theApp.EvtMax = 100

#--------------------------------------------------------------
# Algorithms
#--------------------------------------------------------------
# Beam spot conditions
from AthenaCommon.AlgSequence import AthSequencer
condSeq = AthSequencer("AthCondSeq")
from IOVDbSvc.CondDB import conddb
conddb.addFolderSplitOnline("INDET", "/Indet/Onl/Beampos", "/Indet/Beampos", className="AthenaAttributeList")
Exemplo n.º 3
0
#--------------------------------------------------------------
# Input options
#--------------------------------------------------------------
svcMgr.DoubleEventSelector.InputCollections = [
    "/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/OverlayMonitoringRTT/PileupPremixing/22.0/v4/RDO.merged-pileup-MT.100events.pool.root"
]
svcMgr.SecondaryEventSelector.InputCollections = [
    "/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/OverlayMonitoringRTT/valid1.410000.PowhegPythiaEvtGen_P2012_ttbar_hdamp172p5_nonallhad.simul.HITS.e4993_s3091/HITS.10504490._000765.pool.root.1"
]

#--------------------------------------------------------------
# Remapping Service
#--------------------------------------------------------------
from SGComps import AddressRemappingSvc
AddressRemappingSvc.addInputRename("EventInfo", "McEventInfo",
                                   "Sig_McEventInfo")

#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
theApp.EvtMax = 10

#--------------------------------------------------------------
# Algorithms
#--------------------------------------------------------------
# Beam spot conditions
from AthenaCommon.AlgSequence import AthSequencer
condSeq = AthSequencer("AthCondSeq")
from IOVDbSvc.CondDB import conddb
conddb.addFolderSplitOnline("INDET",
                            "/Indet/Onl/Beampos",
Exemplo n.º 4
0
from AthenaCommon.AppMgr import theApp

#--------------------------------------------------------------
# Load POOL support
#--------------------------------------------------------------
import AthenaPoolCnvSvc.ReadAthenaPool

include('DataModelRunTests/loadReadDicts.py')

#--------------------------------------------------------------
# Define input
#--------------------------------------------------------------
svcMgr.EventSelector.InputCollections = ["xaoddata.root"]

from SGComps import AddressRemappingSvc
AddressRemappingSvc.addInputRename('DMTest::CVec', 'cvec', 'cvec_renamed')
AddressRemappingSvc.addInputRename('DMTest::CAuxContainer', 'cvecAux.',
                                   'cvec_renamedAux.')

#--------------------------------------------------------------
# Define output
#--------------------------------------------------------------
# ItemList:
include("EventAthenaPool/EventAthenaPoolItemList_joboptions.py")
fullItemList += ["DMTest::CVec#cvec"]
fullItemList += ["xAOD::AuxContainerBase!#cvecAux."]
fullItemList += ["DMTest::C#cinfo"]
fullItemList += ["DMTest::CInfoAuxContainer#cinfoAux."]

from xAODEventFormatCnv.xAODEventFormatCnvConf import xAODMaker__EventFormatSvc
fmtsvc = xAODMaker__EventFormatSvc(FormatNames=[
svcMgr.DoubleEventSelector.InputCollections = [
    data_dir +
    "/OverlayMonitoringRTT/PileupPremixing/22.0/RDO.merged-pileup-MT.unittest.pool.root"
]
svcMgr.DoubleEventSelector.OutputLevel = DEBUG
svcMgr.SecondaryEventSelector.InputCollections = [
    data_dir +
    "/OverlayMonitoringRTT/valid1.410000.PowhegPythiaEvtGen_P2012_ttbar_hdamp172p5_nonallhad.simul.HITS.e4993_s3091/HITS.10504490._000765.pool.root.1"
]
svcMgr.SecondaryEventSelector.OutputLevel = DEBUG

#--------------------------------------------------------------
# Remapping Service
#--------------------------------------------------------------
from SGComps import AddressRemappingSvc
AddressRemappingSvc.addInputRename("EventInfo", "McEventInfo",
                                   "Sig_McEventInfo")
AddressRemappingSvc.addInputRename("McEventCollection", "TruthEvent",
                                   "Sig_TruthEvent")
AddressRemappingSvc.addInputRename("RecoTimingObj", "EVNTtoHITS_timings",
                                   "Sig_EVNTtoHITS_timings")
svcMgr.AddressRemappingSvc.OutputLevel = DEBUG

#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
theApp.EvtMax = 10

#--------------------------------------------------------------
# Algorithms
#--------------------------------------------------------------
from AthenaCommon import CfgGetter
Exemplo n.º 6
0
include( "TileIdCnv/TileIdCnv_jobOptions.py" )
include( "LArDetDescr/LArDetDescr_joboptions.py" )
try:
    import MagFieldServices.SetupField
except:
    filterHitLog.warning("C++ magnetic field not available in this release.")
    include( "BFieldAth/BFieldAth_jobOptions.py" )
#--------------------------------------------------------------
# LarHit filter algorithm
#--------------------------------------------------------------
from LArDigitization.LArDigitizationConf import LArHitFilter
LArHitFilter = LArHitFilter("LArHitFilter")
topSequence += LArHitFilter
try:
    from SGComps import AddressRemappingSvc
    AddressRemappingSvc.addInputRename("LArHitContainer","LArHitEMB" ,"LArHitEMBOLD")
    AddressRemappingSvc.addInputRename("LArHitContainer","LArHitEMEC","LArHitEMECOLD")
    AddressRemappingSvc.addInputRename("LArHitContainer","LArHitFCAL","LArHitFCALOLD")
    AddressRemappingSvc.addInputRename("LArHitContainer","LArHitHEC" ,"LArHitHECOLD")

except:
    pass
#--------------------------------------------------------------
# McEventCollection filter algorithm
#--------------------------------------------------------------
if hasattr(runArgs,'TruthReductionScheme'):
    #--------------------------------------------------------------
    # Add aliases for input SimHit Collections (if possible)
    #--------------------------------------------------------------
    try:
        from SGComps import AddressRemappingSvc
Exemplo n.º 7
0
# Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration

include.block('EventOverlayJobTransforms/OverlayInput_jobOptions.py')

from AthenaCommon.DetFlags import DetFlags
from OverlayCommonAlgs.OverlayFlags import overlayFlags

#-------------------------
# Remapping Service
#-------------------------
from SGComps import AddressRemappingSvc
if overlayFlags.processLegacyEventInfo():
    AddressRemappingSvc.addInputRename('EventInfo', 'McEventInfo',
                                       'Sig_McEventInfo')
else:
    AddressRemappingSvc.addInputRename('xAOD::EventAuxInfo', 'EventInfoAux.',
                                       'Sig_EventInfoAux.')
    AddressRemappingSvc.addInputRename('xAOD::EventInfo', 'EventInfo',
                                       'Sig_EventInfo')

# Timings
AddressRemappingSvc.addInputRename('RecoTimingObj', 'EVNTtoHITS_timings',
                                   'Sig_EVNTtoHITS_timings')

# Truth
if DetFlags.overlay.Truth_on():
    AddressRemappingSvc.addInputRename('McEventCollection', 'TruthEvent',
                                       'Sig_TruthEvent')

    if 'TrackRecordCollection' in overlayFlags.optionalContainerMap():
        for collection in overlayFlags.optionalContainerMap(
Exemplo n.º 8
0
from AthenaCommon.AppMgr import theApp

#--------------------------------------------------------------
# Load POOL support
#--------------------------------------------------------------
import AthenaPoolCnvSvc.ReadAthenaPool

include('DataModelRunTests/loadReadDicts.py')

#--------------------------------------------------------------
# Define input
#--------------------------------------------------------------
svcMgr.EventSelector.InputCollections = ["xaoddata.root"]

from SGComps import AddressRemappingSvc
AddressRemappingSvc.addInputRename('DMTest::CVec', 'cvec', 'cvec_renamed')
AddressRemappingSvc.addInputRename('DMTest::CAuxContainer', 'cvecAux.',
                                   'cvec_renamedAux.')

AddressRemappingSvc.addInputRename('DMTest::CVec', 'cvec.dInt1',
                                   'cvec_renamed.dInt1_renamed')
AddressRemappingSvc.addInputRename('DMTest::C', 'cinfo.dInt1',
                                   'cinfo.dInt1_renamed')
AddressRemappingSvc.addInputRename('DMTest::C', 'cinfo.dInt1Base',
                                   'cinfo.dInt1_renamedBase')

#--------------------------------------------------------------
# Event related parameters
#--------------------------------------------------------------
theApp.EvtMax = 20