Esempio n. 1
0
     @author M.Frank
"""
__version__ = "$Id: BrunelOnline.py,v 1.25 2010/11/09 12:20:55 frankb Exp $"
__author__ = "Markus Frank <*****@*****.**>"

import os, sys
import Configurables as Configs
import Gaudi.Configuration as Gaudi
import GaudiKernel
from GaudiKernel.ProcessJobOptions import PrintOff, InstallRootLoggingHandler, logging
from Configurables import CondDB, GaudiSequencer, EventPersistencySvc, \
    HistogramPersistencySvc, EventLoopMgr, OutputStream, Gaudi__SerializeCnvSvc, \
    DstConf

#PrintOff(999)
InstallRootLoggingHandler(level=logging.CRITICAL)

processingType = 'DataTaking'

GaudiKernel.ProcessJobOptions._parser._parse_units(
    os.path.expandvars("$STDOPTS/units.opts"))
requirement = None

debug = 0


def dummy(*args, **kwd):
    pass


MSG_VERBOSE = 1
Esempio n. 2
0
            parser.error(s)
    else:
        # FIXME: is it really needed to set it to None if it is 0 or False?
        args.ncpus = None

    # configure the logging
    import logging
    from GaudiKernel.ProcessJobOptions import (InstallRootLoggingHandler,
                                               PrintOff)

    if args.old_opts: prefix = "// "
    else: prefix = "# "
    level = logging.INFO
    if args.debug:
        level = logging.DEBUG
    InstallRootLoggingHandler(prefix, level=level, with_time=args.debug)
    root_logger = logging.getLogger()

    # tcmalloc support
    if args.tcmalloc:
        args.preload.insert(0, os.environ.get("TCMALLOCLIB", "libtcmalloc.so"))
    # allow preloading of libraries
    if args.preload:
        preload = os.environ.get("LD_PRELOAD", "")
        if preload:
            preload = preload.replace(" ", ":").split(":")
        else:
            preload = []
        for libname in set(preload).intersection(args.preload):
            logging.warning(
                "Ignoring preload of library %s because it is "