Пример #1
0
    def _apply_cfg(self):
        cfg = self.cfgopts[:]

        self.acf['FilesInput'] = self.input_files[:]

        from AthenaCommon.AthenaCommonFlags import jobproperties as jp
        acf = jp.AthenaCommonFlags
        for k, v in self.acf.iteritems():
            getattr(acf, k).set_Value_and_Lock(v)

        from RecExConfig.RecFlags import rec
        for k, v in self.rec.iteritems():
            globals()[k] = False  # FIXME: backward compat...
            getattr(rec, k).set_Value_and_Lock(v)

        rec.AutoConfiguration = cfg
        import RecExConfig.AutoConfiguration as auto
        if (self.is_rdo() or self.is_esd() or self.is_aod() or self.is_tag()):
            # FIXME: autocfg fails when input is Stream1-evgen !
            return auto.ConfigureFromListOfKeys(rec.AutoConfiguration())
        else:
            from AthenaCommon.AppMgr import ServiceMgr as svcMgr
            import AthenaPoolCnvSvc.ReadAthenaPool
            svcMgr.EventSelector.InputCollections = acf.FilesInput()
Пример #2
0
#---------------------------------------------------------------------------------#

# Make sure PerfMon is off
include( "PerfMonGPerfTools/DisablePerfMon_jobOFragment.py" )

# Input file
dataFile = "/afs/cern.ch/atlas/project/rig/referencefiles/MC/valid1.110401.PowhegPythia_P2012_ttbar_nonallhad.e3099_s2578/RDO.04919495._000958.pool.root.1"

from AthenaCommon.AthenaCommonFlags  import athenaCommonFlags
athenaCommonFlags.FilesInput=[dataFile,dataFile]

# AutoConfiguration
from RecExConfig.RecFlags import rec
rec.AutoConfiguration = ['everything']
import RecExConfig.AutoConfiguration as auto
auto.ConfigureFromListOfKeys(rec.AutoConfiguration())

from RecExConfig.ObjKeyStore import objKeyStore, CfgKeyStore
from PyUtils.MetaReaderPeeker import convert_itemList
objKeyStore.addManyTypesInputFile(convert_itemList(layout = '#join'))

#---------------------------------------------------------------------------------#
# Detector Description
from AtlasGeoModel import SetGeometryVersion
from AtlasGeoModel import GeoModelInit

from LArGeoAlgsNV.LArGeoAlgsNVConf import LArDetectorToolNV
from TileGeoModel.TileGeoModelConf import TileDetectorTool

ServiceMgr.GeoModelSvc.DetectorTools += [ LArDetectorToolNV(ApplyAlignments = True, GeometryConfig = "RECO"),
                                          TileDetectorTool(GeometryConfig = "RECO")
Пример #3
0
#         exec 'RecExCommonAlgs["%s"] = %s' % (o,o)
#      for o in [ o for o in RecExCommonAlgs.keys() if not o in varInit ]:
#         exec '%s = False' % (o)

# merge Algs flag with the other flags for future reference
RecExCommonFlags.update(AthenaCommonFlags)
RecExCommonFlags.update(RecExCommonAlgs)

#FilesInput() triggers full auto-configuration. Only for a transition period.
if len(athenaCommonFlags.FilesInput()) > 0:
    logRecExCommon_flags.info(
        "Full auto-configuration has been triggered by FilesInput()")
    rec.AutoConfiguration.append('everything')

#Optional auto-configuration
if len(rec.AutoConfiguration()) > 0:
    from RecExConfig.AutoConfiguration import ConfigureFromListOfKeys
    ConfigureFromListOfKeys(rec.AutoConfiguration())
    include("RecExConfig/AutoConfigConsistencyCheck.py")

#special commisioning job options
if rec.Commissioning():
    include("RecExCommission/RecExCommission.py")

if rec.triggerStream().startswith('express'):
    logRecExCommon_flags.info('Disabling track slimming for express stream.')
    include("RecJobTransforms/NoTrackSlimming.py")

#Some special (monitoring) setting for Heavy Ions:
if rec.doHeavyIon():
    logRecExCommon_flags.info('Heavy Ion case: Calling HIEarlyIncludes.py')