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