The Gaudi Framework  master (181af51f)
Loading...
Searching...
No Matches
GPython.py
Go to the documentation of this file.
13
14theApp.TopAlg = ["RandomNumberAlg"]
15
16# Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
17MessageSvc = Service("MessageSvc")
18MessageSvc.OutputLevel = 3
19
20# --------------------------------------------------------------
21# Event related parameters
22# --------------------------------------------------------------
23theApp.EvtMax = 100
24theApp.EvtSel = "NONE"
25
26# --------------------------------------------------------------
27# Other Service Options
28# --------------------------------------------------------------
29# Histogram output file
30theApp.HistogramPersistency = "ROOT"
31
32NTSvc = Service("NTupleSvc")
33NTSvc.Output = ["FILE1 DATAFILE='NTuple.root' OPT='NEW' TYP='ROOT'"]
34HPSvc = Service("HistogramPersistencySvc")
35HPSvc.OutputFile = "histo.root"
36
37theApp.run(theApp.EvtMax)
38theApp.exit()
Base class for all services.
Definition Service.h:39