Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v38r1p1 (ae26267b)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Properties Namespace Reference

Functions

def configure (gaudi=None)
 

Variables

 OutputLevel = 3,
 
 alg
 
int Int = 101,
 
int Int64 = 1 << 32,
 
 UInt64 = int(1 << 32),
 
float Double = 101.1e10,
 
string String = 'hundred "one"',
 
bool Bool = False,
 
list IntArray = [1, 2, 3, 5],
 
list Int64Array = [1 << 32],
 
list UInt64Array = [int(1 << 32)],
 
list DoubleArray = [-11.0, 2.0, 3.3, 0.4e-03, 1.0e-20, 1.0e20],
 
list StringArray = ["one", "two", "four"],
 
dictionary StringMap = {"one": "une"},
 
list BoolArray = [False, True, False],
 
list EmptyArray = [],
 
list DoubleArrayWithUnits
 
list DoubleArrayWithoutUnits = [1100000.0, -20.0, 33.0, 0.4],
 
int PInt = 101,
 
float PDouble = 101.0e5,
 
string PString = "hundred 'one'",
 
bool PBool = True,
 
list PIntArray = [1, 2, 3, 5],
 
list PDoubleArray = [1.1, 2.0, 3.3, 1.0e-20, 1.0e20],
 
list PStringArray = ["one", "two", "four"],
 
list PBoolArray = [True, False, True, False],
 
list IntPairArray = [(1, 2), (3, 4), (5, 6)],
 
list DoublePairArray = [(1.1, 2.1), (2.3, 4.5), (5.6, 6.7)],
 
 proxy
 
 app
 
 TopAlg
 
 EvtMax
 
 EvtSel
 
 HistogramPersistency
 
 msgSvc
 
 __author__
 (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". More...
 
 SUCCESS
 
 gaudi
 
 props
 
 v
 

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.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__

Properties.__author__
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

Definition at line 72 of file Properties.py.

◆ Bool

bool Properties.Bool = False,

Definition at line 36 of file Properties.py.

◆ BoolArray

list Properties.BoolArray = [False, True, False],

Definition at line 43 of file Properties.py.

◆ Double

float Properties.Double = 101.1e10,

Definition at line 34 of file Properties.py.

◆ DoubleArray

list Properties.DoubleArray = [-11.0, 2.0, 3.3, 0.4e-03, 1.0e-20, 1.0e20],

Definition at line 40 of file Properties.py.

◆ DoubleArrayWithoutUnits

list Properties.DoubleArrayWithoutUnits = [1100000.0, -20.0, 33.0, 0.4],

Definition at line 52 of file Properties.py.

◆ DoubleArrayWithUnits

list Properties.DoubleArrayWithUnits
Initial value:
1 = [
2  1.1 * units.m2,
3  -2.0 * units.cm,
4  3.3 * units.cm,
5  0.4e-03 * units.m,
6  ],

Definition at line 46 of file Properties.py.

◆ DoublePairArray

list Properties.DoublePairArray = [(1.1, 2.1), (2.3, 4.5), (5.6, 6.7)],

Definition at line 62 of file Properties.py.

◆ EmptyArray

list Properties.EmptyArray = [],

Definition at line 44 of file Properties.py.

◆ EvtMax

Properties.EvtMax

Definition at line 82 of file Properties.py.

◆ EvtSel

Properties.EvtSel

Definition at line 83 of file Properties.py.

◆ gaudi

Properties.gaudi

Definition at line 113 of file Properties.py.

◆ HistogramPersistency

Properties.HistogramPersistency

Definition at line 84 of file Properties.py.

◆ Int

int Properties.Int = 101,

Definition at line 31 of file Properties.py.

◆ Int64

int Properties.Int64 = 1 << 32,

Definition at line 32 of file Properties.py.

◆ Int64Array

list Properties.Int64Array = [1 << 32],

Definition at line 38 of file Properties.py.

◆ IntArray

list Properties.IntArray = [1, 2, 3, 5],

Definition at line 37 of file Properties.py.

◆ IntPairArray

list Properties.IntPairArray = [(1, 2), (3, 4), (5, 6)],

Definition at line 61 of file Properties.py.

◆ msgSvc

Properties.msgSvc

Definition at line 89 of file Properties.py.

◆ OutputLevel

int Properties.OutputLevel = 3,

Definition at line 16 of file Properties.py.

◆ PBool

bool Properties.PBool = True,

Definition at line 56 of file Properties.py.

◆ PBoolArray

list Properties.PBoolArray = [True, False, True, False],

Definition at line 60 of file Properties.py.

◆ PDouble

float Properties.PDouble = 101.0e5,

Definition at line 54 of file Properties.py.

◆ PDoubleArray

list Properties.PDoubleArray = [1.1, 2.0, 3.3, 1.0e-20, 1.0e20],

Definition at line 58 of file Properties.py.

◆ PInt

int Properties.PInt = 101,

Definition at line 53 of file Properties.py.

◆ PIntArray

list Properties.PIntArray = [1, 2, 3, 5],

Definition at line 57 of file Properties.py.

◆ props

Properties.props

Definition at line 119 of file Properties.py.

◆ proxy

Properties.proxy

Definition at line 67 of file Properties.py.

◆ PString

string Properties.PString = "hundred 'one'",

Definition at line 55 of file Properties.py.

◆ PStringArray

list Properties.PStringArray = ["one", "two", "four"],

Definition at line 59 of file Properties.py.

◆ String

string Properties.String = 'hundred "one"',

Definition at line 35 of file Properties.py.

◆ StringArray

list Properties.StringArray = ["one", "two", "four"],

Definition at line 41 of file Properties.py.

◆ StringMap

dictionary Properties.StringMap = {"one": "une"},

Definition at line 42 of file Properties.py.

◆ SUCCESS

Properties.SUCCESS

Definition at line 34 of file Properties.py.

◆ TopAlg

Properties.TopAlg

Definition at line 73 of file Properties.py.

◆ UInt64

Properties.UInt64 = int(1 << 32),

Definition at line 33 of file Properties.py.

◆ UInt64Array

list Properties.UInt64Array = [int(1 << 32)],

Definition at line 39 of file Properties.py.

◆ v

Properties.v

Definition at line 122 of file Properties.py.

Properties.configure
def configure(gaudi=None)
Definition: Properties.py:40