The Gaudi Framework  v36r10 (fc05264c)
Properties Namespace Reference

Functions

def configure (gaudi=None)
 

Variables

 long = int
 (c) Copyright 1998-2020 CERN for the benefit of the LHCb and ATLAS collaborations # # This software is distributed under the terms of the Apache version 2 licence, # copied verbatim in the file "LICENSE". More...
 
 OutputLevel
 
 alg
 
 proxy = PropertyProxy()
 
 app = ApplicationMgr()
 
 TopAlg
 
 EvtMax
 
 EvtSel
 
 HistogramPersistency
 
 msgSvc = MessageSvc()
 
string __author__ = "Vanya BELYAEV ibelyaev@physics.syr.edu"
 
 SUCCESS = gaudimodule.SUCCESS
 
 gaudi = gaudimodule.AppMgr()
 
 props = alg.properties()
 
 v = props[p].value()
 

Function Documentation

◆ configure()

def Properties.configure (   gaudi = None)
the configurtaion of the job

Definition at line 41 of file Properties.py.

41 def configure(gaudi=None):
42  """the configurtaion of the job"""
43 
44  # create applictaion manager if not done yet
45  if not gaudi:
46  gaudi = gaudimodule.AppMgr()
47 
48  # read main configuration files
49  gaudi.config(files=["../options/Common.opts"])
50 
51  # private algorithm configuration options
52 
53  gaudi.TopAlg = ["PropertyAlg"]
54 
55  # test for the multiple inclusion of the same alg
56  gaudi.TopAlg += ["PropertyAlg", "PropertyProxy"]
57 
58  # test for the removal of an algorithm
59  gaudi.TopAlg.remove("PropertyAlg")
60 
61  # Set output level threshold
62  # (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
63  msgSvc = gaudi.service("MessageSvc")
64  msgSvc.OutputLevel = 3
65 
66  # event related parameters
67  gaudi.EvtSel = "NONE"
68  gaudi.HistogramPersistency = "NONE"
69 
70  # Algorithms Private Options
71 
72  alg = gaudi.algorithm("PropertyAlg")
73 
74  alg.OutputLevel = 3
75 
76  alg.Int = 101
77  alg.Double = 101.1e10
78  alg.String = "hundred one"
79  alg.Bool = False
80 
81  alg.IntArray = [1, 2, 3, 5]
82  alg.DoubleArray = [-11.0, 2.0, 3.3, 0.4e-03]
83  alg.StringArray = ["one", "two", "four"]
84  alg.BoolArray = [False, True, False]
85  alg.EmptyArray = []
86 
87  alg.PInt = 101
88  alg.PDouble = 101.0e5
89  alg.PString = "hundred one"
90  alg.PBool = True
91 
92  alg.PIntArray = [1, 2, 3, 5]
93  alg.PDoubleArray = [1.1, 2.0, 3.3]
94  alg.PStringArray = ["one", "two", "four"]
95  alg.PBoolArray = [True, False, True, False]
96 
97  proxy = gaudi.algorithm("PropertyProxy")
98  proxy.String = "This is set by the proxy"
99 
100  msgSvc.setDebug = ["EventLoopMgr"]
101  msgSvc.setVerbose = ["MsgTest"]
102 
103  return SUCCESS
104 
105 
106 # =============================================================================
107 
108 # =============================================================================
109 # The actual job excution
110 # =============================================================================

Variable Documentation

◆ __author__

string Properties.__author__ = "Vanya BELYAEV ibelyaev@physics.syr.edu"
private

Definition at line 24 of file Properties.py.

◆ alg

Properties.alg

Definition at line 34 of file Properties.py.

◆ app

Properties.app = ApplicationMgr()

Definition at line 77 of file Properties.py.

◆ EvtMax

Properties.EvtMax

Definition at line 87 of file Properties.py.

◆ EvtSel

Properties.EvtSel

Definition at line 88 of file Properties.py.

◆ gaudi

Properties.gaudi = gaudimodule.AppMgr()

Definition at line 115 of file Properties.py.

◆ HistogramPersistency

Properties.HistogramPersistency

Definition at line 89 of file Properties.py.

◆ long

Properties.long = int

(c) Copyright 1998-2020 CERN for the benefit of the LHCb and ATLAS collaborations # # This software is distributed under the terms of the Apache version 2 licence, # copied verbatim in the file "LICENSE".

# # In applying this licence, CERN does not waive the privileges and immunities # granted to it by virtue of its status as an Intergovernmental Organization # or submit itself to any jurisdiction. #

Python 2 compatibility

Definition at line 15 of file Properties.py.

◆ msgSvc

Properties.msgSvc = MessageSvc()

Definition at line 94 of file Properties.py.

◆ OutputLevel

Properties.OutputLevel

Definition at line 21 of file Properties.py.

◆ props

Properties.props = alg.properties()

Definition at line 121 of file Properties.py.

◆ proxy

Properties.proxy = PropertyProxy()

Definition at line 72 of file Properties.py.

◆ SUCCESS

Properties.SUCCESS = gaudimodule.SUCCESS

Definition at line 35 of file Properties.py.

◆ TopAlg

Properties.TopAlg

Definition at line 78 of file Properties.py.

◆ v

Properties.v = props[p].value()

Definition at line 124 of file Properties.py.

GaudiPython.Bindings.AppMgr
Definition: Bindings.py:872
Properties.configure
def configure(gaudi=None)
Definition: Properties.py:41