ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
python.AlgScheduler.AlgScheduler Class Reference
Collaboration diagram for python.AlgScheduler.AlgScheduler:

Public Member Functions

def __init__ (self, theSched=None, thePrec=None)
 

Public Attributes

 log
 
 SchedulerSvc
 
 PrecedenceSvc
 

Detailed Description

Definition at line 32 of file AlgScheduler.py.

Constructor & Destructor Documentation

◆ __init__()

def python.AlgScheduler.AlgScheduler.__init__ (   self,
  theSched = None,
  thePrec = None 
)
Setup Algorithm Scheduler

Definition at line 33 of file AlgScheduler.py.

33  def __init__(self,theSched=None,thePrec=None):
34  """Setup Algorithm Scheduler"""
35 
36  from AthenaCommon.AppMgr import ServiceMgr as svcMgr
37  from AthenaCommon.Constants import INFO
38 
39  from AthenaCommon.ConcurrencyFlags import jobproperties as jps
40  from AthenaCommon.Logging import logging
41 
42  self.log = logging.getLogger( 'AlgScheduler' )
43 
44  if (theSched is None) :
45  from GaudiHive.GaudiHiveConf import AvalancheSchedulerSvc
46  svcMgr += AvalancheSchedulerSvc()
47  self.SchedulerSvc = svcMgr.AvalancheSchedulerSvc
48  else :
49  svcMgr += theSched
50  self.SchedulerSvc = theSched
51 
52  if (thePrec is None) :
53  from GaudiHive.GaudiHiveConf import PrecedenceSvc
54  svcMgr += PrecedenceSvc()
55  self.PrecedenceSvc = svcMgr.PrecedenceSvc
56  else :
57  svcMgr += thePrec
58  self.PrecedenceSvc = thePrec
59 
60  self.SchedulerSvc.OutputLevel = INFO
61  self.PrecedenceSvc.OutputLevel = INFO
62  self.SchedulerSvc.CheckDependencies = True
63  self.SchedulerSvc.ThreadPoolSize = jps.ConcurrencyFlags.NumThreads()
64 
65  self.log.info("setting up " + self.SchedulerSvc.getFullName() + " with " + str(jps.ConcurrencyFlags.NumThreads()) + " threads")
66 
67 
68 #

Member Data Documentation

◆ log

python.AlgScheduler.AlgScheduler.log

Definition at line 42 of file AlgScheduler.py.

◆ PrecedenceSvc

python.AlgScheduler.AlgScheduler.PrecedenceSvc

Definition at line 55 of file AlgScheduler.py.

◆ SchedulerSvc

python.AlgScheduler.AlgScheduler.SchedulerSvc

Definition at line 47 of file AlgScheduler.py.


The documentation for this class was generated from the following file:
grepfile.info
info
Definition: grepfile.py:38
Constants
some useful constants -------------------------------------------------—
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
str
Definition: BTagTrackIpAccessor.cxx:11