Commit 9bc06583 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

GaudiExamples: Fixed EvtCol{Write,Read}.py scripts

From: Marco Clemencic <marco.clemencic@cern.ch>


git-svn-id: svn+ssh://svn.cern.ch/reps/gaudi/Gaudi/branches/GAUDI/GAUDI_newpack@6747 53ecefc3-a64d-0410-9bdf-b8581fa3287e
parent 6766e99f
......@@ -6,6 +6,7 @@ Package manager : Marco Clemencic
- updated configuration
- translated options
- fixed dependencies
- Fixed EvtCol{Write,Read}.py scripts.
! 2011-12-09 - Marco Clemencic
- Rationalized structure:
......
......@@ -29,8 +29,6 @@ def configure( gaudi = None ) :
gaudi.DLLs += [ 'GaudiAlg' , 'RootHistCnv', ]
gaudi.ExtSvc += [ 'TagCollectionSvc/EvtTupleSvc' ]
gaudi.service('FileCatalog').Catalogs += ['xmlcatalog_file:EvtColsEx.xml']
evtSel = gaudi.evtSel()
evtSel.open( 'PFN:EvtTags1.root' ,
collection = 'Fill/COL1' ,
......@@ -46,7 +44,12 @@ def configure( gaudi = None ) :
# =============================================================================
if '__main__' == __name__ :
print __doc__
gaudi = GaudiPython.AppMgr( joboptions = 'GaudiPoolDbRoot.opts' )
# configuration (options)
from Configurables import GaudiPersistency, FileCatalog, ApplicationMgr
GaudiPersistency()
ApplicationMgr().ExtSvc.append(FileCatalog(Catalogs=['xmlcatalog_file:EvtColsEx.xml']))
# execution
gaudi = GaudiPython.AppMgr()
configure( gaudi )
gaudi.run(-1)
gaudi.exit()
......@@ -107,7 +107,7 @@ def configure( gaudi = None ) :
tagsWriter.EvtDataSvc = "EvtTupleSvc" ;
evtColSvc = gaudi.evtcolsvc()
evtColSvc.defineOutput( {'EVTTAGS' : 'PFN:EvtTags1.root'} , typ='POOL_ROOT' )
evtColSvc.defineOutput( {'EVTTAGS' : 'PFN:EvtTags1.root'} , typ='Gaudi::RootCnvSvc' )
evtColSvc.OutputLevel = 2
evtSel = gaudi.evtSel()
......@@ -122,7 +122,12 @@ def configure( gaudi = None ) :
# =============================================================================
if '__main__' == __name__ :
print __doc__
gaudi = GaudiPython.AppMgr( joboptions = 'GaudiPoolDbRoot.opts' )
# configuration (options)
from Configurables import GaudiPersistency, FileCatalog, ApplicationMgr
GaudiPersistency()
ApplicationMgr().ExtSvc.append(FileCatalog(Catalogs=['xmlcatalog_file:EvtColsEx.xml']))
# execution
gaudi = GaudiPython.AppMgr()
configure( gaudi )
gaudi.run(10000)
gaudi.exit()
......
......@@ -4,6 +4,6 @@
<argument name="use_temp_dir"><enumeral>true</enumeral></argument>
<argument name="reference"><text>refs/EvtColWrite.pyref</text></argument>
<argument name="prerequisites"><set>
<tuple><text>gaudiexamples.evtcolsex_prepare</text><enumeral>PASS</enumeral></tuple>
<tuple><text>gaudiexamples.evtcolsex.prepare</text><enumeral>PASS</enumeral></tuple>
</set></argument>
</extension>
......@@ -9,7 +9,7 @@
ApplicationMgr SUCCESS
====================================================================================================================================
Welcome to ApplicationMgr $Revision: 1.77 $
running on pclhcb55 on Wed Jan 6 17:34:53 2010
running on pcphlbc16 on Mon Dec 12 18:16:59 2011
====================================================================================================================================
ApplicationMgr INFO Application Manager Configured successfully
ApplicationMgr INFO Successfully loaded modules : GaudiAlg, RootHistCnv
......@@ -18,25 +18,21 @@ HistogramPersis... INFO Added successfully Conversion service:RootHistSvc
ApplicationMgr INFO Application Manager Initialized successfully
ApplicationMgr INFO Application Manager Started successfully
EvtTupleSvc INFO Added stream file:PFN:EvtTags1.root as EventSelector.DataStreamTool_1
PoolDbDatabaseCnv INFO Connect to existing Database file:PFN:EvtTags1.root as /EventSelector.DataStreamTool_1 for READ
RootDBase.open SUCCESS EvtTags1.root File version:52600
EventSelector INFO Stream:EventSelector.DataStreamTool_1 Def:DATAFILE='PFN:EvtTags1.root' TYP='POOL_ROOT' OPT='READ' SEL='binom==6' COLLECTION='Fill/COL1'
Gaudi::RootData... INFO Connect to existing Database file:PFN:EvtTags1.root as /EventSelector.DataStreamTool_1 for READ
EventSelector INFO Stream:EventSelector.DataStreamTool_1 Def:DATAFILE='PFN:EvtTags1.root' OPT='READ' SVC='Gaudi::RootCnvSvc' SEL='binom==6' COLLECTION='Fill/COL1'
EventSelector SUCCESS Reading Event record 1. Record number within stream 1: 1
EventPersistenc... INFO Added successfully Conversion service:PoolRootEvtCnvSvc
EventPersistenc... INFO Added successfully Conversion service:PoolRootTreeEvtCnvSvc
RootDBase.open SUCCESS EvtColsEx.dst File version:52600
PoolRootTreeEvt... INFO No Records /FileRecords present in:FCCEDD53-E1FA-DE11-A6D2-001320A397BC
EventPersistenc... INFO Added successfully Conversion service:RootCnvSvc
EventSelector SUCCESS Reading Event record 11. Record number within stream 1: 11
EventSelector SUCCESS Reading Event record 21. Record number within stream 1: 21
EventSelector SUCCESS Reading Event record 31. Record number within stream 1: 31
EventSelector SUCCESS Reading Event record 41. Record number within stream 1: 41
Gaudi::RootNTup... INFO End of input Ntuple.
EventLoopMgr INFO No more events in event selection
ApplicationMgr INFO Application Manager Stopped successfully
RootHistSvc WARNING no ROOT output file name, Histograms cannot be persistified
EventLoopMgr INFO Histograms converted successfully according to request.
RootCnvSvc INFO Disconnected data IO:3CC74C13-E524-E111-A1A8-B499BAF088DC [EvtColsEx.dst]
ToolSvc INFO Removing all tools created by ToolSvc
EvtTupleSvc.Eve... INFO Disconnected data IO:2C12615D-E1FA-DE11-8A8F-001320A397BC[EvtTags1.root]
FileRecordCnvSvc INFO File sharing enabled. Do not retire files.
PoolRootTreeEvt... INFO Disconnected data IO:FCCEDD53-E1FA-DE11-A6D2-001320A397BC[EvtColsEx.dst]
EvtTupleSvc.Eve... INFO Disconnected data IO:7A19CE15-E524-E111-B6A5-B499BAF088DC [EvtTags1.root]
ApplicationMgr INFO Application Manager Finalized successfully
ApplicationMgr INFO Application Manager Terminated successfully
......@@ -9,7 +9,7 @@
ApplicationMgr SUCCESS
====================================================================================================================================
Welcome to ApplicationMgr $Revision: 1.77 $
running on lxplus405.cern.ch on Fri Dec 2 09:33:17 2011
running on pcphlbc16 on Mon Dec 12 17:09:21 2011
====================================================================================================================================
ApplicationMgr INFO Application Manager Configured successfully
ApplicationMgr INFO Successfully loaded modules : GaudiAlg, RootHistCnv
......@@ -25,16 +25,11 @@ TagsWriter INFO Adding OutputStream item /NTUPLES/EVTTAGS/Fill/COL1 wi
TagsWriter INFO Data source: EvtTupleSvc
ApplicationMgr INFO Application Manager Initialized successfully
ApplicationMgr INFO Application Manager Started successfully
EventPersistenc... INFO Added successfully Conversion service:PoolRootEvtCnvSvc
EventSelector INFO Stream:EventSelector.DataStreamTool_1 Def:DATAFILE='EvtColsEx.dst' TYP='POOL_ROOT' OPT='READ'
RootDBase.open SUCCESS EvtColsEx.dst File version:53004
RootDBase.open SUCCESS EvtColsEx.dst File version:53004
PoolRootEvtCnvSvc INFO No Records /FileRecords present in:A04B4546-C01C-E111-9BE8-003048F0E7D6
EventSelector INFO Stream:EventSelector.DataStreamTool_1 Def:DATAFILE='EvtColsEx.dst' OPT='READ' SVC='Gaudi::RootEvtSelector'
EventSelector SUCCESS Reading Event record 1. Record number within stream 1: 1
EventPersistenc... INFO Added successfully Conversion service:PoolRootTreeEvtCnvSvc
IODataManager INFO Referring to dataset EvtTags1.root by its file ID:9820A749-C01C-E111-A94A-003048F0E7D6
RootDBase.open SUCCESS EvtTags1.root File version:53004
PoolDbDatabaseCnv INFO Recreate Database file:PFN:EvtTags1.root as /EVTTAGS
EventPersistenc... INFO Added successfully Conversion service:RootCnvSvc
IODataManager INFO Referring to dataset EvtTags1.root by its file ID:34A61DA7-DB24-E111-ACE0-B499BAF088DC
Gaudi::RootData... INFO Recreate Database file:PFN:EvtTags1.root as /EVTTAGS
EventSelector SUCCESS Reading Event record 1001. Record number within stream 1: 1001
EventSelector SUCCESS Reading Event record 2001. Record number within stream 1: 2001
EventSelector SUCCESS Reading Event record 3001. Record number within stream 1: 3001
......@@ -50,10 +45,10 @@ Fill SUCCESS List of booked Event Tag Collections in directory "EVT
Fill SUCCESS ID=COL1 Title="My trivial N-tuple" #items=9 {Address,evtNum,runNum,gauss,flat,expo,poisson,binom,flag} Items:{ 'Address' : 'IOpaqueAddress*' , 'binom' : 'I' , 'evtNum' : 'I' , 'expo' : 'D' , 'flag' : 'I' , 'flat' : 'D' , 'gauss' : 'D' , 'poisson' : 'I' , 'runNum' : 'I' }
RootHistSvc WARNING no ROOT output file name, Histograms cannot be persistified
EventLoopMgr INFO Histograms converted successfully according to request.
RootCnvSvc INFO Disconnected data IO:1CD11BA5-DB24-E111-9D07-B499BAF088DC [EvtColsEx.dst]
ToolSvc INFO Removing all tools created by ToolSvc
XMLCatalog INFO File 'test_catalog.xml' does not exist. New file created.
EvtTupleSvc INFO NTuples saved successfully
EvtTupleSvc.EVT... INFO Disconnected data IO:9820A749-C01C-E111-A94A-003048F0E7D6[EvtTags1.root]
FileRecordCnvSvc INFO File sharing enabled. Do not retire files.
PoolRootEvtCnvSvc INFO Disconnected data IO:A04B4546-C01C-E111-9BE8-003048F0E7D6[EvtColsEx.dst]
EvtTupleSvc.EVT... INFO Disconnected data IO:34A61DA7-DB24-E111-ACE0-B499BAF088DC [EvtTags1.root]
ApplicationMgr INFO Application Manager Finalized successfully
ApplicationMgr INFO Application Manager Terminated successfully
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment