The Gaudi Framework  master (37c0b60a)
NewInputWrite.py
Go to the documentation of this file.
1 
14 
15 from Configurables import Gaudi__Hive__FetchLeavesFromFile as FetchLeavesFromFile
16 from Configurables import Gaudi__RootCnvSvc as RootCnvSvc
17 from Configurables import GaudiPersistency
18 from Gaudi.Configuration import *
19 
20 # Output setup
21 # - DST
22 dst = CopyInputStream("NewRootDst")
23 dst.Output = "DATAFILE='PFN:NEWROOTIO.dst' SVC='Gaudi::RootCnvSvc' OPT='RECREATE'"
24 
25 FileCatalog(Catalogs=["xmlcatalog_file:NEWROOTIO.xml"])
26 
27 # Output Levels
28 MessageSvc(OutputLevel=VERBOSE)
29 IncidentSvc(OutputLevel=DEBUG)
30 RootCnvSvc(OutputLevel=INFO)
31 AlgExecStateSvc(OutputLevel=INFO)
32 
33 GaudiPersistency()
34 
35 esel = EventSelector(OutputLevel=DEBUG, PrintFreq=10, FirstEvent=1)
36 esel.Input = [
37  "DATAFILE='PFN:ROOTIO.2.dst' SVC='Gaudi::RootEvtSelector' OPT='READ'",
38 ]
39 
40 # Application setup
42 # - I/O
43 app.OutStream += [dst]
44 # - Algorithms
45 fetch = FetchLeavesFromFile("NewFetch")
46 app.TopAlg = [fetch]
47 # - Events
48 app.EvtMax = -1
49 app.HistogramPersistency = "NONE"
IncidentSvc
Default implementation of the IIncidentSvc interface.
Definition: IncidentSvc.h:48
AlgExecStateSvc
A service that keeps track of the execution state of Algorithm.
Definition: AlgExecStateSvc.h:26
CopyInputStream
Definition: CopyInputStream.cpp:23
Gaudi.Configuration
Definition: Configuration.py:1
MessageSvc
Definition: MessageSvc.h:40
ApplicationMgr
Definition: ApplicationMgr.h:57
EventSelector
Definition of class EventSelector.
Definition: EventSelector.h:63