Exemplo n.º 1
0
logAnaCommon_topOptions = logging.getLogger( 'AnalysisCommon_topOptions' )

from AthenaCommon.AlgSequence import AlgSequence
from AthenaCommon.AppMgr import ToolSvc,theApp,ServiceMgr
from AthenaCommon.AthenaCommonFlags  import athenaCommonFlags
from AthenaCommon.GlobalFlags  import globalflags
from AthenaCommon.BeamFlags import jobproperties
from RecExConfig.RecFlags import rec
from AthenaCommon.Resilience import treatException,protectedInclude

topSequence = AlgSequence()

import AthenaCommon.Debugging as _acdbg
if not _acdbg.DbgStage.value:
    try:
        topSequence.TimeOut=3600 * Units.s
        pass
    except Exception:
        logAnaCommon_topOptions.warning("could not set TimeOut (temporary)")
        pass
    pass
if rec.Production():
    AthenaCommon.Configurable.log.setLevel( WARNING )
    pass


# reduce amount of tracing from the most verbose
#to spot the most verbose jobo:
#  RecExCommon_links.sh
#  athena >! all.log
#grep "\-\ " all.log | awk {'print $2'} | sort | uniq -c | sort -n | tail -20
Exemplo n.º 2
0
    #raise RuntimeError("No outputHITSFile provided.")
    atlasG4log.info(
        'No outputHITSFile provided. This simulation job will not write out any HITS file.'
    )
    athenaCommonFlags.PoolHitsOutput = ""
    athenaCommonFlags.PoolHitsOutput.statusOn = False

## Write out runArgs configuration
atlasG4log.info('**** Transformation run arguments')
atlasG4log.info(str(runArgs))

from AthenaCommon.AlgSequence import AlgSequence
topSeq = AlgSequence()

## Set Overall per-Algorithm time-limit on the AlgSequence
topSeq.TimeOut = 43200 * Units.s

#==============================================================
# Job Configuration parameters:
#==============================================================
## Pre-exec
if hasattr(runArgs, "preExec"):
    atlasG4log.info("transform pre-exec")
    for cmd in runArgs.preExec:
        atlasG4log.info(cmd)
        exec(cmd)

## Pre-include
if hasattr(runArgs, "preInclude"):
    for fragment in runArgs.preInclude:
        include(fragment)
Exemplo n.º 3
0
        "Trk::KalmanFitter/" + VP1KalmanFitterDNA.name() + ";" +
        "Trk::GlobalChi2Fitter/" + VP1GlobalChi2Fitter.name())

#On a machine where the hostname does not indicate domain, pool will
#fail if trying to find nearest replica. In any case, dblookup.xml
#needs to be patched when running on real data:
include('DumpGeo/vp1FragmentFixDBReplica.py')

if vp1NoSortDBReplicas:
    PoolSvc = Service("PoolSvc")
    PoolSvc.SortReplicas = False

#Finally, the VP1 algorithm itself:
from DumpGeo.DumpGeoConf import DumpGeo
topSequence += DumpGeo()

DumpGeo.NoGui = vp1NoGui

if vp1CruiseTime > 0:
    DumpGeo.InitialCruiseMode = "EVENT"
    DumpGeo.InitialCruiseModePeriod = vp1CruiseTime

DumpGeo.InitiallyLoadedVP1Files = vp1CfgFiles
if (vp1Multinp):
    DumpGeo.MultipleFilesON = True
    DumpGeo.MFSourceDir = vp1Multinpsrc
    DumpGeo.MFLocalCopyDir = vp1Multinpcpy
    DumpGeo.MFAvailableLocalInputDirectories = vp1MultiAvailableSrcDirs

topSequence.TimeOut = 0