The Gaudi Framework  v36r1 (3e2fb5a8)
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 40 of file Properties.py.

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

Variable Documentation

◆ __author__

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

Definition at line 23 of file Properties.py.

◆ alg

Properties.alg

Definition at line 34 of file Properties.py.

◆ app

Properties.app = ApplicationMgr()

Definition at line 74 of file Properties.py.

◆ EvtMax

Properties.EvtMax

Definition at line 84 of file Properties.py.

◆ EvtSel

Properties.EvtSel

Definition at line 85 of file Properties.py.

◆ gaudi

Properties.gaudi = gaudimodule.AppMgr()

Definition at line 114 of file Properties.py.

◆ HistogramPersistency

Properties.HistogramPersistency

Definition at line 86 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 91 of file Properties.py.

◆ OutputLevel

Properties.OutputLevel

Definition at line 21 of file Properties.py.

◆ props

Properties.props = alg.properties()

Definition at line 120 of file Properties.py.

◆ proxy

Properties.proxy = PropertyProxy()

Definition at line 69 of file Properties.py.

◆ SUCCESS

Properties.SUCCESS = gaudimodule.SUCCESS

Definition at line 34 of file Properties.py.

◆ TopAlg

Properties.TopAlg

Definition at line 75 of file Properties.py.

◆ v

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

Definition at line 123 of file Properties.py.

GaudiPython.Bindings.AppMgr
Definition: Bindings.py:842
Properties.configure
def configure(gaudi=None)
Definition: Properties.py:40