Ejemplo n.º 1
0
print("## testing the include of a 'config' file of objKeyStore... [OK]")

print("")
print("#" * 80)
print("## testing 'baseline' RecExCommon...")
print("#" * 80)


def objReset():
    from RecExConfig.ObjKeyStore import objKeyStore
    objKeyStore.clear()


print("## loading 'test_rdo'...")
objReset()
objKeyStore.readInputFile("RecExConfig/test_rdo.py")
assert (objKeyStore.isInInputFile('LArRawChannelContainer', 'LArRawChannels'))
print("## loading 'test_rdo'... [OK]")

print("## loading 'test_esd'...")
objReset()
objKeyStore.readInputBackNav("RecExConfig/test_rdo.py")
objKeyStore.readInputFile("RecExConfig/test_esd.py")
assert (not objKeyStore.isInInputFile('LArRawChannelContainer',
                                      'LArRawChannels'))
assert (objKeyStore.isInInputFile('CaloCellContainer', 'AllCalo'))
assert (objKeyStore.isInInputBackNav('LArRawChannelContainer',
                                     'LArRawChannels'))
print("## loading 'test_esd'... [OK]")

print("## loading 'test_aod'...")
Ejemplo n.º 2
0
# the Tile, LAr and Calo detector description package
from AthenaCommon.GlobalFlags import jobproperties

jobproperties.Global.DetDescrVersion = 'ATLAS-CSC-01-00-00'

from AtlasGeoModel import SetGeometryVersion
from AtlasGeoModel import GeoModelInit

include("CaloIdCnv/CaloIdCnv_joboptions.py")
include("TileIdCnv/TileIdCnv_jobOptions.py")
include("LArDetDescr/LArDetDescr_joboptions.py")
include("TileConditions/TileConditions_jobOptions.py")

from RecExConfig.ObjKeyStore import objKeyStore

objKeyStore.readInputFile('RecExCond/OKS_streamRDO.py')

from CaloRec.CaloRecFlags import jobproperties

jobproperties.CaloRecFlags.doCaloCluster = False
jobproperties.CaloRecFlags.doEmCluster = False
jobproperties.CaloRecFlags.doCaloTopoCluster = False

include("CaloRec/CaloRec_jobOptions.py")

from CaloCondPhysAlgs.CaloCondPhysAlgsConf import CaloCellNoiseAlg

myNoise = CaloCellNoiseAlg("CaloCellNoiseAlg")
myNoise.doMC = True
myNoise.readNtuple = False
myNoise.doFit = True
include("LArConditionsCommon/LArConditionsCommon_comm_jobOptions.py")
include("TileConditions/TileConditions_jobOptions.py")

#Pool input
import AthenaPoolCnvSvc.ReadAthenaPool
# EventInfo Converters
include("EventAthenaPool/EventAthenaPool_joboptions.py")

# Pool input (Change this to use a different file)
from AthenaCommon.AppMgr import ServiceMgr
if not hasattr(ServiceMgr, 'EventSelector'):
    import AthenaPoolCnvSvc.ReadAthenaPool
ServiceMgr.EventSelector.InputCollections = PoolESDInput

from RecExConfig.ObjKeyStore import objKeyStore
objKeyStore.readInputFile('RecExPers/OKS_streamESD.py')

objKeyStore['inputFile'].removeItem(["CaloCellContainer#AllCalo"])
objKeyStore['inputFile'].removeItem(["CaloTowerContainer#CombinedTower"])
objKeyStore['inputFile'].removeItem(["CaloClusterContainer#EMTopoCluster430"])
objKeyStore['inputFile'].removeItem(
    ["CaloShowerContainer#EMTopoCluster430_Data"])
objKeyStore['inputFile'].removeItem(
    ["CaloCellLinkContainer#EMTopoCluster430_Link"])
objKeyStore['inputFile'].removeItem(
    ["CaloClusterContainer#CaloCalTopoCluster"])
objKeyStore['inputFile'].removeItem(["CaloShowerContainer#CaloCalTopoCluster"])
objKeyStore['inputFile'].removeItem(
    ["CaloCellLinkContainer#CaloCalTopoCluster"])
objKeyStore['inputFile'].removeItem(["CaloClusterContainer#CaloTopoCluster"])
objKeyStore['inputFile'].removeItem(["CaloShowerContainer#CaloTopoCluster"])