The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
Properties Namespace Reference

Functions

 configure (gaudi=None)
 

Variables

 OutputLevel
 
 alg
 
 proxy = PropertyProxy()
 
 app = ApplicationMgr()
 
 TopAlg
 
 EvtMax
 
 EvtSel
 
 HistogramPersistency
 
 msgSvc = MessageSvc()
 
str __author__ = "Vanya BELYAEV ibelyaev@physics.syr.edu"
 (c) Copyright 1998-2019 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".
 
 SUCCESS = gaudimodule.SUCCESS
 
 gaudi = gaudimodule.AppMgr()
 
 props = alg.properties()
 
 v = props[p].value()
 

Function Documentation

◆ configure()

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

Definition at line 40 of file Properties.py.

40def 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.1e10
77 alg.String = "hundred one"
78 alg.Bool = False
79
80 alg.IntArray = [1, 2, 3, 5]
81 alg.DoubleArray = [-11.0, 2.0, 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.0e5
88 alg.PString = "hundred one"
89 alg.PBool = True
90
91 alg.PIntArray = [1, 2, 3, 5]
92 alg.PDoubleArray = [1.1, 2.0, 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__

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

(c) Copyright 1998-2019 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. #


Definition at line 23 of file Properties.py.

◆ alg

Properties.alg

Definition at line 29 of file Properties.py.

◆ app

Properties.app = ApplicationMgr()

Definition at line 75 of file Properties.py.

◆ EvtMax

Properties.EvtMax

Definition at line 85 of file Properties.py.

◆ EvtSel

Properties.EvtSel

Definition at line 86 of file Properties.py.

◆ gaudi

Properties.gaudi = gaudimodule.AppMgr()

Definition at line 113 of file Properties.py.

◆ HistogramPersistency

Properties.HistogramPersistency

Definition at line 87 of file Properties.py.

◆ msgSvc

Properties.msgSvc = MessageSvc()

Definition at line 92 of file Properties.py.

◆ OutputLevel

Properties.OutputLevel

Definition at line 16 of file Properties.py.

◆ props

Properties.props = alg.properties()

Definition at line 119 of file Properties.py.

◆ proxy

Properties.proxy = PropertyProxy()

Definition at line 70 of file Properties.py.

◆ SUCCESS

Properties.SUCCESS = gaudimodule.SUCCESS

Definition at line 34 of file Properties.py.

◆ TopAlg

Properties.TopAlg

Definition at line 76 of file Properties.py.

◆ v

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

Definition at line 122 of file Properties.py.