diff --git a/Tools/PyUtils/python/AthFile/__init__.py b/Tools/PyUtils/python/AthFile/__init__.py index 2cea4ece006872bc7c6859514107243d6cde5a41..ffef68271ac01d367432b05e919d77af5f3654da 100644 --- a/Tools/PyUtils/python/AthFile/__init__.py +++ b/Tools/PyUtils/python/AthFile/__init__.py @@ -1,10 +1,10 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration +# Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration # @file PyUtils/python/AthFile/__init__.py # @purpose a simple abstraction of a file to retrieve informations out of it # @author Sebastien Binet <binet@cern.ch> # @date October 2008 -from __future__ import with_statement +from __future__ import with_statement, print_function __doc__ = "a simple abstraction of a file to retrieve informations out of it" __version__ = "$Revision$" @@ -25,8 +25,8 @@ __pseudo_all__ = [ ] import PyUtils.Decorators as _decos -import impl as _impl -import tests as _tests +from . import impl as _impl +from . import tests as _tests AthFile = _impl.AthFile from decorator import decorator as _dec diff --git a/Tools/PyUtils/python/AthFile/impl.py b/Tools/PyUtils/python/AthFile/impl.py index 7ddb535b1cc4c5a169275307909a087aca02efb7..6528f518dad1d1f2890c0b87591a7929fc0fd87b 100644 --- a/Tools/PyUtils/python/AthFile/impl.py +++ b/Tools/PyUtils/python/AthFile/impl.py @@ -1,11 +1,11 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration +# Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration # @file PyUtils/python/AthFile/impl.py # @purpose a simple abstraction of a file to retrieve informations out of it # @author Sebastien Binet <binet@cern.ch> # @date November 2009 -from __future__ import with_statement +from __future__ import with_statement, print_function __version__ = "$Revision: 723532 $" __author__ = "Sebastien Binet" @@ -15,6 +15,8 @@ import errno import os import subprocess import sys +import six +from past.builtins import basestring import PyUtils.Helpers as H from PyUtils.Helpers import ShutUp @@ -40,6 +42,28 @@ DEFAULT_AF_TIMEOUT = 20 ### utils ---------------------------------------------------------------------- +# Try to convert long->int in output when we're running with python2, +# to prevent interoperability problems if we then read with python3. +def _clean_dict (d): + for k, v in d.items(): + if type(v) == type({}): + _clean_dict(v) + elif type(v) == type([]): + _clean_list(v) + elif type(v) in six.integer_types: + d[k] = int(v) + return +def _clean_list (l): + for i in range(len(l)): + v = l[i] + if type(v) == type({}): + _clean_dict(v) + elif type(v) == type([]): + _clean_list(v) + elif type(v) in six.integer_types: + l[i] = int(v) + return + def _get_real_ext(fname): """little helper to get the 'real' extension of a filename, handling 'fake' extensions (e.g. foo.ascii.gz -> .ascii)""" se = os.path.splitext @@ -61,7 +85,7 @@ def _my_open(name, mode='r', bufsiz=-1): return self gzip.GzipFile.__exit__ = gzip_exit gzip.GzipFile.__enter__= gzip_enter - return gzip.open(name, mode) + return gzip.open(name, mode + 't') else: return open(name, mode, bufsiz) @@ -324,7 +348,7 @@ class AthFileServer(object): self.pyroot = ru.import_root() try: ru._pythonize_tfile() - except Exception, err: + except Exception as err: self.msg().warning('problem during TFile pythonization:\n%s', err) self.msg().debug('importing ROOT... [done]') @@ -349,7 +373,7 @@ class AthFileServer(object): if f: f.Close() del f - except Exception,err: + except Exception as err: self._msg.info('could not close a TFile:\n%s', err) pass tfiles[:] = [] @@ -454,7 +478,7 @@ class AthFileServer(object): # synchronize once try: self._sync_pers_cache() - except Exception, err: + except Exception as err: self.msg().info('could not synchronize the persistent cache:\n%s', err) pass @@ -474,7 +498,7 @@ class AthFileServer(object): msg = self.msg() cache = dict(self._cache) fids = [] - for k,v in cache.iteritems(): + for k,v in six.iteritems (cache): v = v.infos fid = v.get('file_md5sum', v['file_guid']) if fid: @@ -552,7 +576,7 @@ class AthFileServer(object): try: self._cache = cache self._sync_pers_cache() - except Exception,err: + except Exception as err: msg.info('could not synchronize the persistent cache:\n%s', err) pass return self._cache[fname] @@ -580,7 +604,7 @@ class AthFileServer(object): return 'file:'+uri return uri - from urlparse import urlsplit + from six.moves.urllib.parse import urlsplit url = urlsplit(_normalize_uri(fname)) protocol = url.scheme def _normalize(fname): @@ -692,7 +716,7 @@ class AthFileServer(object): else: msg.warning("could not save to [%s]", pid_fname) msg.debug('synch-ing cache to [%s]... [done]', fname) - except Exception,err: + except Exception as err: msg.debug('synch-ing cache to [%s]... [failed]', fname) msg.debug('reason:\n%s', err) pass @@ -742,7 +766,7 @@ class AthFileServer(object): cache = {} try: cache = loader(fname) - except Exception, err: + except Exception as err: msg.info("problem loading cache from [%s]!", fname) msg.info(repr(err)) pass @@ -770,13 +794,13 @@ class AthFileServer(object): saver = self._save_ascii_cache try: saver(fname) - except IOError,err: + except IOError as err: import errno if err.errno != errno.EACCES: raise else: msg.info('could not save cache in [%s]', fname) - except Exception,err: + except Exception as err: msg.warning('could not save cache into [%s]:\n%s', fname, err) return @@ -820,11 +844,11 @@ class AthFileServer(object): """load file informations from a pretty-printed python code""" dct = {} ast = compile(_my_open(fname).read(), fname, 'exec') - exec ast in dct,dct + exec (ast, dct,dct) del ast try: cache = dct['fileinfos'] - except Exception, err: + except Exception as err: raise finally: del dct @@ -835,19 +859,21 @@ class AthFileServer(object): from pprint import pprint cache = self._cache with _my_open(fname, 'w') as fd: - print >> fd, "# this is -*- python -*-" - print >> fd, "# this file has been automatically generated." - print >> fd, "fileinfos = [" + print ("# this is -*- python -*-", file=fd) + print ("# this file has been automatically generated.", file=fd) + print ("fileinfos = [", file=fd) fd.flush() for k in cache: - print >> fd, "\n## new-entry" + print ("\n## new-entry", file=fd) + if six.PY2: + _clean_dict (cache[k].fileinfos) pprint((k, cache[k].fileinfos), stream=fd, width=120) fd.flush() - print >> fd, ", " - print >> fd, "]" - print >> fd, "### EOF ###" + print (", ", file=fd) + print ("]", file=fd) + print ("### EOF ###", file=fd) fd.flush() return @@ -856,7 +882,7 @@ class AthFileServer(object): import PyUtils.dbsqlite as dbsqlite cache = dbsqlite.open(fname) d = {} - for k,v in cache.iteritems(): + for k,v in six.iteritems (cache): d[k] = AthFile.from_infos(v) return d @@ -920,7 +946,7 @@ class AthFileServer(object): do_close = False f = fname - _is_root_file= bool(f and f.IsOpen() and 'root' in f.read(10)) + _is_root_file= bool(f and f.IsOpen() and b'root' in f.read(10)) if f and do_close: f.Close() del f @@ -1062,7 +1088,7 @@ class FilePeeker(object): if evtmax in (-1, None): evtmax = nentries evtmax = int(evtmax) - for row in xrange(evtmax): + for row in range(evtmax): if coll_tree.GetEntry(row) < 0: break # With root 5.34.22, trying to access leaves of a @@ -1150,8 +1176,8 @@ class FilePeeker(object): os.close(fd_pkl) if os.path.exists(out_pkl_fname): os.remove(out_pkl_fname) - print "\n --------- running Athena peeker" - print os.environ.get('CMTPATH','') + print ("\n --------- running Athena peeker") + print (os.environ.get('CMTPATH','')) import AthenaCommon.ChapPy as api app = api.AthenaApp(cmdlineargs=["--nprocs=0"]) @@ -1192,9 +1218,9 @@ class FilePeeker(object): (os.getpid(), uuid.uuid4()) ) stdout = open(stdout_fname, "w") - print >> stdout,"="*80 - print >> stdout,self._sub_env - print >> stdout,"="*80 + print ("="*80, file=stdout) + print (self._sub_env, file=stdout) + print ("="*80, file=stdout) stdout.flush() if DEFAULT_AF_RUN: sc = app.run(stdout=stdout, env=self._sub_env) @@ -1263,7 +1289,7 @@ class FilePeeker(object): f_root.Close() del f_raw del f_root - except Exception,err: + except Exception as err: msg.warning( 'problem while closing raw and root file handles:\n%s', err @@ -1274,11 +1300,7 @@ class FilePeeker(object): import re import PyUtils.Helpers as H with H.ShutUp(filters=[re.compile('.*')]): - try: - f = self._process_call(fname, evtmax, projects) - except Exception,err: - # give it another chance but with the full environment - f = self._process_call(fname, evtmax, projects=None) + f = self._process_call(fname, evtmax, projects=None) return f @@ -1293,14 +1315,14 @@ class FilePeeker(object): beam_type = '<beam-type N/A>' try: beam_type = data_reader.beamType() - except Exception,err: + except Exception as err: msg.warning ("problem while extracting beam-type information") pass beam_energy = '<beam-energy N/A>' try: beam_energy = data_reader.beamEnergy() - except Exception,err: + except Exception as err: msg.warning ("problem while extracting beam-type information") pass @@ -1384,7 +1406,7 @@ class FilePeeker(object): evtmax = nentries ievt = iter(bs) - for i in xrange(evtmax): + for i in range(evtmax): try: evt = ievt.next() evt.check() # may raise a RuntimeError @@ -1400,8 +1422,8 @@ class FilePeeker(object): file_infos['beam_energy'].append(beam_energy) file_infos['stream_tags'].extend(stream_tags) - except RuntimeError, err: - print "** WARNING ** detected a corrupted bs-file:\n",err + except RuntimeError as err: + print ("** WARNING ** detected a corrupted bs-file:\n",err) """ detailed dump how-to: --------------------- diff --git a/Tools/PyUtils/python/AthFile/tests.py b/Tools/PyUtils/python/AthFile/tests.py index 71329b4821ac3f5d0fc54fbc354c824737cc1ec1..08aef7a1d6d02a2474822879f0d3746912075df2 100644 --- a/Tools/PyUtils/python/AthFile/tests.py +++ b/Tools/PyUtils/python/AthFile/tests.py @@ -4,7 +4,7 @@ # @purpose a simple abstraction of a file to retrieve informations out of it # @author Sebastien Binet <binet@cern.ch> # @date October 2008 -from __future__ import with_statement +from __future__ import with_statement, print_function import unittest, sys @@ -69,9 +69,9 @@ class AthFileTest(unittest.TestCase): f1 = af.fopen(fname) if verbose: - print "::: f1.fileinfos:" - print f1.fileinfos - f1_ref = {'file_md5sum':'36ff1ef242bd3240227016e71e241a89', 'metadata_items': [('EventStreamInfo', 'StreamESD'), ('LumiBlockCollection', 'LumiBlocks'), ('DataHeader', ';00;MetaDataSvc'), ('IOVMetaDataContainer', '/GLOBAL/DETSTATUS/LBSUMM')], 'stream_names': ['StreamESD'], 'run_type': ['N/A'], 'stream_tags': [{'obeys_lbk': True, 'stream_type': 'physics', 'stream_name': 'IDCosmic'}], 'tag_info': {'/TRT/Cond/StatusPermanent': 'TrtStrawStatusPermanent-01', '/CALO/HadCalibration/CaloDMCorr2': 'CaloHadDMCorr-002-00', '/MUONALIGN/MDT/ENDCAP/SIDEC': 'MuonAlignMDTEndCapCAlign-REPRO-08', '/MUONALIGN/MDT/BARREL': 'MuonAlignMDTBarrelAlign-0100-SEC0109', 'GeoAtlas': 'ATLAS-GEO-02-01-00', '/CALO/EMTopoClusterCorrections/topophioff': 'EMTopoClusterCorrections.topophioff-v2', '/CALO/EMTopoClusterCorrections/topogap': 'EMTopoClusterCorrections.topogap-v1', 'AtlasRelease': 'AtlasTier0-15.0.0.4', 'IOVDbGlobalTag': 'COMCOND-ES1C-001-00', '/MUONALIGN/TGC/SIDEA': 'MuonAlignTGCEndCapAAlign-REPRO-01', '/SCT/DAQ/Calibration/NoiseOccupancyDefects': 'HEAD', '/CALO/CaloSwClusterCorrections/etaoff': 'CaloSwClusterCorrections.etaoff-v4_1', '/GLOBAL/TrackingGeo/LayerMaterial': 'TagInfo/AtlasLayerMat_v11_/GeoAtlas', '/CALO/CaloSwClusterCorrections/trcorr': 'CaloSwClusterCorrections.trcorr-v5', '/LAR/Identifier/LArTTCellMapAtlas': 'LARIdentifierLArTTCellMapAtlas-DC3-05', '/MUONALIGN/MDT/ENDCAP/SIDEA': 'MuonAlignMDTEndCapAAlign-REPRO-08', '/CALO/HadCalibration/CaloOutOfClusterPi0': 'CaloHadOOCCorrPi0-CSC05-BERT', '/CALO/EMTopoClusterCorrections/topolw': 'EMTopoClusterCorrections.topolw-v1', '/CALO/HadCalibration/H1ClusterCellWeights': 'CaloH1CellWeights-CSC05-BERT', '/CALO/HadCalibration/CaloEMFrac': 'CaloEMFrac-CSC05-BERT', '/MUONALIGN/TGC/SIDEC': 'MuonAlignTGCEndCapCAlign-REPRO-01', '/CALO/HadCalibration/CaloOutOfCluster': 'CaloHadOOCCorr-CSC05-BERT', '/SCT/DAQ/Calibration/NPtGainDefects': 'HEAD', '/CALO/CaloSwClusterCorrections/etamod': 'CaloSwClusterCorrections.etamod-v4', '/CALO/CaloSwClusterCorrections/phimod': 'CaloSwClusterCorrections.phimod-v4', '/CALO/CaloSwClusterCorrections/rfac': 'CaloSwClusterCorrections.rfac-v4', '/CALO/CaloSwClusterCorrections/calhits': 'CaloSwClusterCorrections.calhits-v5', '/CALO/CaloSwClusterCorrections/phioff': 'CaloSwClusterCorrections.phioff-v4', '/CALO/H1Weights/H1WeightsConeTopo': 'CaloH1WeightsConeTopo-00-000', '/CALO/EMTopoClusterCorrections/topoetaoff': 'EMTopoClusterCorrections.topoetaoff-v1', '/CALO/CaloSwClusterCorrections/gap': 'CaloSwClusterCorrections.gap-v4', '/CALO/EMTopoClusterCorrections/topophimod': 'EMTopoClusterCorrections.topophimod-v1'}, 'file_type': 'pool', 'file_name': 'root://eosatlas.cern.ch//eos/atlas/user/b/binet/regr-tests/athfile/esd.gcc34.15.1.x.pool.root', 'file_guid': '5A6CD469-D01D-DE11-82E4-000423D67746', 'beam_type': ['N/A'], 'lumi_block': [1L], 'conditions_tag': 'COMCOND-ES1C-001-00', 'det_descr_tags': {'/TRT/Cond/StatusPermanent': 'TrtStrawStatusPermanent-01', '/CALO/HadCalibration/CaloDMCorr2': 'CaloHadDMCorr-002-00', '/MUONALIGN/MDT/ENDCAP/SIDEC': 'MuonAlignMDTEndCapCAlign-REPRO-08', '/MUONALIGN/MDT/BARREL': 'MuonAlignMDTBarrelAlign-0100-SEC0109', 'GeoAtlas': 'ATLAS-GEO-02-01-00', '/CALO/EMTopoClusterCorrections/topophioff': 'EMTopoClusterCorrections.topophioff-v2', '/CALO/EMTopoClusterCorrections/topogap': 'EMTopoClusterCorrections.topogap-v1', 'AtlasRelease': 'AtlasTier0-15.0.0.4', 'IOVDbGlobalTag': 'COMCOND-ES1C-001-00', '/MUONALIGN/TGC/SIDEA': 'MuonAlignTGCEndCapAAlign-REPRO-01', '/SCT/DAQ/Calibration/NoiseOccupancyDefects': 'HEAD', '/CALO/CaloSwClusterCorrections/etaoff': 'CaloSwClusterCorrections.etaoff-v4_1', '/GLOBAL/TrackingGeo/LayerMaterial': 'TagInfo/AtlasLayerMat_v11_/GeoAtlas', '/CALO/CaloSwClusterCorrections/trcorr': 'CaloSwClusterCorrections.trcorr-v5', '/LAR/Identifier/LArTTCellMapAtlas': 'LARIdentifierLArTTCellMapAtlas-DC3-05', '/MUONALIGN/MDT/ENDCAP/SIDEA': 'MuonAlignMDTEndCapAAlign-REPRO-08', '/CALO/HadCalibration/CaloOutOfClusterPi0': 'CaloHadOOCCorrPi0-CSC05-BERT', '/CALO/EMTopoClusterCorrections/topolw': 'EMTopoClusterCorrections.topolw-v1', '/CALO/HadCalibration/H1ClusterCellWeights': 'CaloH1CellWeights-CSC05-BERT', '/CALO/HadCalibration/CaloEMFrac': 'CaloEMFrac-CSC05-BERT', '/MUONALIGN/TGC/SIDEC': 'MuonAlignTGCEndCapCAlign-REPRO-01', '/CALO/HadCalibration/CaloOutOfCluster': 'CaloHadOOCCorr-CSC05-BERT', '/SCT/DAQ/Calibration/NPtGainDefects': 'HEAD', '/CALO/CaloSwClusterCorrections/etamod': 'CaloSwClusterCorrections.etamod-v4', '/CALO/CaloSwClusterCorrections/phimod': 'CaloSwClusterCorrections.phimod-v4', '/CALO/CaloSwClusterCorrections/rfac': 'CaloSwClusterCorrections.rfac-v4', '/CALO/CaloSwClusterCorrections/calhits': 'CaloSwClusterCorrections.calhits-v5', '/CALO/CaloSwClusterCorrections/phioff': 'CaloSwClusterCorrections.phioff-v4', '/CALO/H1Weights/H1WeightsConeTopo': 'CaloH1WeightsConeTopo-00-000', '/CALO/EMTopoClusterCorrections/topoetaoff': 'EMTopoClusterCorrections.topoetaoff-v1', '/CALO/CaloSwClusterCorrections/gap': 'CaloSwClusterCorrections.gap-v4', '/CALO/EMTopoClusterCorrections/topophimod': 'EMTopoClusterCorrections.topophimod-v1'}, 'nentries': 10L, 'eventdata_items': [('EventInfo', 'ByteStreamEventInfo'), ('PixelRDO_Container', 'PixelRDOs'), ('SCT_RDO_Container', 'SCT_RDOs'), ('TRT_RDO_Container', 'TRT_RDOs'), ('InDet::PixelClusterContainer', 'PixelClusters'), ('InDet::SCT_ClusterContainer', 'SCT_Clusters'), ('BCM_RDO_Container', 'BCM_RDOs'), ('LArDigitContainer', 'LArDigitContainer_IIC'), ('LArDigitContainer', 'LArDigitContainer_Thinned'), ('CaloCellContainer', 'AllCalo'), ('CaloTowerContainer', 'CombinedTower'), ('CaloClusterContainer', 'CaloCalTopoCluster'), ('CaloClusterContainer', 'CaloTopoCluster'), ('CaloClusterContainer', 'EMTopoCluster430'), ('CaloClusterContainer', 'LArClusterEM'), ('CaloClusterContainer', 'LArClusterEM7_11Nocorr'), ('CaloClusterContainer', 'LArClusterEMFrwd'), ('CaloClusterContainer', 'LArClusterEMSofte'), ('CaloClusterContainer', 'LArMuClusterCandidates'), ('CaloClusterContainer', 'MuonClusterCollection'), ('CaloClusterContainer', 'Tau1P3PCellCluster'), ('CaloClusterContainer', 'Tau1P3PCellEM012ClusterContainer'), ('CaloClusterContainer', 'Tau1P3PPi0ClusterContainer'), ('CaloClusterContainer', 'egClusterCollection'), ('TileDigitsContainer', 'TileDigitsFlt'), ('TileCellContainer', 'MBTSContainer'), ('TileL2Container', 'TileL2Cnt'), ('TileMuContainer', 'TileMuObj'), ('TileCosmicMuonContainer', 'TileCosmicMuonHT'), ('ElectronContainer', 'ElectronAODCollection'), ('ElectronContainer', 'ElectronCollection'), ('PhotonContainer', 'PhotonAODCollection'), ('PhotonContainer', 'PhotonCollection'), ('ElectronContainer', 'egammaForwardCollection'), ('ElectronContainer', 'softeCollection'), ('Analysis::TauJetContainer', 'TauRecContainer'), ('JetKeyDescriptor', 'JetKeyMap'), ('MissingETSig', 'METSig'), ('MissingEtCalo', 'MET_Base'), ('MissingEtCalo', 'MET_Base0'), ('MissingEtCalo', 'MET_Calib'), ('MissingET', 'MET_CellOut'), ('MissingET', 'MET_CellOut_MiniJet'), ('MissingEtCalo', 'MET_CorrTopo'), ('MissingET', 'MET_Cryo'), ('MissingET', 'MET_CryoCone'), ('MissingET', 'MET_Final'), ('MissingEtCalo', 'MET_LocHadTopo'), ('MissingET', 'MET_LocHadTopoObj'), ('MissingET', 'MET_Muon'), ('MissingET', 'MET_MuonBoy'), ('MissingET', 'MET_MuonBoy_Spectro'), ('MissingET', 'MET_MuonBoy_Track'), ('MissingET', 'MET_RefEle'), ('MissingET', 'MET_RefFinal'), ('MissingET', 'MET_RefGamma'), ('MissingET', 'MET_RefJet'), ('MissingET', 'MET_RefMuon'), ('MissingET', 'MET_RefMuon_Track'), ('MissingET', 'MET_RefTau'), ('MissingEtCalo', 'MET_Topo'), ('MissingET', 'MET_TopoObj'), ('MissingET', 'ObjMET_Elec'), ('MissingET', 'ObjMET_Final'), ('MissingET', 'ObjMET_IdTrk'), ('MissingET', 'ObjMET_Jet'), ('MissingET', 'ObjMET_MiniJet'), ('MissingET', 'ObjMET_Muon'), ('MissingET', 'ObjMET_Rest'), ('MissingET', 'ObjMET_TauJet'), ('Trk::SegmentCollection', 'ConvertedMBoySegments'), ('Trk::SegmentCollection', 'MooreSegments'), ('Trk::SegmentCollection', 'MuGirlSegments'), ('TrackCollection', 'CombinedInDetTracks'), ('TrackCollection', 'CombinedInDetTracks_CTB'), ('TrackCollection', 'Combined_Tracks'), ('TrackCollection', 'ConvertedMBoyMuonSpectroOnlyTracks'), ('TrackCollection', 'ConvertedMBoyTracks'), ('TrackCollection', 'ConvertedMuIdCBTracks'), ('TrackCollection', 'ConvertedMuTagTracks'), ('TrackCollection', 'ConvertedStacoTracks'), ('TrackCollection', 'MooreExtrapolatedTracks'), ('TrackCollection', 'MooreTracks'), ('TrackCollection', 'MuGirlRefittedTracks'), ('TrackCollection', 'MuTagIMOTracks'), ('TrackCollection', 'MuidExtrapolatedTracks'), ('TrackCollection', 'ResolvedPixelTracks_CTB'), ('TrackCollection', 'ResolvedSCTTracks_CTB'), ('TrackCollection', 'TRTStandaloneTRTTracks_CTB'), ('InDet::PixelGangedClusterAmbiguities', 'PixelClusterAmbiguitiesMap'), ('LArFebErrorSummary', 'LArFebErrorSummary'), ('ComTime', 'TRT_Phase'), ('Analysis::TauDetailsContainer', 'TauRecDetailsContainer'), ('Analysis::TauDetailsContainer', 'TauRecExtraDetailsContainer'), ('Analysis::MuonContainer', 'CaloESDMuonCollection'), ('Analysis::MuonContainer', 'CaloESDMuonCollection2'), ('Analysis::MuonContainer', 'CaloMuonCollection'), ('Analysis::MuonContainer', 'MuGirlLowBetaCollection'), ('Analysis::MuonContainer', 'MuidESDMuonCollection'), ('Analysis::MuonContainer', 'MuidMuonCollection'), ('Analysis::MuonContainer', 'StacoESDMuonCollection'), ('Analysis::MuonContainer', 'StacoMuonCollection'), ('MissingETSigHypoContainer', 'EtMissHypoCollection'), ('TRT_BSIdErrContainer', 'TRT_ByteStreamIdErrs'), ('InDet::TRT_DriftCircleContainer', 'TRT_DriftCircles'), ('MissingETSigObjContainer', 'EtMissObjCollection'), ('Muon::MdtPrepDataContainer', 'MDT_DriftCircles'), ('JetCollection', 'Cone4H1TopoJets'), ('JetCollection', 'Cone4H1TowerJets'), ('JetCollection', 'Cone7H1TowerJets'), ('egDetailContainer', 'SofteDetailContainer'), ('egDetailContainer', 'egDetailAOD'), ('egDetailContainer', 'egDetailContainer'), ('Muon::TgcCoinDataContainer', 'TrigT1CoinDataCollection'), ('Muon::TgcCoinDataContainer', 'TrigT1CoinDataCollectionNextBC'), ('Muon::TgcCoinDataContainer', 'TrigT1CoinDataCollectionPriorBC'), ('Muon::RpcPrepDataContainer', 'RPC_Measurements'), ('CaloShowerContainer', 'CaloCalTopoCluster_Data'), ('CaloShowerContainer', 'CaloTopoCluster_Data'), ('CaloShowerContainer', 'EMTopoCluster430_Data'), ('CaloShowerContainer', 'LArClusterEM7_11Nocorr_Data'), ('CaloShowerContainer', 'LArClusterEMSofte_Data'), ('CaloShowerContainer', 'LArClusterEM_Data'), ('CaloShowerContainer', 'LArMuClusterCandidates_Data'), ('CaloShowerContainer', 'MuonClusterCollection_Data'), ('CaloShowerContainer', 'Tau1P3PCellCluster_Data'), ('CaloShowerContainer', 'Tau1P3PCellEM012ClusterContainer_Data'), ('CaloShowerContainer', 'Tau1P3PPi0ClusterContainer_Data'), ('CaloShowerContainer', 'egClusterCollection_Data'), ('InDetBSErrContainer', 'PixelByteStreamErrs'), ('InDetBSErrContainer', 'SCT_ByteStreamErrs'), ('TRT_BSErrContainer', 'TRT_ByteStreamErrs'), ('CaloCellLinkContainer', 'CaloCalTopoCluster_Link'), ('CaloCellLinkContainer', 'CaloTopoCluster_Link'), ('CaloCellLinkContainer', 'EMTopoCluster430_Link'), ('CaloCellLinkContainer', 'LArClusterEM7_11Nocorr_Link'), ('CaloCellLinkContainer', 'LArClusterEMSofte_Link'), ('CaloCellLinkContainer', 'LArClusterEM_Link'), ('CaloCellLinkContainer', 'LArMuClusterCandidates_Link'), ('CaloCellLinkContainer', 'MuonClusterCollection_Link'), ('CaloCellLinkContainer', 'Tau1P3PCellCluster_Link'), ('CaloCellLinkContainer', 'Tau1P3PCellEM012ClusterContainer_Link'), ('CaloCellLinkContainer', 'Tau1P3PPi0ClusterContainer_Link'), ('CaloCellLinkContainer', 'egClusterCollection_Link'), ('Rec::MuonSpShowerContainer', 'MuonSpShowers'), ('Rec::TrackParticleContainer', 'Combined_TrackParticles'), ('Rec::TrackParticleContainer', 'MooreTrackParticles'), ('Rec::TrackParticleContainer', 'MuGirlRefittedTrackParticles'), ('Rec::TrackParticleContainer', 'MuTagIMOTrackParticles'), ('Rec::TrackParticleContainer', 'MuTagTrackParticles'), ('Rec::TrackParticleContainer', 'MuidExtrTrackParticles'), ('Rec::TrackParticleContainer', 'MuonboyMuonSpectroOnlyTrackParticles'), ('Rec::TrackParticleContainer', 'MuonboyTrackParticles'), ('Rec::TrackParticleContainer', 'StacoTrackParticles'), ('Rec::TrackParticleContainer', 'TrackParticleCandidate'), ('Muon::TgcPrepDataContainer', 'TGC_Measurements'), ('Muon::TgcPrepDataContainer', 'TGC_MeasurementsNextBC'), ('Muon::TgcPrepDataContainer', 'TGC_MeasurementsPriorBC'), ('MuonCaloEnergyContainer', 'MuonCaloEnergyCollection'), ('DataHeader', 'StreamESD')], 'run_number': [91900L], 'beam_energy': ['N/A'], 'geometry': 'ATLAS-GEO-02-01-00', 'evt_number': [2244L], 'evt_type': ('IS_DATA', 'IS_ATLAS', 'IS_PHYSICS'), 'metadata': {'/GLOBAL/DETSTATUS/LBSUMM': []}} + print ("::: f1.fileinfos:") + print (f1.fileinfos) + f1_ref = {'file_md5sum':'36ff1ef242bd3240227016e71e241a89', 'metadata_items': [('EventStreamInfo', 'StreamESD'), ('LumiBlockCollection', 'LumiBlocks'), ('DataHeader', ';00;MetaDataSvc'), ('IOVMetaDataContainer', '/GLOBAL/DETSTATUS/LBSUMM')], 'stream_names': ['StreamESD'], 'run_type': ['N/A'], 'stream_tags': [{'obeys_lbk': True, 'stream_type': 'physics', 'stream_name': 'IDCosmic'}], 'tag_info': {'/TRT/Cond/StatusPermanent': 'TrtStrawStatusPermanent-01', '/CALO/HadCalibration/CaloDMCorr2': 'CaloHadDMCorr-002-00', '/MUONALIGN/MDT/ENDCAP/SIDEC': 'MuonAlignMDTEndCapCAlign-REPRO-08', '/MUONALIGN/MDT/BARREL': 'MuonAlignMDTBarrelAlign-0100-SEC0109', 'GeoAtlas': 'ATLAS-GEO-02-01-00', '/CALO/EMTopoClusterCorrections/topophioff': 'EMTopoClusterCorrections.topophioff-v2', '/CALO/EMTopoClusterCorrections/topogap': 'EMTopoClusterCorrections.topogap-v1', 'AtlasRelease': 'AtlasTier0-15.0.0.4', 'IOVDbGlobalTag': 'COMCOND-ES1C-001-00', '/MUONALIGN/TGC/SIDEA': 'MuonAlignTGCEndCapAAlign-REPRO-01', '/SCT/DAQ/Calibration/NoiseOccupancyDefects': 'HEAD', '/CALO/CaloSwClusterCorrections/etaoff': 'CaloSwClusterCorrections.etaoff-v4_1', '/GLOBAL/TrackingGeo/LayerMaterial': 'TagInfo/AtlasLayerMat_v11_/GeoAtlas', '/CALO/CaloSwClusterCorrections/trcorr': 'CaloSwClusterCorrections.trcorr-v5', '/LAR/Identifier/LArTTCellMapAtlas': 'LARIdentifierLArTTCellMapAtlas-DC3-05', '/MUONALIGN/MDT/ENDCAP/SIDEA': 'MuonAlignMDTEndCapAAlign-REPRO-08', '/CALO/HadCalibration/CaloOutOfClusterPi0': 'CaloHadOOCCorrPi0-CSC05-BERT', '/CALO/EMTopoClusterCorrections/topolw': 'EMTopoClusterCorrections.topolw-v1', '/CALO/HadCalibration/H1ClusterCellWeights': 'CaloH1CellWeights-CSC05-BERT', '/CALO/HadCalibration/CaloEMFrac': 'CaloEMFrac-CSC05-BERT', '/MUONALIGN/TGC/SIDEC': 'MuonAlignTGCEndCapCAlign-REPRO-01', '/CALO/HadCalibration/CaloOutOfCluster': 'CaloHadOOCCorr-CSC05-BERT', '/SCT/DAQ/Calibration/NPtGainDefects': 'HEAD', '/CALO/CaloSwClusterCorrections/etamod': 'CaloSwClusterCorrections.etamod-v4', '/CALO/CaloSwClusterCorrections/phimod': 'CaloSwClusterCorrections.phimod-v4', '/CALO/CaloSwClusterCorrections/rfac': 'CaloSwClusterCorrections.rfac-v4', '/CALO/CaloSwClusterCorrections/calhits': 'CaloSwClusterCorrections.calhits-v5', '/CALO/CaloSwClusterCorrections/phioff': 'CaloSwClusterCorrections.phioff-v4', '/CALO/H1Weights/H1WeightsConeTopo': 'CaloH1WeightsConeTopo-00-000', '/CALO/EMTopoClusterCorrections/topoetaoff': 'EMTopoClusterCorrections.topoetaoff-v1', '/CALO/CaloSwClusterCorrections/gap': 'CaloSwClusterCorrections.gap-v4', '/CALO/EMTopoClusterCorrections/topophimod': 'EMTopoClusterCorrections.topophimod-v1'}, 'file_type': 'pool', 'file_name': 'root://eosatlas.cern.ch//eos/atlas/user/b/binet/regr-tests/athfile/esd.gcc34.15.1.x.pool.root', 'file_guid': '5A6CD469-D01D-DE11-82E4-000423D67746', 'beam_type': ['N/A'], 'lumi_block': [1], 'conditions_tag': 'COMCOND-ES1C-001-00', 'det_descr_tags': {'/TRT/Cond/StatusPermanent': 'TrtStrawStatusPermanent-01', '/CALO/HadCalibration/CaloDMCorr2': 'CaloHadDMCorr-002-00', '/MUONALIGN/MDT/ENDCAP/SIDEC': 'MuonAlignMDTEndCapCAlign-REPRO-08', '/MUONALIGN/MDT/BARREL': 'MuonAlignMDTBarrelAlign-0100-SEC0109', 'GeoAtlas': 'ATLAS-GEO-02-01-00', '/CALO/EMTopoClusterCorrections/topophioff': 'EMTopoClusterCorrections.topophioff-v2', '/CALO/EMTopoClusterCorrections/topogap': 'EMTopoClusterCorrections.topogap-v1', 'AtlasRelease': 'AtlasTier0-15.0.0.4', 'IOVDbGlobalTag': 'COMCOND-ES1C-001-00', '/MUONALIGN/TGC/SIDEA': 'MuonAlignTGCEndCapAAlign-REPRO-01', '/SCT/DAQ/Calibration/NoiseOccupancyDefects': 'HEAD', '/CALO/CaloSwClusterCorrections/etaoff': 'CaloSwClusterCorrections.etaoff-v4_1', '/GLOBAL/TrackingGeo/LayerMaterial': 'TagInfo/AtlasLayerMat_v11_/GeoAtlas', '/CALO/CaloSwClusterCorrections/trcorr': 'CaloSwClusterCorrections.trcorr-v5', '/LAR/Identifier/LArTTCellMapAtlas': 'LARIdentifierLArTTCellMapAtlas-DC3-05', '/MUONALIGN/MDT/ENDCAP/SIDEA': 'MuonAlignMDTEndCapAAlign-REPRO-08', '/CALO/HadCalibration/CaloOutOfClusterPi0': 'CaloHadOOCCorrPi0-CSC05-BERT', '/CALO/EMTopoClusterCorrections/topolw': 'EMTopoClusterCorrections.topolw-v1', '/CALO/HadCalibration/H1ClusterCellWeights': 'CaloH1CellWeights-CSC05-BERT', '/CALO/HadCalibration/CaloEMFrac': 'CaloEMFrac-CSC05-BERT', '/MUONALIGN/TGC/SIDEC': 'MuonAlignTGCEndCapCAlign-REPRO-01', '/CALO/HadCalibration/CaloOutOfCluster': 'CaloHadOOCCorr-CSC05-BERT', '/SCT/DAQ/Calibration/NPtGainDefects': 'HEAD', '/CALO/CaloSwClusterCorrections/etamod': 'CaloSwClusterCorrections.etamod-v4', '/CALO/CaloSwClusterCorrections/phimod': 'CaloSwClusterCorrections.phimod-v4', '/CALO/CaloSwClusterCorrections/rfac': 'CaloSwClusterCorrections.rfac-v4', '/CALO/CaloSwClusterCorrections/calhits': 'CaloSwClusterCorrections.calhits-v5', '/CALO/CaloSwClusterCorrections/phioff': 'CaloSwClusterCorrections.phioff-v4', '/CALO/H1Weights/H1WeightsConeTopo': 'CaloH1WeightsConeTopo-00-000', '/CALO/EMTopoClusterCorrections/topoetaoff': 'EMTopoClusterCorrections.topoetaoff-v1', '/CALO/CaloSwClusterCorrections/gap': 'CaloSwClusterCorrections.gap-v4', '/CALO/EMTopoClusterCorrections/topophimod': 'EMTopoClusterCorrections.topophimod-v1'}, 'nentries': 10, 'eventdata_items': [('EventInfo', 'ByteStreamEventInfo'), ('PixelRDO_Container', 'PixelRDOs'), ('SCT_RDO_Container', 'SCT_RDOs'), ('TRT_RDO_Container', 'TRT_RDOs'), ('InDet::PixelClusterContainer', 'PixelClusters'), ('InDet::SCT_ClusterContainer', 'SCT_Clusters'), ('BCM_RDO_Container', 'BCM_RDOs'), ('LArDigitContainer', 'LArDigitContainer_IIC'), ('LArDigitContainer', 'LArDigitContainer_Thinned'), ('CaloCellContainer', 'AllCalo'), ('CaloTowerContainer', 'CombinedTower'), ('CaloClusterContainer', 'CaloCalTopoCluster'), ('CaloClusterContainer', 'CaloTopoCluster'), ('CaloClusterContainer', 'EMTopoCluster430'), ('CaloClusterContainer', 'LArClusterEM'), ('CaloClusterContainer', 'LArClusterEM7_11Nocorr'), ('CaloClusterContainer', 'LArClusterEMFrwd'), ('CaloClusterContainer', 'LArClusterEMSofte'), ('CaloClusterContainer', 'LArMuClusterCandidates'), ('CaloClusterContainer', 'MuonClusterCollection'), ('CaloClusterContainer', 'Tau1P3PCellCluster'), ('CaloClusterContainer', 'Tau1P3PCellEM012ClusterContainer'), ('CaloClusterContainer', 'Tau1P3PPi0ClusterContainer'), ('CaloClusterContainer', 'egClusterCollection'), ('TileDigitsContainer', 'TileDigitsFlt'), ('TileCellContainer', 'MBTSContainer'), ('TileL2Container', 'TileL2Cnt'), ('TileMuContainer', 'TileMuObj'), ('TileCosmicMuonContainer', 'TileCosmicMuonHT'), ('ElectronContainer', 'ElectronAODCollection'), ('ElectronContainer', 'ElectronCollection'), ('PhotonContainer', 'PhotonAODCollection'), ('PhotonContainer', 'PhotonCollection'), ('ElectronContainer', 'egammaForwardCollection'), ('ElectronContainer', 'softeCollection'), ('Analysis::TauJetContainer', 'TauRecContainer'), ('JetKeyDescriptor', 'JetKeyMap'), ('MissingETSig', 'METSig'), ('MissingEtCalo', 'MET_Base'), ('MissingEtCalo', 'MET_Base0'), ('MissingEtCalo', 'MET_Calib'), ('MissingET', 'MET_CellOut'), ('MissingET', 'MET_CellOut_MiniJet'), ('MissingEtCalo', 'MET_CorrTopo'), ('MissingET', 'MET_Cryo'), ('MissingET', 'MET_CryoCone'), ('MissingET', 'MET_Final'), ('MissingEtCalo', 'MET_LocHadTopo'), ('MissingET', 'MET_LocHadTopoObj'), ('MissingET', 'MET_Muon'), ('MissingET', 'MET_MuonBoy'), ('MissingET', 'MET_MuonBoy_Spectro'), ('MissingET', 'MET_MuonBoy_Track'), ('MissingET', 'MET_RefEle'), ('MissingET', 'MET_RefFinal'), ('MissingET', 'MET_RefGamma'), ('MissingET', 'MET_RefJet'), ('MissingET', 'MET_RefMuon'), ('MissingET', 'MET_RefMuon_Track'), ('MissingET', 'MET_RefTau'), ('MissingEtCalo', 'MET_Topo'), ('MissingET', 'MET_TopoObj'), ('MissingET', 'ObjMET_Elec'), ('MissingET', 'ObjMET_Final'), ('MissingET', 'ObjMET_IdTrk'), ('MissingET', 'ObjMET_Jet'), ('MissingET', 'ObjMET_MiniJet'), ('MissingET', 'ObjMET_Muon'), ('MissingET', 'ObjMET_Rest'), ('MissingET', 'ObjMET_TauJet'), ('Trk::SegmentCollection', 'ConvertedMBoySegments'), ('Trk::SegmentCollection', 'MooreSegments'), ('Trk::SegmentCollection', 'MuGirlSegments'), ('TrackCollection', 'CombinedInDetTracks'), ('TrackCollection', 'CombinedInDetTracks_CTB'), ('TrackCollection', 'Combined_Tracks'), ('TrackCollection', 'ConvertedMBoyMuonSpectroOnlyTracks'), ('TrackCollection', 'ConvertedMBoyTracks'), ('TrackCollection', 'ConvertedMuIdCBTracks'), ('TrackCollection', 'ConvertedMuTagTracks'), ('TrackCollection', 'ConvertedStacoTracks'), ('TrackCollection', 'MooreExtrapolatedTracks'), ('TrackCollection', 'MooreTracks'), ('TrackCollection', 'MuGirlRefittedTracks'), ('TrackCollection', 'MuTagIMOTracks'), ('TrackCollection', 'MuidExtrapolatedTracks'), ('TrackCollection', 'ResolvedPixelTracks_CTB'), ('TrackCollection', 'ResolvedSCTTracks_CTB'), ('TrackCollection', 'TRTStandaloneTRTTracks_CTB'), ('InDet::PixelGangedClusterAmbiguities', 'PixelClusterAmbiguitiesMap'), ('LArFebErrorSummary', 'LArFebErrorSummary'), ('ComTime', 'TRT_Phase'), ('Analysis::TauDetailsContainer', 'TauRecDetailsContainer'), ('Analysis::TauDetailsContainer', 'TauRecExtraDetailsContainer'), ('Analysis::MuonContainer', 'CaloESDMuonCollection'), ('Analysis::MuonContainer', 'CaloESDMuonCollection2'), ('Analysis::MuonContainer', 'CaloMuonCollection'), ('Analysis::MuonContainer', 'MuGirlLowBetaCollection'), ('Analysis::MuonContainer', 'MuidESDMuonCollection'), ('Analysis::MuonContainer', 'MuidMuonCollection'), ('Analysis::MuonContainer', 'StacoESDMuonCollection'), ('Analysis::MuonContainer', 'StacoMuonCollection'), ('MissingETSigHypoContainer', 'EtMissHypoCollection'), ('TRT_BSIdErrContainer', 'TRT_ByteStreamIdErrs'), ('InDet::TRT_DriftCircleContainer', 'TRT_DriftCircles'), ('MissingETSigObjContainer', 'EtMissObjCollection'), ('Muon::MdtPrepDataContainer', 'MDT_DriftCircles'), ('JetCollection', 'Cone4H1TopoJets'), ('JetCollection', 'Cone4H1TowerJets'), ('JetCollection', 'Cone7H1TowerJets'), ('egDetailContainer', 'SofteDetailContainer'), ('egDetailContainer', 'egDetailAOD'), ('egDetailContainer', 'egDetailContainer'), ('Muon::TgcCoinDataContainer', 'TrigT1CoinDataCollection'), ('Muon::TgcCoinDataContainer', 'TrigT1CoinDataCollectionNextBC'), ('Muon::TgcCoinDataContainer', 'TrigT1CoinDataCollectionPriorBC'), ('Muon::RpcPrepDataContainer', 'RPC_Measurements'), ('CaloShowerContainer', 'CaloCalTopoCluster_Data'), ('CaloShowerContainer', 'CaloTopoCluster_Data'), ('CaloShowerContainer', 'EMTopoCluster430_Data'), ('CaloShowerContainer', 'LArClusterEM7_11Nocorr_Data'), ('CaloShowerContainer', 'LArClusterEMSofte_Data'), ('CaloShowerContainer', 'LArClusterEM_Data'), ('CaloShowerContainer', 'LArMuClusterCandidates_Data'), ('CaloShowerContainer', 'MuonClusterCollection_Data'), ('CaloShowerContainer', 'Tau1P3PCellCluster_Data'), ('CaloShowerContainer', 'Tau1P3PCellEM012ClusterContainer_Data'), ('CaloShowerContainer', 'Tau1P3PPi0ClusterContainer_Data'), ('CaloShowerContainer', 'egClusterCollection_Data'), ('InDetBSErrContainer', 'PixelByteStreamErrs'), ('InDetBSErrContainer', 'SCT_ByteStreamErrs'), ('TRT_BSErrContainer', 'TRT_ByteStreamErrs'), ('CaloCellLinkContainer', 'CaloCalTopoCluster_Link'), ('CaloCellLinkContainer', 'CaloTopoCluster_Link'), ('CaloCellLinkContainer', 'EMTopoCluster430_Link'), ('CaloCellLinkContainer', 'LArClusterEM7_11Nocorr_Link'), ('CaloCellLinkContainer', 'LArClusterEMSofte_Link'), ('CaloCellLinkContainer', 'LArClusterEM_Link'), ('CaloCellLinkContainer', 'LArMuClusterCandidates_Link'), ('CaloCellLinkContainer', 'MuonClusterCollection_Link'), ('CaloCellLinkContainer', 'Tau1P3PCellCluster_Link'), ('CaloCellLinkContainer', 'Tau1P3PCellEM012ClusterContainer_Link'), ('CaloCellLinkContainer', 'Tau1P3PPi0ClusterContainer_Link'), ('CaloCellLinkContainer', 'egClusterCollection_Link'), ('Rec::MuonSpShowerContainer', 'MuonSpShowers'), ('Rec::TrackParticleContainer', 'Combined_TrackParticles'), ('Rec::TrackParticleContainer', 'MooreTrackParticles'), ('Rec::TrackParticleContainer', 'MuGirlRefittedTrackParticles'), ('Rec::TrackParticleContainer', 'MuTagIMOTrackParticles'), ('Rec::TrackParticleContainer', 'MuTagTrackParticles'), ('Rec::TrackParticleContainer', 'MuidExtrTrackParticles'), ('Rec::TrackParticleContainer', 'MuonboyMuonSpectroOnlyTrackParticles'), ('Rec::TrackParticleContainer', 'MuonboyTrackParticles'), ('Rec::TrackParticleContainer', 'StacoTrackParticles'), ('Rec::TrackParticleContainer', 'TrackParticleCandidate'), ('Muon::TgcPrepDataContainer', 'TGC_Measurements'), ('Muon::TgcPrepDataContainer', 'TGC_MeasurementsNextBC'), ('Muon::TgcPrepDataContainer', 'TGC_MeasurementsPriorBC'), ('MuonCaloEnergyContainer', 'MuonCaloEnergyCollection'), ('DataHeader', 'StreamESD')], 'run_number': [91900], 'beam_energy': ['N/A'], 'geometry': 'ATLAS-GEO-02-01-00', 'evt_number': [2244], 'evt_type': ('IS_DATA', 'IS_ATLAS', 'IS_PHYSICS'), 'metadata': {'/GLOBAL/DETSTATUS/LBSUMM': []}} _compare_fileinfos(f1,f1_ref) assert f1.run_number==f1_ref['run_number'] assert f1.evt_number==f1_ref['evt_number'] @@ -93,8 +93,8 @@ class AthFileTest(unittest.TestCase): f2 = af.fopen(fname) if verbose: - print "::: f2.fileinfos:" - print f2.fileinfos + print ("::: f2.fileinfos:") + print (f2.fileinfos) f2_ref = {'file_md5sum':'e3e301bca63e4b5acb3b3cba43127ff9', 'metadata_items': None, 'stream_names': None, 'run_type': ['TEST'], 'stream_tags': [{'obeys_lbk': True, 'stream_type': 'physics', 'stream_name': 'IDCosmic'}, {'obeys_lbk': False, 'stream_type': 'calibration', 'stream_name': 'IDTracks'}], 'tag_info': None, 'file_type': 'bs', 'file_name': 'rfio:/castor/cern.ch/user/b/binet/regr-tests/athfile/daq.ATLAS.0092226.physics.IDCosmic.LB0054.SFO-1._0001.data', 'file_guid': '7B1EABBD-12E0-4184-ABF0-84EB677D92E7', 'beam_type': [0], 'lumi_block': [54], 'conditions_tag': None, 'det_descr_tags': None, 'nentries': 417, 'eventdata_items': None, 'run_number': [92226], 'beam_energy': [0], 'geometry': None, 'evt_number': [8349492], 'evt_type': [], 'metadata': None} _compare_fileinfos(f2,f2_ref) assert f2.run_number==f2_ref['run_number'] @@ -113,9 +113,9 @@ class AthFileTest(unittest.TestCase): f3 = af.fopen(fname) if verbose: - print "::: f3.fileinfos:" - print f3.fileinfos - f3_ref = {'file_md5sum':'85f7b3d2da72cb387a8345091c2e00ca','metadata_items': [('EventStreamInfo', 'Stream1'), ('DataHeader', ';00;MetaDataSvc'), ('IOVMetaDataContainer', '/Digitization/Parameters'), ('IOVMetaDataContainer', '/Simulation/Parameters')], 'stream_names': ['Stream1'], 'run_type': ['N/A'], 'stream_tags': [], 'tag_info': {'/TRT/Cond/StatusPermanent': 'TrtStrawStatusPerm-02_test', '/TRT/Cond/Status': 'TrtStrawStatus-02', '/LAR/Identifier/FebRodAtlas': 'FebRodAtlas-005', '/LAR/ElecCalibMC': 'LARElecCalibMC-CSC02-J-QGSP_BERT', 'GeoAtlas': 'ATLAS-GEO-02-01-00', '/LAR/Identifier/LArTTCellMapAtlas': 'LARIdentifierLArTTCellMapAtlas-DC3-05', 'AtlasRelease': 'AtlasProduction-14.2.25.3', 'TGC_support': 'TGC Big Wheel', '/GLOBAL/BField/Map': 'BFieldMap-000', 'IOVDbGlobalTag': 'OFLCOND-SIM-00-00-00', 'MDT_support': 'MDT Big Wheel', '/LAR/Identifier/OnOffIdAtlas': 'OnOffIdAtlas-012'}, 'file_type': 'pool', 'file_name': '/afs/cern.ch/atlas/offline/ReleaseData/v3/testfile/valid1.005200.T1_McAtNlo_Jimmy.digit.RDO.e322_s488_d151_tid039414_RDO.039414._00001_extract_10evt.pool.root', 'file_guid': 'E29E4282-D8ED-DD11-8435-000423D59D52', 'beam_type': ['N/A'], 'lumi_block': [0L], 'conditions_tag': 'OFLCOND-SIM-00-00-00', 'det_descr_tags': {'/TRT/Cond/StatusPermanent': 'TrtStrawStatusPerm-02_test', '/TRT/Cond/Status': 'TrtStrawStatus-02', '/LAR/Identifier/FebRodAtlas': 'FebRodAtlas-005', '/LAR/ElecCalibMC': 'LARElecCalibMC-CSC02-J-QGSP_BERT', 'GeoAtlas': 'ATLAS-GEO-02-01-00', '/LAR/Identifier/LArTTCellMapAtlas': 'LARIdentifierLArTTCellMapAtlas-DC3-05', 'AtlasRelease': 'AtlasProduction-14.2.25.3', 'TGC_support': 'TGC Big Wheel', '/GLOBAL/BField/Map': 'BFieldMap-000', 'IOVDbGlobalTag': 'OFLCOND-SIM-00-00-00', 'MDT_support': 'MDT Big Wheel', '/LAR/Identifier/OnOffIdAtlas': 'OnOffIdAtlas-012'}, 'nentries': 10L, 'eventdata_items': [('EventInfo', 'McEventInfo'), ('PixelRDO_Container', 'PixelRDOs'), ('SCT_RDO_Container', 'SCT_RDOs'), ('TRT_RDO_Container', 'TRT_RDOs'), ('InDetSimDataCollection', 'BCM_SDO_Map'), ('InDetSimDataCollection', 'PixelSDO_Map'), ('InDetSimDataCollection', 'SCT_SDO_Map'), ('InDetSimDataCollection', 'TRT_SDO_Map'), ('BCM_RDO_Container', 'BCM_RDOs'), ('LArDigitContainer', 'LArDigitContainer_MC_Thinned'), ('LArRawChannelContainer', 'LArRawChannels'), ('LArTTL1Container', 'LArTTL1EM'), ('LArTTL1Container', 'LArTTL1HAD'), ('TileRawChannelContainer', 'TileRawChannelCnt'), ('TileTTL1Container', 'TileTTL1Cnt'), ('TileTTL1Container', 'TileTTL1MBTS'), ('TileHitVector', 'MBTSHits'), ('CscRawDataContainer', 'CSCRDO'), ('TgcRdoContainer', 'TGCRDO'), ('MdtCsmContainer', 'MDTCSM'), ('RpcPadContainer', 'RPCPAD'), ('ROIB::RoIBResult', 'RoIBResult'), ('CTP_RDO', 'CTP_RDO'), ('DataVector<LVL1::JetElement>', 'JetElements'), ('DataVector<LVL1::TriggerTower>', 'TriggerTowers'), ('MuCTPI_RDO', 'MUCTPI_RDO'), ('McEventCollection', 'TruthEvent'), ('DataVector<LVL1::JEMEtSums>', 'JEMEtSums'), ('MuonSimDataCollection', 'MDT_SDO'), ('MuonSimDataCollection', 'RPC_SDO'), ('MuonSimDataCollection', 'TGC_SDO'), ('DataVector<LVL1::CPMTower>', 'CPMTowers'), ('DataVector<LVL1::CPMHits>', 'CPMHits'), ('DataVector<LVL1::CMMEtSums>', 'CMMEtSums'), ('DataVector<LVL1::JEMRoI>', 'JEMRoIs'), ('LVL1::CMMRoI', 'CMMRoIs'), ('DataVector<LVL1::JEMHits>', 'JEMHits'), ('DataVector<LVL1::CPMRoI>', 'CPMRoIs'), ('DataVector<LVL1::CMMJetHits>', 'CMMJetHits'), ('DataVector<LVL1::CMMCPHits>', 'CMMCPHits'), ('CscSimDataCollection', 'CSC_SDO'), ('TrackRecordCollection', 'CaloEntryLayer'), ('TrackRecordCollection', 'MuonEntryLayer'), ('TrackRecordCollection', 'MuonExitLayer'), ('CaloCalibrationHitContainer', 'LArCalibrationHitActive'), ('CaloCalibrationHitContainer', 'LArCalibrationHitDeadMaterial'), ('CaloCalibrationHitContainer', 'LArCalibrationHitInactive'), ('DataHeader', 'Stream1')], 'run_number': [5200L], 'beam_energy': ['N/A'], 'geometry': 'ATLAS-GEO-02-01-00', 'evt_number': [30002L], 'evt_type': ('IS_SIMULATION', 'IS_ATLAS', 'IS_PHYSICS'), 'metadata': {'/Digitization/Parameters': {'physicsList': 'QGSP_BERT', 'N_beamGasInputFiles': 0, 'doBeamHalo': False, 'N_cavernInputFiles': 0, 'overrideMetadata': False, 'numberOfBeamHalo': 1.0, 'doCavern': False, 'IOVDbGlobalTag': 'default', 'N_beamHaloInputFiles': 0, 'initialBunchCrossing': -36, 'doCaloNoise': True, 'N_minBiasInputFiles': 0, 'numberOfCollisions': 0.0, 'rndmSvc': 'AtRanluxGenSvc', 'rndmSeedList': ['BCM_Digitization 49261511 105132395', 'PixelDigitization 10513240 492615105', 'SCT_Digitization 49261511 105132395', 'TRT_ElectronicsNoise 124 346', 'TRT_Noise 1235 3457', 'TRT_ThresholdFluctuations 12346 34568', 'TRT_ProcessStraw 123457 345679', 'TRT_SimDriftTime 1234568 3456790', 'TRT_PAI 12345679 34567891', 'TRT_FakeConditions 123456790 345678902', 'LArDigitization 1235 5679', 'Tile_HitVecToCnt 4789900 989240513', 'Tile_DigitsMaker 4789900 989240513', 'CSC_Digitization 49261511 105132395', 'MDTResponse 49261511 105132395', 'MDT_Digitization 49261511 105132395', 'MDT_DigitizationTwin 393242562 857132382', 'TGC_Digitization 49261511 105132395', 'RPC_Digitization 49261511 105132395', 'CscDigitToCscRDOTool 49261511 105132395', 'Tile_HitToTTL1 4789900 989240513', 'CTPSimulation 1979283044 1924452190'], 'numberOfCavern': 2, 'doMuonNoise': True, 'doInDetNoise': True,'numberOfBeamGas': 1.0, 'finalBunchCrossing': 32, 'doBeamGas': False, 'doMinimumBias': False, 'bunchSpacing': 25, 'DetDescrVersion': 'ATLAS-GEO-02-01-00', 'lvl1TriggerMenu': 'lumi1E31_no_Bphysics_no_prescale', 'rndmSeedOffset2': 1, 'rndmSeedOffset1': 1}, '/Simulation/Parameters': {'EtaPhiStatus': True, 'PhysicsList': 'QGSP_BERT', 'CalibrationRun': 'DeadLAr', 'SimLayout': 'ATLAS-GEO-02-01-00', 'DoLArBirk': False, 'LArParameterization': 0, 'MagneticField': 'OracleDB', 'WorldRRange': 'default', 'SeedsG4': 'default', 'NeutronTimeCut': 150.0, 'WorldZRange': 'default', 'Seeds': 'default', 'G4Version': 'geant4.9.1.patch03.atlas01', 'RunType': 'atlas', 'VertexStatus': True, 'IOVDbGlobalTag': 'default', 'VRangeStatus': True}}} + print ("::: f3.fileinfos:") + print (f3.fileinfos) + f3_ref = {'file_md5sum':'85f7b3d2da72cb387a8345091c2e00ca','metadata_items': [('EventStreamInfo', 'Stream1'), ('DataHeader', ';00;MetaDataSvc'), ('IOVMetaDataContainer', '/Digitization/Parameters'), ('IOVMetaDataContainer', '/Simulation/Parameters')], 'stream_names': ['Stream1'], 'run_type': ['N/A'], 'stream_tags': [], 'tag_info': {'/TRT/Cond/StatusPermanent': 'TrtStrawStatusPerm-02_test', '/TRT/Cond/Status': 'TrtStrawStatus-02', '/LAR/Identifier/FebRodAtlas': 'FebRodAtlas-005', '/LAR/ElecCalibMC': 'LARElecCalibMC-CSC02-J-QGSP_BERT', 'GeoAtlas': 'ATLAS-GEO-02-01-00', '/LAR/Identifier/LArTTCellMapAtlas': 'LARIdentifierLArTTCellMapAtlas-DC3-05', 'AtlasRelease': 'AtlasProduction-14.2.25.3', 'TGC_support': 'TGC Big Wheel', '/GLOBAL/BField/Map': 'BFieldMap-000', 'IOVDbGlobalTag': 'OFLCOND-SIM-00-00-00', 'MDT_support': 'MDT Big Wheel', '/LAR/Identifier/OnOffIdAtlas': 'OnOffIdAtlas-012'}, 'file_type': 'pool', 'file_name': '/afs/cern.ch/atlas/offline/ReleaseData/v3/testfile/valid1.005200.T1_McAtNlo_Jimmy.digit.RDO.e322_s488_d151_tid039414_RDO.039414._00001_extract_10evt.pool.root', 'file_guid': 'E29E4282-D8ED-DD11-8435-000423D59D52', 'beam_type': ['N/A'], 'lumi_block': [0], 'conditions_tag': 'OFLCOND-SIM-00-00-00', 'det_descr_tags': {'/TRT/Cond/StatusPermanent': 'TrtStrawStatusPerm-02_test', '/TRT/Cond/Status': 'TrtStrawStatus-02', '/LAR/Identifier/FebRodAtlas': 'FebRodAtlas-005', '/LAR/ElecCalibMC': 'LARElecCalibMC-CSC02-J-QGSP_BERT', 'GeoAtlas': 'ATLAS-GEO-02-01-00', '/LAR/Identifier/LArTTCellMapAtlas': 'LARIdentifierLArTTCellMapAtlas-DC3-05', 'AtlasRelease': 'AtlasProduction-14.2.25.3', 'TGC_support': 'TGC Big Wheel', '/GLOBAL/BField/Map': 'BFieldMap-000', 'IOVDbGlobalTag': 'OFLCOND-SIM-00-00-00', 'MDT_support': 'MDT Big Wheel', '/LAR/Identifier/OnOffIdAtlas': 'OnOffIdAtlas-012'}, 'nentries': 10, 'eventdata_items': [('EventInfo', 'McEventInfo'), ('PixelRDO_Container', 'PixelRDOs'), ('SCT_RDO_Container', 'SCT_RDOs'), ('TRT_RDO_Container', 'TRT_RDOs'), ('InDetSimDataCollection', 'BCM_SDO_Map'), ('InDetSimDataCollection', 'PixelSDO_Map'), ('InDetSimDataCollection', 'SCT_SDO_Map'), ('InDetSimDataCollection', 'TRT_SDO_Map'), ('BCM_RDO_Container', 'BCM_RDOs'), ('LArDigitContainer', 'LArDigitContainer_MC_Thinned'), ('LArRawChannelContainer', 'LArRawChannels'), ('LArTTL1Container', 'LArTTL1EM'), ('LArTTL1Container', 'LArTTL1HAD'), ('TileRawChannelContainer', 'TileRawChannelCnt'), ('TileTTL1Container', 'TileTTL1Cnt'), ('TileTTL1Container', 'TileTTL1MBTS'), ('TileHitVector', 'MBTSHits'), ('CscRawDataContainer', 'CSCRDO'), ('TgcRdoContainer', 'TGCRDO'), ('MdtCsmContainer', 'MDTCSM'), ('RpcPadContainer', 'RPCPAD'), ('ROIB::RoIBResult', 'RoIBResult'), ('CTP_RDO', 'CTP_RDO'), ('DataVector<LVL1::JetElement>', 'JetElements'), ('DataVector<LVL1::TriggerTower>', 'TriggerTowers'), ('MuCTPI_RDO', 'MUCTPI_RDO'), ('McEventCollection', 'TruthEvent'), ('DataVector<LVL1::JEMEtSums>', 'JEMEtSums'), ('MuonSimDataCollection', 'MDT_SDO'), ('MuonSimDataCollection', 'RPC_SDO'), ('MuonSimDataCollection', 'TGC_SDO'), ('DataVector<LVL1::CPMTower>', 'CPMTowers'), ('DataVector<LVL1::CPMHits>', 'CPMHits'), ('DataVector<LVL1::CMMEtSums>', 'CMMEtSums'), ('DataVector<LVL1::JEMRoI>', 'JEMRoIs'), ('LVL1::CMMRoI', 'CMMRoIs'), ('DataVector<LVL1::JEMHits>', 'JEMHits'), ('DataVector<LVL1::CPMRoI>', 'CPMRoIs'), ('DataVector<LVL1::CMMJetHits>', 'CMMJetHits'), ('DataVector<LVL1::CMMCPHits>', 'CMMCPHits'), ('CscSimDataCollection', 'CSC_SDO'), ('TrackRecordCollection', 'CaloEntryLayer'), ('TrackRecordCollection', 'MuonEntryLayer'), ('TrackRecordCollection', 'MuonExitLayer'), ('CaloCalibrationHitContainer', 'LArCalibrationHitActive'), ('CaloCalibrationHitContainer', 'LArCalibrationHitDeadMaterial'), ('CaloCalibrationHitContainer', 'LArCalibrationHitInactive'), ('DataHeader', 'Stream1')], 'run_number': [5200], 'beam_energy': ['N/A'], 'geometry': 'ATLAS-GEO-02-01-00', 'evt_number': [30002], 'evt_type': ('IS_SIMULATION', 'IS_ATLAS', 'IS_PHYSICS'), 'metadata': {'/Digitization/Parameters': {'physicsList': 'QGSP_BERT', 'N_beamGasInputFiles': 0, 'doBeamHalo': False, 'N_cavernInputFiles': 0, 'overrideMetadata': False, 'numberOfBeamHalo': 1.0, 'doCavern': False, 'IOVDbGlobalTag': 'default', 'N_beamHaloInputFiles': 0, 'initialBunchCrossing': -36, 'doCaloNoise': True, 'N_minBiasInputFiles': 0, 'numberOfCollisions': 0.0, 'rndmSvc': 'AtRanluxGenSvc', 'rndmSeedList': ['BCM_Digitization 49261511 105132395', 'PixelDigitization 10513240 492615105', 'SCT_Digitization 49261511 105132395', 'TRT_ElectronicsNoise 124 346', 'TRT_Noise 1235 3457', 'TRT_ThresholdFluctuations 12346 34568', 'TRT_ProcessStraw 123457 345679', 'TRT_SimDriftTime 1234568 3456790', 'TRT_PAI 12345679 34567891', 'TRT_FakeConditions 123456790 345678902', 'LArDigitization 1235 5679', 'Tile_HitVecToCnt 4789900 989240513', 'Tile_DigitsMaker 4789900 989240513', 'CSC_Digitization 49261511 105132395', 'MDTResponse 49261511 105132395', 'MDT_Digitization 49261511 105132395', 'MDT_DigitizationTwin 393242562 857132382', 'TGC_Digitization 49261511 105132395', 'RPC_Digitization 49261511 105132395', 'CscDigitToCscRDOTool 49261511 105132395', 'Tile_HitToTTL1 4789900 989240513', 'CTPSimulation 1979283044 1924452190'], 'numberOfCavern': 2, 'doMuonNoise': True, 'doInDetNoise': True,'numberOfBeamGas': 1.0, 'finalBunchCrossing': 32, 'doBeamGas': False, 'doMinimumBias': False, 'bunchSpacing': 25, 'DetDescrVersion': 'ATLAS-GEO-02-01-00', 'lvl1TriggerMenu': 'lumi1E31_no_Bphysics_no_prescale', 'rndmSeedOffset2': 1, 'rndmSeedOffset1': 1}, '/Simulation/Parameters': {'EtaPhiStatus': True, 'PhysicsList': 'QGSP_BERT', 'CalibrationRun': 'DeadLAr', 'SimLayout': 'ATLAS-GEO-02-01-00', 'DoLArBirk': False, 'LArParameterization': 0, 'MagneticField': 'OracleDB', 'WorldRRange': 'default', 'SeedsG4': 'default', 'NeutronTimeCut': 150.0, 'WorldZRange': 'default', 'Seeds': 'default', 'G4Version': 'geant4.9.1.patch03.atlas01', 'RunType': 'atlas', 'VertexStatus': True, 'IOVDbGlobalTag': 'default', 'VRangeStatus': True}}} _compare_fileinfos(f3,f3_ref) assert f3.run_number==f3_ref['run_number'] assert f3.evt_number==f3_ref['evt_number'] @@ -133,8 +133,8 @@ class AthFileTest(unittest.TestCase): f4 = af.fopen(fname) if verbose: - print "::: f4.fileinfos:" - print f4.fileinfos + print ("::: f4.fileinfos:") + print (f4.fileinfos) f4_ref = {'file_md5sum':'519643438bf3a0e7a1e637463d73d9e9','metadata_items': [('DataHeader', ';00;MetaDataSvc'), ('EventBookkeeperCollection', 'EventBookkeepers'), ('EventBookkeeperCollection', 'EventSelector.Counter'), ('EventStreamInfo', 'DPD_EGAMTAUCOMM'), ('IOVMetaDataContainer', '/GLOBAL/DETSTATUS/LBSUMM'), ('IOVMetaDataContainer', '/TRIGGER/HLT/HltConfigKeys'), ('IOVMetaDataContainer', '/TRIGGER/HLT/Menu'), ('IOVMetaDataContainer', '/TRIGGER/LVL1/Lvl1ConfigKey'), ('IOVMetaDataContainer', '/TRIGGER/LVL1/Menu'), ('IOVMetaDataContainer', '/TRIGGER/LVL1/Prescales'), ('IOVMetaDataContainer', '/TagInfo'), ('LumiBlockCollection', 'IncompleteLumiBlocks')], 'stream_names': ['DPD_EGAMTAUCOMM'], 'run_type': ['N/A'], 'stream_tags': [], 'tag_info': {'/TRT/Cond/StatusPermanent': 'TrtStrawStatusPerm-02_test', '/CALO/HadCalibration/CaloDMCorr2': 'CaloHadDMCorr-002-00', 'GeoAtlas': 'ATLAS-GEO-03-00-00', '/CALO/EMTopoClusterCorrections/topophioff': 'EMTopoClusterCorrections.topophioff-v2', '/CALO/EMTopoClusterCorrections/topogap': 'EMTopoClusterCorrections.topogap-v1', 'AtlasRelease': 'any', 'IOVDbGlobalTag': 'COMCOND-ES1C-000-00', '/CALO/CaloSwClusterCorrections/etaoff': 'CaloSwClusterCorrections.etaoff-v4_1', '/GLOBAL/TrackingGeo/LayerMaterial': 'TagInfo/AtlasLayerMat_v11_/GeoAtlas', '/CALO/CaloSwClusterCorrections/phioff': 'CaloSwClusterCorrections.phioff-v4', '/LAR/Identifier/LArTTCellMapAtlas': 'LARIdentifierLArTTCellMapAtlas-DC3-05', '/CALO/HadCalibration/CaloOutOfClusterPi0': 'CaloHadOOCCorrPi0-003-01', '/CALO/EMTopoClusterCorrections/topolw': 'EMTopoClusterCorrections.topolw-v1', '/CALO/HadCalibration/H1ClusterCellWeights': 'CaloH1CellWeights-003-01', '/CALO/HadCalibration/CaloEMFrac': 'CaloEMFRac-003-01', '/CALO/HadCalibration/CaloOutOfCluster': 'CaloHadOOCCorr-003-01', '/CALO/CaloSwClusterCorrections/phimod': 'CaloSwClusterCorrections.phimod-v4', '/CALO/CaloSwClusterCorrections/etamod': 'CaloSwClusterCorrections.etamod-v4', 'AMITag': 'f57', '/CALO/CaloSwClusterCorrections/rfac': 'CaloSwClusterCorrections.rfac-v4', '/CALO/CaloSwClusterCorrections/calhits': 'CaloSwClusterCorrections.calhits-v5', '/CALO/CaloSwClusterCorrections/trcorr': 'CaloSwClusterCorrections.trcorr-v5', '/CALO/H1Weights/H1WeightsConeTopo': 'CaloH1WeightsConeTopo-00-000', '/CALO/EMTopoClusterCorrections/topoetaoff': 'EMTopoClusterCorrections.topoetaoff-v1', '/CALO/CaloSwClusterCorrections/gap': 'CaloSwClusterCorrections.gap-v4', '/CALO/EMTopoClusterCorrections/topophimod': 'EMTopoClusterCorrections.topophimod-v1'}, 'file_type': 'pool', 'file_name': 'root://eosatlas.cern.ch//eos/atlas/user/b/binet/regr-tests/athfile/empty-file.pool', 'file_guid': 'CC6B79F4-043E-DE11-BD81-000423D67862', 'conditions_tag': 'COMCOND-ES1C-000-00', 'beam_type': ['N/A'], 'lumi_block': [], 'det_descr_tags': {'/TRT/Cond/StatusPermanent': 'TrtStrawStatusPerm-02_test', '/CALO/HadCalibration/CaloDMCorr2': 'CaloHadDMCorr-002-00', 'GeoAtlas': 'ATLAS-GEO-03-00-00', '/CALO/EMTopoClusterCorrections/topophioff': 'EMTopoClusterCorrections.topophioff-v2', '/CALO/EMTopoClusterCorrections/topogap': 'EMTopoClusterCorrections.topogap-v1', 'AtlasRelease': 'any', 'IOVDbGlobalTag': 'COMCOND-ES1C-000-00', '/CALO/CaloSwClusterCorrections/etaoff': 'CaloSwClusterCorrections.etaoff-v4_1', '/GLOBAL/TrackingGeo/LayerMaterial': 'TagInfo/AtlasLayerMat_v11_/GeoAtlas', '/CALO/CaloSwClusterCorrections/phioff': 'CaloSwClusterCorrections.phioff-v4', '/LAR/Identifier/LArTTCellMapAtlas': 'LARIdentifierLArTTCellMapAtlas-DC3-05', '/CALO/HadCalibration/CaloOutOfClusterPi0': 'CaloHadOOCCorrPi0-003-01', '/CALO/EMTopoClusterCorrections/topolw': 'EMTopoClusterCorrections.topolw-v1', '/CALO/HadCalibration/H1ClusterCellWeights': 'CaloH1CellWeights-003-01', '/CALO/HadCalibration/CaloEMFrac': 'CaloEMFRac-003-01', '/CALO/HadCalibration/CaloOutOfCluster': 'CaloHadOOCCorr-003-01', '/CALO/CaloSwClusterCorrections/phimod': 'CaloSwClusterCorrections.phimod-v4', '/CALO/CaloSwClusterCorrections/etamod': 'CaloSwClusterCorrections.etamod-v4', 'AMITag': 'f57', '/CALO/CaloSwClusterCorrections/rfac': 'CaloSwClusterCorrections.rfac-v4', '/CALO/CaloSwClusterCorrections/calhits': 'CaloSwClusterCorrections.calhits-v5', '/CALO/CaloSwClusterCorrections/trcorr': 'CaloSwClusterCorrections.trcorr-v5', '/CALO/H1Weights/H1WeightsConeTopo': 'CaloH1WeightsConeTopo-00-000', '/CALO/EMTopoClusterCorrections/topoetaoff': 'EMTopoClusterCorrections.topoetaoff-v1', '/CALO/CaloSwClusterCorrections/gap': 'CaloSwClusterCorrections.gap-v4', '/CALO/EMTopoClusterCorrections/topophimod': 'EMTopoClusterCorrections.topophimod-v1'}, 'nentries': 0, 'eventdata_items': [], 'run_number': [], 'beam_energy': ['N/A'], 'geometry': 'ATLAS-GEO-03-00-00', 'evt_number': [], 'evt_type': [], 'metadata': None} f4.fileinfos['tag_info']['AtlasRelease'] = 'any' @@ -159,9 +159,9 @@ class AthFileTest(unittest.TestCase): f5 = af.fopen(fname) if verbose: - print "::: f5.fileinfos:" - print f5.fileinfos - f5_ref = {'file_md5sum':'b109aa2689abeb8aa282605c29087d64', 'metadata_items': [], 'stream_names': ['Stream1'], 'run_type': ['N/A'], 'stream_tags': [], 'tag_info': {'AtlasRelease': 'AtlasOffline-12.0.31', 'GeoAtlas': 'ATLAS-CSC-01-02-00', 'IOVDbGlobalTag': 'OFLCOND-CSC-00-01-00'}, 'file_type': 'pool', 'file_name': 'root://eosatlas.cern.ch//eos/atlas/user/b/binet/regr-tests/athfile/calib1_csc11.005200.T1_McAtNlo_Jimmy.simul.HITS.v12003104_tid004131._00069.pool.root.10', 'file_guid': '00C5C040-EB75-DB11-9308-00E0812B9987', 'beam_type': ['N/A'], 'lumi_block': [0L], 'conditions_tag': 'OFLCOND-CSC-00-01-00', 'det_descr_tags': {'AtlasRelease': 'AtlasOffline-12.0.31', 'GeoAtlas': 'ATLAS-CSC-01-02-00', 'IOVDbGlobalTag': 'OFLCOND-CSC-00-01-00'}, 'nentries': 50L, 'eventdata_items': [('EventInfo', 'McEventInfo'), ('SiHitCollection', 'PixelHits'), ('SiHitCollection', 'SCT_Hits'), ('LArHitContainer', 'LArHitEMB'), ('LArHitContainer', 'LArHitEMEC'), ('LArHitContainer', 'LArHitFCAL'), ('LArHitContainer', 'LArHitHEC'), ('TileHitVector', 'MBTSHits'), ('TileHitVector', 'TileHitVec'), ('RPCSimHitCollection', 'RPC_Hits'), ('TGCSimHitCollection', 'TGC_Hits'), ('CSCSimHitCollection', 'CSC_Hits'), ('MDTSimHitCollection', 'MDT_Hits'), ('McEventCollection', 'TruthEvent'), ('TRTUncompressedHitCollection', 'TRTUncompressedHits'), ('TrackRecordCollection', 'CaloEntryLayer'), ('TrackRecordCollection', 'MuonEntryLayer'), ('TrackRecordCollection', 'MuonExitLayer'), ('CaloCalibrationHitContainer', 'LArCalibrationHitActive'), ('CaloCalibrationHitContainer', 'LArCalibrationHitDeadMaterial'), ('CaloCalibrationHitContainer', 'LArCalibrationHitInactive'), ('CaloCalibrationHitContainer', 'TileCalibrationCellHitCnt'), ('CaloCalibrationHitContainer', 'TileCalibrationDMHitCnt'), ('DataHeader', 'Stream1')], 'run_number': [5200L], 'beam_energy': ['N/A'], 'geometry': 'ATLAS-CSC-01-02-00', 'evt_number': [6136L], 'evt_type': ('IS_SIMULATION', 'IS_ATLAS', 'IS_PHYSICS'), 'metadata': {}} + print ("::: f5.fileinfos:") + print (f5.fileinfos) + f5_ref = {'file_md5sum':'b109aa2689abeb8aa282605c29087d64', 'metadata_items': [], 'stream_names': ['Stream1'], 'run_type': ['N/A'], 'stream_tags': [], 'tag_info': {'AtlasRelease': 'AtlasOffline-12.0.31', 'GeoAtlas': 'ATLAS-CSC-01-02-00', 'IOVDbGlobalTag': 'OFLCOND-CSC-00-01-00'}, 'file_type': 'pool', 'file_name': 'root://eosatlas.cern.ch//eos/atlas/user/b/binet/regr-tests/athfile/calib1_csc11.005200.T1_McAtNlo_Jimmy.simul.HITS.v12003104_tid004131._00069.pool.root.10', 'file_guid': '00C5C040-EB75-DB11-9308-00E0812B9987', 'beam_type': ['N/A'], 'lumi_block': [0], 'conditions_tag': 'OFLCOND-CSC-00-01-00', 'det_descr_tags': {'AtlasRelease': 'AtlasOffline-12.0.31', 'GeoAtlas': 'ATLAS-CSC-01-02-00', 'IOVDbGlobalTag': 'OFLCOND-CSC-00-01-00'}, 'nentries': 50, 'eventdata_items': [('EventInfo', 'McEventInfo'), ('SiHitCollection', 'PixelHits'), ('SiHitCollection', 'SCT_Hits'), ('LArHitContainer', 'LArHitEMB'), ('LArHitContainer', 'LArHitEMEC'), ('LArHitContainer', 'LArHitFCAL'), ('LArHitContainer', 'LArHitHEC'), ('TileHitVector', 'MBTSHits'), ('TileHitVector', 'TileHitVec'), ('RPCSimHitCollection', 'RPC_Hits'), ('TGCSimHitCollection', 'TGC_Hits'), ('CSCSimHitCollection', 'CSC_Hits'), ('MDTSimHitCollection', 'MDT_Hits'), ('McEventCollection', 'TruthEvent'), ('TRTUncompressedHitCollection', 'TRTUncompressedHits'), ('TrackRecordCollection', 'CaloEntryLayer'), ('TrackRecordCollection', 'MuonEntryLayer'), ('TrackRecordCollection', 'MuonExitLayer'), ('CaloCalibrationHitContainer', 'LArCalibrationHitActive'), ('CaloCalibrationHitContainer', 'LArCalibrationHitDeadMaterial'), ('CaloCalibrationHitContainer', 'LArCalibrationHitInactive'), ('CaloCalibrationHitContainer', 'TileCalibrationCellHitCnt'), ('CaloCalibrationHitContainer', 'TileCalibrationDMHitCnt'), ('DataHeader', 'Stream1')], 'run_number': [5200], 'beam_energy': ['N/A'], 'geometry': 'ATLAS-CSC-01-02-00', 'evt_number': [6136], 'evt_type': ('IS_SIMULATION', 'IS_ATLAS', 'IS_PHYSICS'), 'metadata': {}} _compare_fileinfos(f5,f5_ref) assert f5.run_number==f5_ref['run_number'] assert f5.evt_number==f5_ref['evt_number'] @@ -180,9 +180,9 @@ class AthFileTest(unittest.TestCase): assert af.ftype(fname) == ('pool', 'root://eosatlas.cern.ch//eos/atlas/user/b/binet/regr-tests/athfile/testSim.0011.mu_pt5_eta60.EVGEN.pool.root') f6 = af.fopen(fname) if verbose: - print "::: f6.fileinfos:" - print f6.fileinfos - f6_ref = {'file_md5sum':'b6b58e325235b4fbbf0aebd5e028ab08', 'metadata_items': [], 'stream_names': ['Stream1'], 'run_type': ['N/A'], 'stream_tags': [], 'tag_info': {'AtlasRelease': 'any'}, 'file_type': 'pool', 'file_name': 'root://eosatlas.cern.ch//eos/atlas/user/b/binet/regr-tests/athfile/testSim.0011.mu_pt5_eta60.EVGEN.pool.root', 'file_guid': 'ACC40752-51BB-DB11-8437-000423D65662', 'beam_type': ['N/A'], 'lumi_block': [0L], 'conditions_tag': None, 'det_descr_tags': {'AtlasRelease': 'any'}, 'nentries': 1053L, 'eventdata_items': [('EventInfo', 'McEventInfo'), ('McEventCollection', 'GEN_EVENT'), ('DataHeader', 'Stream1')], 'run_number': [11L], 'beam_energy': ['N/A'], 'geometry': None, 'evt_number': [1L], 'evt_type': ('IS_SIMULATION', 'IS_ATLAS', 'IS_PHYSICS'), 'metadata': {}} + print ("::: f6.fileinfos:") + print (f6.fileinfos) + f6_ref = {'file_md5sum':'b6b58e325235b4fbbf0aebd5e028ab08', 'metadata_items': [], 'stream_names': ['Stream1'], 'run_type': ['N/A'], 'stream_tags': [], 'tag_info': {'AtlasRelease': 'any'}, 'file_type': 'pool', 'file_name': 'root://eosatlas.cern.ch//eos/atlas/user/b/binet/regr-tests/athfile/testSim.0011.mu_pt5_eta60.EVGEN.pool.root', 'file_guid': 'ACC40752-51BB-DB11-8437-000423D65662', 'beam_type': ['N/A'], 'lumi_block': [0], 'conditions_tag': None, 'det_descr_tags': {'AtlasRelease': 'any'}, 'nentries': 1053, 'eventdata_items': [('EventInfo', 'McEventInfo'), ('McEventCollection', 'GEN_EVENT'), ('DataHeader', 'Stream1')], 'run_number': [11], 'beam_energy': ['N/A'], 'geometry': None, 'evt_number': [1], 'evt_type': ('IS_SIMULATION', 'IS_ATLAS', 'IS_PHYSICS'), 'metadata': {}} f6.fileinfos['tag_info']['AtlasRelease'] = 'any' f6.fileinfos['det_descr_tags']['AtlasRelease'] = 'any' _compare_fileinfos(f6,f6_ref) @@ -204,9 +204,9 @@ class AthFileTest(unittest.TestCase): f7 = af.fopen(fname) if verbose: - print "::: f7.fileinfos:" - print f7.fileinfos - f7_ref = {'file_md5sum':'c52c2056f049094abe559af10216937c', 'metadata_items': [('EventStreamInfo', 'StreamESD'), ('LumiBlockCollection', 'LumiBlocks'), ('DataHeader', ';00;MetaDataSvc'), ('IOVMetaDataContainer', '/GLOBAL/DETSTATUS/LBSUMM'), ('IOVMetaDataContainer', '/TagInfo')], 'stream_names': ['StreamESD'], 'run_type': ['N/A'], 'stream_tags': [{'obeys_lbk': True, 'stream_type': 'physics', 'stream_name': 'IDCosmic'}], 'tag_info': {'/TRT/Cond/StatusPermanent': 'TrtStrawStatusPermanent-01', '/GLOBAL/BTagCalib/IP3D': 'BTagCalib-03-00', '/CALO/HadCalibration/CaloDMCorr2': 'CaloHadDMCorr-002-00', '/MUONALIGN/MDT/ENDCAP/SIDEC': 'MuonAlignMDTEndCapCAlign-REPRO-08', '/MUONALIGN/MDT/BARREL': 'MuonAlignMDTBarrelAlign-0100-SEC0109', '/CALO/H1Weights/H1WeightsCone4Topo': 'CaloH1WeightsCone4Topo-02-000', '/TILE/OFL01/CALIB/LAS/LIN': 'TileOfl01CalibLasLin-HLT-UPD1-00', 'GeoAtlas': 'ATLAS-GEO-03-00-00', '/CALO/EMTopoClusterCorrections/topophioff': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/CALO/EMTopoClusterCorrections/topogap': 'EMTopoClusterCorrections-00-02-00-DC3-v2', 'AtlasRelease': 'any', 'IOVDbGlobalTag': 'COMCOND-ES1C-001-01', '/MUONALIGN/TGC/SIDEA': 'MuonAlignTGCEndCapAAlign-REPRO-01', '/MUONALIGN/TGC/SIDEC': 'MuonAlignTGCEndCapCAlign-REPRO-01', '/CALO/CaloSwClusterCorrections/larupdate': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/clcon': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/etaoff': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/phimod': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/TILE/OFL01/CALIB/CES': 'TileOfl01CalibCes-HLT-UPD1-01', '/CALO/CaloSwClusterCorrections/trcorr': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/GLOBAL/BTagCalib/SV1': 'BTagCalib-03-00', '/MUONALIGN/MDT/ENDCAP/SIDEA': 'MuonAlignMDTEndCapAAlign-REPRO-08', '/CALO/HadCalibration/CaloOutOfClusterPi0': 'CaloHadOOCCorrPi0-CSC05-BERT', '/LAR/Identifier/LArTTCellMapAtlas': 'LARIdentifierLArTTCellMapAtlas-DC3-05', '/CALO/EMTopoClusterCorrections/topolw': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/CALO/HadCalibration/H1ClusterCellWeights': 'CaloH1CellWeights-CSC05-BERT', '/CALO/HadCalibration/CaloEMFrac': 'CaloEMFrac-CSC05-BERT', '/GLOBAL/BTagCalib/JetProb': 'BTagCalib-03-00', '/CALO/EMTopoClusterCorrections/larupdate': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/GLOBAL/BTagCalib/SoftEl': 'BTagCalib-03-00', '/CALO/CaloSwClusterCorrections/lwc': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/TILE/OFL01/CALIB/EMS': 'TileOfl01CalibEms-HLT-UPD1-01', '/CALO/HadCalibration/CaloOutOfCluster': 'CaloHadOOCCorr-CSC05-BERT', '/TILE/OFL01/CALIB/CIS/FIT/LIN': 'TileOfl01CalibCisFitLin-HLT-UPD1-00', '/GLOBAL/BTagCalib/IP2D': 'BTagCalib-03-00', '/GLOBAL/BTagCalib/JetFitter': 'BTagCalib-03-00', '/CALO/CaloSwClusterCorrections/etamod': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/GLOBAL/BTagCalib/SoftMu': 'BTagCalib-03-00', '/CALO/CaloSwClusterCorrections/rfac': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/calhits': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/phioff': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/H1Weights/H1WeightsConeTopo': 'CaloH1WeightsConeTopo-00-000', '/GLOBAL/TrackingGeo/LayerMaterial': 'TagInfo/AtlasLayerMat_v11_/GeoAtlas', '/CALO/EMTopoClusterCorrections/topoetaoffsw': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/CALO/EMTopoClusterCorrections/topoetaoff': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/CALO/CaloSwClusterCorrections/gap': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/EMTopoClusterCorrections/topophimod': 'EMTopoClusterCorrections-00-02-00-DC3-v2'}, 'file_type': 'pool', 'file_name': 'root://eosatlas.cern.ch//eos/atlas/user/b/binet/regr-tests/athfile/esd.commissionning.15.2.0.pool', 'file_guid': '487184A1-9343-DE11-AACC-001E4F3E5C1F', 'beam_type': ['N/A'], 'lumi_block': [1L], 'conditions_tag': 'COMCOND-ES1C-001-01', 'det_descr_tags': {'/TRT/Cond/StatusPermanent': 'TrtStrawStatusPermanent-01', '/GLOBAL/BTagCalib/IP3D': 'BTagCalib-03-00', '/CALO/HadCalibration/CaloDMCorr2': 'CaloHadDMCorr-002-00', '/MUONALIGN/MDT/ENDCAP/SIDEC': 'MuonAlignMDTEndCapCAlign-REPRO-08', '/MUONALIGN/MDT/BARREL': 'MuonAlignMDTBarrelAlign-0100-SEC0109', '/CALO/H1Weights/H1WeightsCone4Topo': 'CaloH1WeightsCone4Topo-02-000', '/TILE/OFL01/CALIB/LAS/LIN': 'TileOfl01CalibLasLin-HLT-UPD1-00', 'GeoAtlas': 'ATLAS-GEO-03-00-00', '/CALO/EMTopoClusterCorrections/topophioff': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/CALO/EMTopoClusterCorrections/topogap': 'EMTopoClusterCorrections-00-02-00-DC3-v2', 'AtlasRelease': 'any', 'IOVDbGlobalTag': 'COMCOND-ES1C-001-01', '/MUONALIGN/TGC/SIDEA': 'MuonAlignTGCEndCapAAlign-REPRO-01', '/MUONALIGN/TGC/SIDEC': 'MuonAlignTGCEndCapCAlign-REPRO-01', '/CALO/CaloSwClusterCorrections/larupdate': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/clcon': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/etaoff': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/phimod': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/TILE/OFL01/CALIB/CES': 'TileOfl01CalibCes-HLT-UPD1-01', '/CALO/CaloSwClusterCorrections/trcorr': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/GLOBAL/BTagCalib/SV1': 'BTagCalib-03-00', '/MUONALIGN/MDT/ENDCAP/SIDEA': 'MuonAlignMDTEndCapAAlign-REPRO-08', '/CALO/HadCalibration/CaloOutOfClusterPi0': 'CaloHadOOCCorrPi0-CSC05-BERT', '/LAR/Identifier/LArTTCellMapAtlas': 'LARIdentifierLArTTCellMapAtlas-DC3-05', '/CALO/EMTopoClusterCorrections/topolw': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/CALO/HadCalibration/H1ClusterCellWeights': 'CaloH1CellWeights-CSC05-BERT', '/CALO/HadCalibration/CaloEMFrac': 'CaloEMFrac-CSC05-BERT', '/GLOBAL/BTagCalib/JetProb': 'BTagCalib-03-00', '/CALO/EMTopoClusterCorrections/larupdate': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/GLOBAL/BTagCalib/SoftEl': 'BTagCalib-03-00', '/CALO/CaloSwClusterCorrections/lwc': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/TILE/OFL01/CALIB/EMS': 'TileOfl01CalibEms-HLT-UPD1-01', '/CALO/HadCalibration/CaloOutOfCluster': 'CaloHadOOCCorr-CSC05-BERT', '/TILE/OFL01/CALIB/CIS/FIT/LIN': 'TileOfl01CalibCisFitLin-HLT-UPD1-00', '/GLOBAL/BTagCalib/IP2D': 'BTagCalib-03-00', '/GLOBAL/BTagCalib/JetFitter': 'BTagCalib-03-00', '/CALO/CaloSwClusterCorrections/etamod': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/GLOBAL/BTagCalib/SoftMu': 'BTagCalib-03-00', '/CALO/CaloSwClusterCorrections/rfac': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/calhits': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/phioff': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/H1Weights/H1WeightsConeTopo': 'CaloH1WeightsConeTopo-00-000', '/GLOBAL/TrackingGeo/LayerMaterial': 'TagInfo/AtlasLayerMat_v11_/GeoAtlas', '/CALO/EMTopoClusterCorrections/topoetaoffsw': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/CALO/EMTopoClusterCorrections/topoetaoff': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/CALO/CaloSwClusterCorrections/gap': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/EMTopoClusterCorrections/topophimod': 'EMTopoClusterCorrections-00-02-00-DC3-v2'}, 'nentries': 10L, 'eventdata_items': [('EventInfo', 'ByteStreamEventInfo'), ('PixelRDO_Container', 'PixelRDOs'), ('SCT_RDO_Container', 'SCT_RDOs'), ('TRT_RDO_Container', 'TRT_RDOs'), ('InDet::PixelClusterContainer', 'PixelClusters'), ('InDet::SCT_ClusterContainer', 'SCT_Clusters'), ('BCM_RDO_Container', 'BCM_RDOs'), ('LArDigitContainer', 'LArDigitContainer_IIC'), ('LArDigitContainer', 'LArDigitContainer_Thinned'), ('CaloCellContainer', 'AllCalo'), ('CaloTowerContainer', 'CombinedTower'), ('CaloClusterContainer', 'CaloCalTopoCluster'), ('CaloClusterContainer', 'CaloTopoCluster'), ('CaloClusterContainer', 'EMTopoCluster430'), ('CaloClusterContainer', 'LArClusterEM'), ('CaloClusterContainer', 'LArClusterEM7_11Nocorr'), ('CaloClusterContainer', 'LArClusterEMFrwd'), ('CaloClusterContainer', 'LArClusterEMSofte'), ('CaloClusterContainer', 'LArMuClusterCandidates'), ('CaloClusterContainer', 'MuonClusterCollection'), ('CaloClusterContainer', 'Tau1P3PCellCluster'), ('CaloClusterContainer', 'Tau1P3PCellEM012ClusterContainer'), ('CaloClusterContainer', 'Tau1P3PPi0ClusterContainer'), ('CaloClusterContainer', 'egClusterCollection'), ('TileDigitsContainer', 'TileDigitsFlt'), ('TileCellContainer', 'MBTSContainer'), ('TileL2Container', 'TileL2Cnt'), ('TileMuContainer', 'TileMuObj'), ('TileCosmicMuonContainer', 'TileCosmicMuonHT'), ('ElectronContainer', 'ElectronAODCollection'), ('ElectronContainer', 'ElectronCollection'), ('PhotonContainer', 'PhotonAODCollection'), ('PhotonContainer', 'PhotonCollection'), ('ElectronContainer', 'egammaForwardCollection'), ('ElectronContainer', 'softeCollection'), ('Analysis::TauJetContainer', 'TauRecContainer'), ('JetKeyDescriptor', 'JetKeyMap'), ('MissingEtCalo', 'MET_Base'), ('MissingEtCalo', 'MET_Base0'), ('MissingEtCalo', 'MET_Calib'), ('MissingET', 'MET_CellOut'), ('MissingEtCalo', 'MET_CorrTopo'), ('MissingET', 'MET_Cryo'), ('MissingET', 'MET_CryoCone'), ('MissingET', 'MET_Final'), ('MissingEtCalo', 'MET_LocHadTopo'), ('MissingET', 'MET_LocHadTopoObj'), ('MissingET', 'MET_Muon'), ('MissingET', 'MET_MuonBoy'), ('MissingET', 'MET_MuonBoy_Spectro'), ('MissingET', 'MET_MuonBoy_Track'), ('MissingET', 'MET_RefEle'), ('MissingET', 'MET_RefFinal'), ('MissingET', 'MET_RefGamma'), ('MissingET', 'MET_RefJet'), ('MissingET', 'MET_RefTau'), ('MissingEtCalo', 'MET_Topo'), ('MissingET', 'MET_TopoObj'), ('Trk::SegmentCollection', 'ConvertedMBoySegments'), ('Trk::SegmentCollection', 'MooreSegments'), ('Trk::SegmentCollection', 'MuGirlSegments'), ('TrackCollection', 'CombinedInDetTracks'), ('TrackCollection', 'CombinedInDetTracks_CTB'), ('TrackCollection', 'Combined_Tracks'), ('TrackCollection', 'ConvertedMBoyMuonSpectroOnlyTracks'), ('TrackCollection', 'ConvertedMBoyTracks'), ('TrackCollection', 'ConvertedMuIdCBTracks'), ('TrackCollection', 'ConvertedMuTagTracks'), ('TrackCollection', 'ConvertedStacoTracks'), ('TrackCollection', 'MooreExtrapolatedTracks'), ('TrackCollection', 'MooreTracks'), ('TrackCollection', 'MuGirlRefittedTracks'), ('TrackCollection', 'MuTagIMOTracks'), ('TrackCollection', 'MuidExtrapolatedTracks'), ('TrackCollection', 'ResolvedPixelTracks_CTB'), ('TrackCollection', 'ResolvedSCTTracks_CTB'), ('TrackCollection', 'TRTStandaloneTRTTracks_CTB'), ('InDet::PixelGangedClusterAmbiguities', 'PixelClusterAmbiguitiesMap'), ('LArFebErrorSummary', 'LArFebErrorSummary'), ('ComTime', 'TRT_Phase'), ('Analysis::TauDetailsContainer', 'TauRecDetailsContainer'), ('Analysis::TauDetailsContainer', 'TauRecExtraDetailsContainer'), ('Muon::CscPrepDataContainer', 'CSC_Clusters'), ('Analysis::MuonContainer', 'CaloESDMuonCollection'), ('Analysis::MuonContainer', 'CaloMuonCollection'), ('Analysis::MuonContainer', 'MuGirlLowBetaCollection'), ('Analysis::MuonContainer', 'MuidESDMuonCollection'), ('Analysis::MuonContainer', 'MuidMuonCollection'), ('Analysis::MuonContainer', 'StacoESDMuonCollection'), ('Analysis::MuonContainer', 'StacoMuonCollection'), ('TRT_BSIdErrContainer', 'TRT_ByteStreamIdErrs'), ('InDet::TRT_DriftCircleContainer', 'TRT_DriftCircles'), ('Muon::MdtPrepDataContainer', 'MDT_DriftCircles'), ('JetCollection', 'Cone4H1TopoJets'), ('JetCollection', 'Cone4H1TowerJets'), ('JetCollection', 'Cone7H1TowerJets'), ('egDetailContainer', 'SofteDetailContainer'), ('egDetailContainer', 'egDetailAOD'), ('egDetailContainer', 'egDetailContainer'), ('Muon::TgcCoinDataContainer', 'TrigT1CoinDataCollection'), ('Muon::TgcCoinDataContainer', 'TrigT1CoinDataCollectionNextBC'), ('Muon::TgcCoinDataContainer', 'TrigT1CoinDataCollectionPriorBC'), ('Muon::RpcCoinDataContainer', 'RPC_triggerHits'), ('Muon::CscStripPrepDataContainer', 'CSC_Measurements'), ('Muon::RpcPrepDataContainer', 'RPC_Measurements'), ('CaloShowerContainer', 'CaloCalTopoCluster_Data'), ('CaloShowerContainer', 'CaloTopoCluster_Data'), ('CaloShowerContainer', 'EMTopoCluster430_Data'), ('CaloShowerContainer', 'LArClusterEM7_11Nocorr_Data'), ('CaloShowerContainer', 'LArClusterEMSofte_Data'), ('CaloShowerContainer', 'LArClusterEM_Data'), ('CaloShowerContainer', 'LArMuClusterCandidates_Data'), ('CaloShowerContainer', 'MuonClusterCollection_Data'), ('CaloShowerContainer', 'Tau1P3PCellCluster_Data'), ('CaloShowerContainer', 'Tau1P3PCellEM012ClusterContainer_Data'), ('CaloShowerContainer', 'Tau1P3PPi0ClusterContainer_Data'), ('CaloShowerContainer', 'egClusterCollection_Data'), ('InDetBSErrContainer', 'PixelByteStreamErrs'), ('InDetBSErrContainer', 'SCT_ByteStreamErrs'), ('TRT_BSErrContainer', 'TRT_ByteStreamErrs'), ('CaloCellLinkContainer', 'CaloCalTopoCluster_Link'), ('CaloCellLinkContainer', 'CaloTopoCluster_Link'), ('CaloCellLinkContainer', 'EMTopoCluster430_Link'), ('CaloCellLinkContainer', 'LArClusterEM7_11Nocorr_Link'), ('CaloCellLinkContainer', 'LArClusterEMSofte_Link'), ('CaloCellLinkContainer', 'LArClusterEM_Link'), ('CaloCellLinkContainer', 'LArMuClusterCandidates_Link'), ('CaloCellLinkContainer', 'MuonClusterCollection_Link'), ('CaloCellLinkContainer', 'Tau1P3PCellCluster_Link'), ('CaloCellLinkContainer', 'Tau1P3PCellEM012ClusterContainer_Link'), ('CaloCellLinkContainer', 'Tau1P3PPi0ClusterContainer_Link'), ('CaloCellLinkContainer', 'egClusterCollection_Link'), ('Rec::MuonSpShowerContainer', 'MuonSpShowers'), ('Rec::TrackParticleContainer', 'Combined_TrackParticles'), ('Rec::TrackParticleContainer', 'MooreTrackParticles'), ('Rec::TrackParticleContainer', 'MuGirlRefittedTrackParticles'), ('Rec::TrackParticleContainer', 'MuTagIMOTrackParticles'), ('Rec::TrackParticleContainer', 'MuTagTrackParticles'), ('Rec::TrackParticleContainer', 'MuidExtrTrackParticles'), ('Rec::TrackParticleContainer', 'MuonboyMuonSpectroOnlyTrackParticles'), ('Rec::TrackParticleContainer', 'MuonboyTrackParticles'), ('Rec::TrackParticleContainer', 'StacoTrackParticles'), ('Rec::TrackParticleContainer', 'TrackParticleCandidate'), ('Muon::TgcPrepDataContainer', 'TGC_Measurements'), ('Muon::TgcPrepDataContainer', 'TGC_MeasurementsNextBC'), ('Muon::TgcPrepDataContainer', 'TGC_MeasurementsPriorBC'), ('MuonCaloEnergyContainer', 'MuonCaloEnergyCollection'), ('DataHeader', 'StreamESD')], 'run_number': [91900L], 'beam_energy': ['N/A'], 'geometry': 'ATLAS-GEO-03-00-00', 'evt_number': [2244L], 'evt_type': ('IS_DATA', 'IS_ATLAS', 'IS_PHYSICS'), 'metadata': {'/GLOBAL/DETSTATUS/LBSUMM': [], '/TagInfo': {'/TRT/Cond/StatusPermanent': 'TrtStrawStatusPermanent-01', '/GLOBAL/BTagCalib/IP3D': 'BTagCalib-03-00', '/CALO/HadCalibration/CaloDMCorr2': 'CaloHadDMCorr-002-00', '/MUONALIGN/MDT/ENDCAP/SIDEC': 'MuonAlignMDTEndCapCAlign-REPRO-08', '/MUONALIGN/MDT/BARREL': 'MuonAlignMDTBarrelAlign-0100-SEC0109', '/CALO/H1Weights/H1WeightsCone4Topo': 'CaloH1WeightsCone4Topo-02-000', '/TILE/OFL01/CALIB/LAS/LIN': 'TileOfl01CalibLasLin-HLT-UPD1-00', 'GeoAtlas': 'ATLAS-GEO-03-00-00', '/CALO/EMTopoClusterCorrections/topophioff': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/CALO/EMTopoClusterCorrections/topogap': 'EMTopoClusterCorrections-00-02-00-DC3-v2', 'AtlasRelease': 'AtlasOffline-rel_1', 'IOVDbGlobalTag': 'COMCOND-ES1C-001-01', '/MUONALIGN/TGC/SIDEA': 'MuonAlignTGCEndCapAAlign-REPRO-01', '/MUONALIGN/TGC/SIDEC': 'MuonAlignTGCEndCapCAlign-REPRO-01', '/CALO/CaloSwClusterCorrections/larupdate': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/clcon': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/etaoff': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/phimod': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/TILE/OFL01/CALIB/CES': 'TileOfl01CalibCes-HLT-UPD1-01', '/CALO/CaloSwClusterCorrections/trcorr': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/GLOBAL/BTagCalib/SV1': 'BTagCalib-03-00', '/MUONALIGN/MDT/ENDCAP/SIDEA': 'MuonAlignMDTEndCapAAlign-REPRO-08', '/CALO/HadCalibration/CaloOutOfClusterPi0': 'CaloHadOOCCorrPi0-CSC05-BERT', '/LAR/Identifier/LArTTCellMapAtlas': 'LARIdentifierLArTTCellMapAtlas-DC3-05', '/CALO/EMTopoClusterCorrections/topolw': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/CALO/HadCalibration/H1ClusterCellWeights': 'CaloH1CellWeights-CSC05-BERT', '/CALO/HadCalibration/CaloEMFrac': 'CaloEMFrac-CSC05-BERT', '/GLOBAL/BTagCalib/JetProb': 'BTagCalib-03-00', '/CALO/EMTopoClusterCorrections/larupdate': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/GLOBAL/BTagCalib/SoftEl': 'BTagCalib-03-00', '/CALO/CaloSwClusterCorrections/lwc': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/TILE/OFL01/CALIB/EMS': 'TileOfl01CalibEms-HLT-UPD1-01', '/CALO/HadCalibration/CaloOutOfCluster': 'CaloHadOOCCorr-CSC05-BERT', '/TILE/OFL01/CALIB/CIS/FIT/LIN': 'TileOfl01CalibCisFitLin-HLT-UPD1-00', '/GLOBAL/BTagCalib/IP2D': 'BTagCalib-03-00', '/GLOBAL/BTagCalib/JetFitter': 'BTagCalib-03-00', '/CALO/CaloSwClusterCorrections/etamod': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/GLOBAL/BTagCalib/SoftMu': 'BTagCalib-03-00', '/CALO/CaloSwClusterCorrections/rfac': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/calhits': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/phioff': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/H1Weights/H1WeightsConeTopo': 'CaloH1WeightsConeTopo-00-000', '/GLOBAL/TrackingGeo/LayerMaterial': 'TagInfo/AtlasLayerMat_v11_/GeoAtlas', '/CALO/EMTopoClusterCorrections/topoetaoffsw': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/CALO/EMTopoClusterCorrections/topoetaoff': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/CALO/CaloSwClusterCorrections/gap': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/EMTopoClusterCorrections/topophimod': 'EMTopoClusterCorrections-00-02-00-DC3-v2'}}} + print ("::: f7.fileinfos:") + print (f7.fileinfos) + f7_ref = {'file_md5sum':'c52c2056f049094abe559af10216937c', 'metadata_items': [('EventStreamInfo', 'StreamESD'), ('LumiBlockCollection', 'LumiBlocks'), ('DataHeader', ';00;MetaDataSvc'), ('IOVMetaDataContainer', '/GLOBAL/DETSTATUS/LBSUMM'), ('IOVMetaDataContainer', '/TagInfo')], 'stream_names': ['StreamESD'], 'run_type': ['N/A'], 'stream_tags': [{'obeys_lbk': True, 'stream_type': 'physics', 'stream_name': 'IDCosmic'}], 'tag_info': {'/TRT/Cond/StatusPermanent': 'TrtStrawStatusPermanent-01', '/GLOBAL/BTagCalib/IP3D': 'BTagCalib-03-00', '/CALO/HadCalibration/CaloDMCorr2': 'CaloHadDMCorr-002-00', '/MUONALIGN/MDT/ENDCAP/SIDEC': 'MuonAlignMDTEndCapCAlign-REPRO-08', '/MUONALIGN/MDT/BARREL': 'MuonAlignMDTBarrelAlign-0100-SEC0109', '/CALO/H1Weights/H1WeightsCone4Topo': 'CaloH1WeightsCone4Topo-02-000', '/TILE/OFL01/CALIB/LAS/LIN': 'TileOfl01CalibLasLin-HLT-UPD1-00', 'GeoAtlas': 'ATLAS-GEO-03-00-00', '/CALO/EMTopoClusterCorrections/topophioff': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/CALO/EMTopoClusterCorrections/topogap': 'EMTopoClusterCorrections-00-02-00-DC3-v2', 'AtlasRelease': 'any', 'IOVDbGlobalTag': 'COMCOND-ES1C-001-01', '/MUONALIGN/TGC/SIDEA': 'MuonAlignTGCEndCapAAlign-REPRO-01', '/MUONALIGN/TGC/SIDEC': 'MuonAlignTGCEndCapCAlign-REPRO-01', '/CALO/CaloSwClusterCorrections/larupdate': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/clcon': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/etaoff': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/phimod': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/TILE/OFL01/CALIB/CES': 'TileOfl01CalibCes-HLT-UPD1-01', '/CALO/CaloSwClusterCorrections/trcorr': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/GLOBAL/BTagCalib/SV1': 'BTagCalib-03-00', '/MUONALIGN/MDT/ENDCAP/SIDEA': 'MuonAlignMDTEndCapAAlign-REPRO-08', '/CALO/HadCalibration/CaloOutOfClusterPi0': 'CaloHadOOCCorrPi0-CSC05-BERT', '/LAR/Identifier/LArTTCellMapAtlas': 'LARIdentifierLArTTCellMapAtlas-DC3-05', '/CALO/EMTopoClusterCorrections/topolw': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/CALO/HadCalibration/H1ClusterCellWeights': 'CaloH1CellWeights-CSC05-BERT', '/CALO/HadCalibration/CaloEMFrac': 'CaloEMFrac-CSC05-BERT', '/GLOBAL/BTagCalib/JetProb': 'BTagCalib-03-00', '/CALO/EMTopoClusterCorrections/larupdate': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/GLOBAL/BTagCalib/SoftEl': 'BTagCalib-03-00', '/CALO/CaloSwClusterCorrections/lwc': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/TILE/OFL01/CALIB/EMS': 'TileOfl01CalibEms-HLT-UPD1-01', '/CALO/HadCalibration/CaloOutOfCluster': 'CaloHadOOCCorr-CSC05-BERT', '/TILE/OFL01/CALIB/CIS/FIT/LIN': 'TileOfl01CalibCisFitLin-HLT-UPD1-00', '/GLOBAL/BTagCalib/IP2D': 'BTagCalib-03-00', '/GLOBAL/BTagCalib/JetFitter': 'BTagCalib-03-00', '/CALO/CaloSwClusterCorrections/etamod': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/GLOBAL/BTagCalib/SoftMu': 'BTagCalib-03-00', '/CALO/CaloSwClusterCorrections/rfac': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/calhits': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/phioff': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/H1Weights/H1WeightsConeTopo': 'CaloH1WeightsConeTopo-00-000', '/GLOBAL/TrackingGeo/LayerMaterial': 'TagInfo/AtlasLayerMat_v11_/GeoAtlas', '/CALO/EMTopoClusterCorrections/topoetaoffsw': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/CALO/EMTopoClusterCorrections/topoetaoff': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/CALO/CaloSwClusterCorrections/gap': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/EMTopoClusterCorrections/topophimod': 'EMTopoClusterCorrections-00-02-00-DC3-v2'}, 'file_type': 'pool', 'file_name': 'root://eosatlas.cern.ch//eos/atlas/user/b/binet/regr-tests/athfile/esd.commissionning.15.2.0.pool', 'file_guid': '487184A1-9343-DE11-AACC-001E4F3E5C1F', 'beam_type': ['N/A'], 'lumi_block': [1], 'conditions_tag': 'COMCOND-ES1C-001-01', 'det_descr_tags': {'/TRT/Cond/StatusPermanent': 'TrtStrawStatusPermanent-01', '/GLOBAL/BTagCalib/IP3D': 'BTagCalib-03-00', '/CALO/HadCalibration/CaloDMCorr2': 'CaloHadDMCorr-002-00', '/MUONALIGN/MDT/ENDCAP/SIDEC': 'MuonAlignMDTEndCapCAlign-REPRO-08', '/MUONALIGN/MDT/BARREL': 'MuonAlignMDTBarrelAlign-0100-SEC0109', '/CALO/H1Weights/H1WeightsCone4Topo': 'CaloH1WeightsCone4Topo-02-000', '/TILE/OFL01/CALIB/LAS/LIN': 'TileOfl01CalibLasLin-HLT-UPD1-00', 'GeoAtlas': 'ATLAS-GEO-03-00-00', '/CALO/EMTopoClusterCorrections/topophioff': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/CALO/EMTopoClusterCorrections/topogap': 'EMTopoClusterCorrections-00-02-00-DC3-v2', 'AtlasRelease': 'any', 'IOVDbGlobalTag': 'COMCOND-ES1C-001-01', '/MUONALIGN/TGC/SIDEA': 'MuonAlignTGCEndCapAAlign-REPRO-01', '/MUONALIGN/TGC/SIDEC': 'MuonAlignTGCEndCapCAlign-REPRO-01', '/CALO/CaloSwClusterCorrections/larupdate': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/clcon': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/etaoff': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/phimod': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/TILE/OFL01/CALIB/CES': 'TileOfl01CalibCes-HLT-UPD1-01', '/CALO/CaloSwClusterCorrections/trcorr': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/GLOBAL/BTagCalib/SV1': 'BTagCalib-03-00', '/MUONALIGN/MDT/ENDCAP/SIDEA': 'MuonAlignMDTEndCapAAlign-REPRO-08', '/CALO/HadCalibration/CaloOutOfClusterPi0': 'CaloHadOOCCorrPi0-CSC05-BERT', '/LAR/Identifier/LArTTCellMapAtlas': 'LARIdentifierLArTTCellMapAtlas-DC3-05', '/CALO/EMTopoClusterCorrections/topolw': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/CALO/HadCalibration/H1ClusterCellWeights': 'CaloH1CellWeights-CSC05-BERT', '/CALO/HadCalibration/CaloEMFrac': 'CaloEMFrac-CSC05-BERT', '/GLOBAL/BTagCalib/JetProb': 'BTagCalib-03-00', '/CALO/EMTopoClusterCorrections/larupdate': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/GLOBAL/BTagCalib/SoftEl': 'BTagCalib-03-00', '/CALO/CaloSwClusterCorrections/lwc': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/TILE/OFL01/CALIB/EMS': 'TileOfl01CalibEms-HLT-UPD1-01', '/CALO/HadCalibration/CaloOutOfCluster': 'CaloHadOOCCorr-CSC05-BERT', '/TILE/OFL01/CALIB/CIS/FIT/LIN': 'TileOfl01CalibCisFitLin-HLT-UPD1-00', '/GLOBAL/BTagCalib/IP2D': 'BTagCalib-03-00', '/GLOBAL/BTagCalib/JetFitter': 'BTagCalib-03-00', '/CALO/CaloSwClusterCorrections/etamod': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/GLOBAL/BTagCalib/SoftMu': 'BTagCalib-03-00', '/CALO/CaloSwClusterCorrections/rfac': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/calhits': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/phioff': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/H1Weights/H1WeightsConeTopo': 'CaloH1WeightsConeTopo-00-000', '/GLOBAL/TrackingGeo/LayerMaterial': 'TagInfo/AtlasLayerMat_v11_/GeoAtlas', '/CALO/EMTopoClusterCorrections/topoetaoffsw': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/CALO/EMTopoClusterCorrections/topoetaoff': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/CALO/CaloSwClusterCorrections/gap': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/EMTopoClusterCorrections/topophimod': 'EMTopoClusterCorrections-00-02-00-DC3-v2'}, 'nentries': 10, 'eventdata_items': [('EventInfo', 'ByteStreamEventInfo'), ('PixelRDO_Container', 'PixelRDOs'), ('SCT_RDO_Container', 'SCT_RDOs'), ('TRT_RDO_Container', 'TRT_RDOs'), ('InDet::PixelClusterContainer', 'PixelClusters'), ('InDet::SCT_ClusterContainer', 'SCT_Clusters'), ('BCM_RDO_Container', 'BCM_RDOs'), ('LArDigitContainer', 'LArDigitContainer_IIC'), ('LArDigitContainer', 'LArDigitContainer_Thinned'), ('CaloCellContainer', 'AllCalo'), ('CaloTowerContainer', 'CombinedTower'), ('CaloClusterContainer', 'CaloCalTopoCluster'), ('CaloClusterContainer', 'CaloTopoCluster'), ('CaloClusterContainer', 'EMTopoCluster430'), ('CaloClusterContainer', 'LArClusterEM'), ('CaloClusterContainer', 'LArClusterEM7_11Nocorr'), ('CaloClusterContainer', 'LArClusterEMFrwd'), ('CaloClusterContainer', 'LArClusterEMSofte'), ('CaloClusterContainer', 'LArMuClusterCandidates'), ('CaloClusterContainer', 'MuonClusterCollection'), ('CaloClusterContainer', 'Tau1P3PCellCluster'), ('CaloClusterContainer', 'Tau1P3PCellEM012ClusterContainer'), ('CaloClusterContainer', 'Tau1P3PPi0ClusterContainer'), ('CaloClusterContainer', 'egClusterCollection'), ('TileDigitsContainer', 'TileDigitsFlt'), ('TileCellContainer', 'MBTSContainer'), ('TileL2Container', 'TileL2Cnt'), ('TileMuContainer', 'TileMuObj'), ('TileCosmicMuonContainer', 'TileCosmicMuonHT'), ('ElectronContainer', 'ElectronAODCollection'), ('ElectronContainer', 'ElectronCollection'), ('PhotonContainer', 'PhotonAODCollection'), ('PhotonContainer', 'PhotonCollection'), ('ElectronContainer', 'egammaForwardCollection'), ('ElectronContainer', 'softeCollection'), ('Analysis::TauJetContainer', 'TauRecContainer'), ('JetKeyDescriptor', 'JetKeyMap'), ('MissingEtCalo', 'MET_Base'), ('MissingEtCalo', 'MET_Base0'), ('MissingEtCalo', 'MET_Calib'), ('MissingET', 'MET_CellOut'), ('MissingEtCalo', 'MET_CorrTopo'), ('MissingET', 'MET_Cryo'), ('MissingET', 'MET_CryoCone'), ('MissingET', 'MET_Final'), ('MissingEtCalo', 'MET_LocHadTopo'), ('MissingET', 'MET_LocHadTopoObj'), ('MissingET', 'MET_Muon'), ('MissingET', 'MET_MuonBoy'), ('MissingET', 'MET_MuonBoy_Spectro'), ('MissingET', 'MET_MuonBoy_Track'), ('MissingET', 'MET_RefEle'), ('MissingET', 'MET_RefFinal'), ('MissingET', 'MET_RefGamma'), ('MissingET', 'MET_RefJet'), ('MissingET', 'MET_RefTau'), ('MissingEtCalo', 'MET_Topo'), ('MissingET', 'MET_TopoObj'), ('Trk::SegmentCollection', 'ConvertedMBoySegments'), ('Trk::SegmentCollection', 'MooreSegments'), ('Trk::SegmentCollection', 'MuGirlSegments'), ('TrackCollection', 'CombinedInDetTracks'), ('TrackCollection', 'CombinedInDetTracks_CTB'), ('TrackCollection', 'Combined_Tracks'), ('TrackCollection', 'ConvertedMBoyMuonSpectroOnlyTracks'), ('TrackCollection', 'ConvertedMBoyTracks'), ('TrackCollection', 'ConvertedMuIdCBTracks'), ('TrackCollection', 'ConvertedMuTagTracks'), ('TrackCollection', 'ConvertedStacoTracks'), ('TrackCollection', 'MooreExtrapolatedTracks'), ('TrackCollection', 'MooreTracks'), ('TrackCollection', 'MuGirlRefittedTracks'), ('TrackCollection', 'MuTagIMOTracks'), ('TrackCollection', 'MuidExtrapolatedTracks'), ('TrackCollection', 'ResolvedPixelTracks_CTB'), ('TrackCollection', 'ResolvedSCTTracks_CTB'), ('TrackCollection', 'TRTStandaloneTRTTracks_CTB'), ('InDet::PixelGangedClusterAmbiguities', 'PixelClusterAmbiguitiesMap'), ('LArFebErrorSummary', 'LArFebErrorSummary'), ('ComTime', 'TRT_Phase'), ('Analysis::TauDetailsContainer', 'TauRecDetailsContainer'), ('Analysis::TauDetailsContainer', 'TauRecExtraDetailsContainer'), ('Muon::CscPrepDataContainer', 'CSC_Clusters'), ('Analysis::MuonContainer', 'CaloESDMuonCollection'), ('Analysis::MuonContainer', 'CaloMuonCollection'), ('Analysis::MuonContainer', 'MuGirlLowBetaCollection'), ('Analysis::MuonContainer', 'MuidESDMuonCollection'), ('Analysis::MuonContainer', 'MuidMuonCollection'), ('Analysis::MuonContainer', 'StacoESDMuonCollection'), ('Analysis::MuonContainer', 'StacoMuonCollection'), ('TRT_BSIdErrContainer', 'TRT_ByteStreamIdErrs'), ('InDet::TRT_DriftCircleContainer', 'TRT_DriftCircles'), ('Muon::MdtPrepDataContainer', 'MDT_DriftCircles'), ('JetCollection', 'Cone4H1TopoJets'), ('JetCollection', 'Cone4H1TowerJets'), ('JetCollection', 'Cone7H1TowerJets'), ('egDetailContainer', 'SofteDetailContainer'), ('egDetailContainer', 'egDetailAOD'), ('egDetailContainer', 'egDetailContainer'), ('Muon::TgcCoinDataContainer', 'TrigT1CoinDataCollection'), ('Muon::TgcCoinDataContainer', 'TrigT1CoinDataCollectionNextBC'), ('Muon::TgcCoinDataContainer', 'TrigT1CoinDataCollectionPriorBC'), ('Muon::RpcCoinDataContainer', 'RPC_triggerHits'), ('Muon::CscStripPrepDataContainer', 'CSC_Measurements'), ('Muon::RpcPrepDataContainer', 'RPC_Measurements'), ('CaloShowerContainer', 'CaloCalTopoCluster_Data'), ('CaloShowerContainer', 'CaloTopoCluster_Data'), ('CaloShowerContainer', 'EMTopoCluster430_Data'), ('CaloShowerContainer', 'LArClusterEM7_11Nocorr_Data'), ('CaloShowerContainer', 'LArClusterEMSofte_Data'), ('CaloShowerContainer', 'LArClusterEM_Data'), ('CaloShowerContainer', 'LArMuClusterCandidates_Data'), ('CaloShowerContainer', 'MuonClusterCollection_Data'), ('CaloShowerContainer', 'Tau1P3PCellCluster_Data'), ('CaloShowerContainer', 'Tau1P3PCellEM012ClusterContainer_Data'), ('CaloShowerContainer', 'Tau1P3PPi0ClusterContainer_Data'), ('CaloShowerContainer', 'egClusterCollection_Data'), ('InDetBSErrContainer', 'PixelByteStreamErrs'), ('InDetBSErrContainer', 'SCT_ByteStreamErrs'), ('TRT_BSErrContainer', 'TRT_ByteStreamErrs'), ('CaloCellLinkContainer', 'CaloCalTopoCluster_Link'), ('CaloCellLinkContainer', 'CaloTopoCluster_Link'), ('CaloCellLinkContainer', 'EMTopoCluster430_Link'), ('CaloCellLinkContainer', 'LArClusterEM7_11Nocorr_Link'), ('CaloCellLinkContainer', 'LArClusterEMSofte_Link'), ('CaloCellLinkContainer', 'LArClusterEM_Link'), ('CaloCellLinkContainer', 'LArMuClusterCandidates_Link'), ('CaloCellLinkContainer', 'MuonClusterCollection_Link'), ('CaloCellLinkContainer', 'Tau1P3PCellCluster_Link'), ('CaloCellLinkContainer', 'Tau1P3PCellEM012ClusterContainer_Link'), ('CaloCellLinkContainer', 'Tau1P3PPi0ClusterContainer_Link'), ('CaloCellLinkContainer', 'egClusterCollection_Link'), ('Rec::MuonSpShowerContainer', 'MuonSpShowers'), ('Rec::TrackParticleContainer', 'Combined_TrackParticles'), ('Rec::TrackParticleContainer', 'MooreTrackParticles'), ('Rec::TrackParticleContainer', 'MuGirlRefittedTrackParticles'), ('Rec::TrackParticleContainer', 'MuTagIMOTrackParticles'), ('Rec::TrackParticleContainer', 'MuTagTrackParticles'), ('Rec::TrackParticleContainer', 'MuidExtrTrackParticles'), ('Rec::TrackParticleContainer', 'MuonboyMuonSpectroOnlyTrackParticles'), ('Rec::TrackParticleContainer', 'MuonboyTrackParticles'), ('Rec::TrackParticleContainer', 'StacoTrackParticles'), ('Rec::TrackParticleContainer', 'TrackParticleCandidate'), ('Muon::TgcPrepDataContainer', 'TGC_Measurements'), ('Muon::TgcPrepDataContainer', 'TGC_MeasurementsNextBC'), ('Muon::TgcPrepDataContainer', 'TGC_MeasurementsPriorBC'), ('MuonCaloEnergyContainer', 'MuonCaloEnergyCollection'), ('DataHeader', 'StreamESD')], 'run_number': [91900], 'beam_energy': ['N/A'], 'geometry': 'ATLAS-GEO-03-00-00', 'evt_number': [2244], 'evt_type': ('IS_DATA', 'IS_ATLAS', 'IS_PHYSICS'), 'metadata': {'/GLOBAL/DETSTATUS/LBSUMM': [], '/TagInfo': {'/TRT/Cond/StatusPermanent': 'TrtStrawStatusPermanent-01', '/GLOBAL/BTagCalib/IP3D': 'BTagCalib-03-00', '/CALO/HadCalibration/CaloDMCorr2': 'CaloHadDMCorr-002-00', '/MUONALIGN/MDT/ENDCAP/SIDEC': 'MuonAlignMDTEndCapCAlign-REPRO-08', '/MUONALIGN/MDT/BARREL': 'MuonAlignMDTBarrelAlign-0100-SEC0109', '/CALO/H1Weights/H1WeightsCone4Topo': 'CaloH1WeightsCone4Topo-02-000', '/TILE/OFL01/CALIB/LAS/LIN': 'TileOfl01CalibLasLin-HLT-UPD1-00', 'GeoAtlas': 'ATLAS-GEO-03-00-00', '/CALO/EMTopoClusterCorrections/topophioff': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/CALO/EMTopoClusterCorrections/topogap': 'EMTopoClusterCorrections-00-02-00-DC3-v2', 'AtlasRelease': 'AtlasOffline-rel_1', 'IOVDbGlobalTag': 'COMCOND-ES1C-001-01', '/MUONALIGN/TGC/SIDEA': 'MuonAlignTGCEndCapAAlign-REPRO-01', '/MUONALIGN/TGC/SIDEC': 'MuonAlignTGCEndCapCAlign-REPRO-01', '/CALO/CaloSwClusterCorrections/larupdate': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/clcon': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/etaoff': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/phimod': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/TILE/OFL01/CALIB/CES': 'TileOfl01CalibCes-HLT-UPD1-01', '/CALO/CaloSwClusterCorrections/trcorr': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/GLOBAL/BTagCalib/SV1': 'BTagCalib-03-00', '/MUONALIGN/MDT/ENDCAP/SIDEA': 'MuonAlignMDTEndCapAAlign-REPRO-08', '/CALO/HadCalibration/CaloOutOfClusterPi0': 'CaloHadOOCCorrPi0-CSC05-BERT', '/LAR/Identifier/LArTTCellMapAtlas': 'LARIdentifierLArTTCellMapAtlas-DC3-05', '/CALO/EMTopoClusterCorrections/topolw': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/CALO/HadCalibration/H1ClusterCellWeights': 'CaloH1CellWeights-CSC05-BERT', '/CALO/HadCalibration/CaloEMFrac': 'CaloEMFrac-CSC05-BERT', '/GLOBAL/BTagCalib/JetProb': 'BTagCalib-03-00', '/CALO/EMTopoClusterCorrections/larupdate': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/GLOBAL/BTagCalib/SoftEl': 'BTagCalib-03-00', '/CALO/CaloSwClusterCorrections/lwc': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/TILE/OFL01/CALIB/EMS': 'TileOfl01CalibEms-HLT-UPD1-01', '/CALO/HadCalibration/CaloOutOfCluster': 'CaloHadOOCCorr-CSC05-BERT', '/TILE/OFL01/CALIB/CIS/FIT/LIN': 'TileOfl01CalibCisFitLin-HLT-UPD1-00', '/GLOBAL/BTagCalib/IP2D': 'BTagCalib-03-00', '/GLOBAL/BTagCalib/JetFitter': 'BTagCalib-03-00', '/CALO/CaloSwClusterCorrections/etamod': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/GLOBAL/BTagCalib/SoftMu': 'BTagCalib-03-00', '/CALO/CaloSwClusterCorrections/rfac': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/calhits': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/CaloSwClusterCorrections/phioff': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/H1Weights/H1WeightsConeTopo': 'CaloH1WeightsConeTopo-00-000', '/GLOBAL/TrackingGeo/LayerMaterial': 'TagInfo/AtlasLayerMat_v11_/GeoAtlas', '/CALO/EMTopoClusterCorrections/topoetaoffsw': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/CALO/EMTopoClusterCorrections/topoetaoff': 'EMTopoClusterCorrections-00-02-00-DC3-v2', '/CALO/CaloSwClusterCorrections/gap': 'CaloSwClusterCorrections-00-02-00-v6_calh', '/CALO/EMTopoClusterCorrections/topophimod': 'EMTopoClusterCorrections-00-02-00-DC3-v2'}}} f7.fileinfos['tag_info']['AtlasRelease'] = 'any' f7.fileinfos['det_descr_tags']['AtlasRelease'] = 'any' @@ -230,10 +230,10 @@ class AthFileTest(unittest.TestCase): f8 = af.fopen(fname) if verbose: - print "::: f8.fileinfos:" - print f8.fileinfos + print ("::: f8.fileinfos:") + print (f8.fileinfos) - f8_ref = {'file_md5sum': '7f6798d2115b5c1cdad02eb98dec5d68', 'stream_tags': [], 'tag_info': {'IOVDbGlobalTag': 'OFLCOND-SIM-00-00-00','/TRT/Cond/Status': 'TrtStrawStatus-02', '/LAR/Identifier/FebRodAtlas': 'FebRodAtlas-005', '/LAR/ElecCalibMC': 'LARElecCalibMC-CSC02-J-QGSP_BERT', 'GeoAtlas': 'ATLAS-GEO-02-01-00', 'TGC_support': 'TGC Big Wheel', 'AtlasRelease': 'any', '/LAR/Identifier/LArTTCellMapAtlas': 'LARIdentifierLArTTCellMapAtlas-DC3-05', '/GLOBAL/BField/Map': 'BFieldMap-000', 'MDT_support': 'MDT Big Wheel', '/LAR/Identifier/OnOffIdAtlas': 'OnOffIdAtlas-012'}, 'file_type': 'pool', 'file_name': 'root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/trig-daq/validation/test_data/valid1.005640.CharybdisJimmy.digit.RDO.e322_s483/RDO.027377._00069.pool.root.3', 'beam_type': ['N/A'], 'det_descr_tags': {'IOVDbGlobalTag': 'OFLCOND-SIM-00-00-00','/TRT/Cond/Status': 'TrtStrawStatus-02', '/LAR/Identifier/FebRodAtlas': 'FebRodAtlas-005', '/LAR/ElecCalibMC': 'LARElecCalibMC-CSC02-J-QGSP_BERT', 'GeoAtlas': 'ATLAS-GEO-02-01-00', 'TGC_support': 'TGC Big Wheel', 'AtlasRelease': 'any', '/LAR/Identifier/LArTTCellMapAtlas': 'LARIdentifierLArTTCellMapAtlas-DC3-05', '/GLOBAL/BField/Map': 'BFieldMap-000', 'MDT_support': 'MDT Big Wheel', '/LAR/Identifier/OnOffIdAtlas': 'OnOffIdAtlas-012'}, 'nentries': 25L, 'evt_number': [1814L], 'file_guid': '4E971C9E-A9A4-DD11-8A9A-00145E6D4F72', 'metadata': {'/Digitization/Parameters': {'physicsList': 'QGSP_BERT', 'N_beamGasInputFiles': 0, 'doBeamHalo': False, 'N_cavernInputFiles': 0, 'overrideMetadata': False, 'numberOfBeamHalo': 1.0, 'doCavern': False, 'IOVDbGlobalTag': 'default', 'N_beamHaloInputFiles': 0, 'initialBunchCrossing': -36, 'doCaloNoise': True, 'N_minBiasInputFiles': 0, 'numberOfCollisions': 2.2999999999999998, 'rndmSvc': 'AtRanluxGenSvc', 'rndmSeedList': ['PixelDigitization 10513308 492615173', 'SCT_Digitization 49261579 105132463', 'TRT_ElectronicsNoise 192 414', 'TRT_Noise 1303 3525', 'TRT_ThresholdFluctuations 12414 34636', 'TRT_ProcessStraw 123525 345747', 'TRT_SimDriftTime 1234636 3456858', 'TRT_PAI 12345747 34567959', 'TRT_FakeConditions 123456858 345678970', 'BCM_Digitization 49261579 105132463', 'LArDigitization 1303 5747', 'Tile_HitVecToCnt 4789968 989240581', 'Tile_DigitsMaker 4789968 989240581', 'CSC_Digitization 49261579 105132463', 'MDTResponse 49261579 105132463', 'MDT_Digitization 49261579 105132463', 'MDT_DigitizationTwin 393242630 857132450', 'TGC_Digitization 49261579 105132463', 'RPC_Digitization 49261579 105132463', 'CscDigitToCscRDOTool 49261579 105132463', 'Tile_HitToTTL1 4789968 989240581', 'CTPSimulation 1979283112 1924452258'], 'numberOfCavern': 2, 'doMuonNoise': True, 'doInDetNoise': True, 'numberOfBeamGas': 1.0, 'finalBunchCrossing': 32, 'doBeamGas': False, 'doMinimumBias': False, 'bunchSpacing': 25, 'DetDescrVersion': 'ATLAS-GEO-02-01-00', 'lvl1TriggerMenu': 'lumi1E31_no_Bphysics_no_prescale', 'rndmSeedOffset2': 69, 'rndmSeedOffset1': 69}, '/Simulation/Parameters': {'MagneticField': 'OracleDB', 'PhysicsList': 'QGSP_BERT', 'CalibrationRun': 'DeadLAr', 'SimLayout': 'ATLAS-GEO-02-01-00', 'DoLArBirk': False, 'LArParameterization': 0, 'VertexStatus': True, 'EtaPhiStatus': True, 'WorldRRange': 'default', 'RunType': 'atlas', 'WorldZRange': 'default', 'Seeds': 'default', 'G4Version': 'geant4.8.3.patch02.atlas04', 'NeutronTimeCut': 150.0, 'SeedsG4': 'default', 'IOVDbGlobalTag': 'default', 'VRangeStatus': True}}, 'metadata_items': [('DataHeader', ';00;MetaDataSvc'), ('IOVMetaDataContainer', '/Digitization/Parameters'), ('IOVMetaDataContainer', '/Simulation/Parameters')], 'stream_names': ['Stream1'], 'run_type': ['N/A'], 'conditions_tag': 'OFLCOND-SIM-00-00-00', 'lumi_block': [1L], 'eventdata_items': [('EventInfo', 'McEventInfo'), ('PixelRDO_Container', 'PixelRDOs'), ('SCT_RDO_Container', 'SCT_RDOs'), ('TRT_RDO_Container', 'TRT_RDOs'), ('InDetSimDataCollection', 'BCM_SDO_Map'), ('InDetSimDataCollection', 'PixelSDO_Map'), ('InDetSimDataCollection', 'SCT_SDO_Map'), ('InDetSimDataCollection', 'TRT_SDO_Map'), ('BCM_RDO_Container', 'BCM_RDOs'), ('LArDigitContainer', 'LArDigitContainer_MC_Thinned'), ('LArRawChannelContainer', 'LArRawChannels'), ('LArTTL1Container', 'LArTTL1EM'), ('LArTTL1Container', 'LArTTL1HAD'), ('TileRawChannelContainer', 'TileRawChannelCnt'), ('TileTTL1Container', 'TileTTL1Cnt'), ('TileTTL1Container', 'TileTTL1MBTS'), ('TileHitVector', 'MBTSHits'), ('CscRawDataContainer', 'CSCRDO'), ('TgcRdoContainer', 'TGCRDO'), ('MdtCsmContainer', 'MDTCSM'), ('RpcPadContainer', 'RPCPAD'), ('ROIB::RoIBResult', 'RoIBResult'), ('CTP_RDO', 'CTP_RDO'), ('DataVector<LVL1::JetElement>', 'JetElements'), ('DataVector<LVL1::TriggerTower>', 'TriggerTowers'), ('MuCTPI_RDO', 'MUCTPI_RDO'), ('McEventCollection', 'TruthEvent'), ('DataVector<LVL1::JEMEtSums>', 'JEMEtSums'), ('MuonSimDataCollection', 'MDT_SDO'), ('MuonSimDataCollection', 'RPC_SDO'), ('MuonSimDataCollection', 'TGC_SDO'), ('DataVector<LVL1::CPMTower>', 'CPMTowers'), ('DataVector<LVL1::CPMHits>', 'CPMHits'), ('DataVector<LVL1::CMMEtSums>', 'CMMEtSums'), ('DataVector<LVL1::JEMRoI>', 'JEMRoIs'), ('LVL1::CMMRoI', 'CMMRoIs'), ('DataVector<LVL1::JEMHits>', 'JEMHits'), ('DataVector<LVL1::CPMRoI>', 'CPMRoIs'), ('DataVector<LVL1::CMMJetHits>', 'CMMJetHits'), ('DataVector<LVL1::CMMCPHits>', 'CMMCPHits'), ('CscSimDataCollection', 'CSC_SDO'), ('TrackRecordCollection', 'CaloEntryLayer'), ('TrackRecordCollection', 'MuonEntryLayer'), ('TrackRecordCollection', 'MuonExitLayer'), ('CaloCalibrationHitContainer', 'LArCalibrationHitActive'), ('CaloCalibrationHitContainer', 'LArCalibrationHitDeadMaterial'), ('CaloCalibrationHitContainer', 'LArCalibrationHitInactive'), ('DataHeader', 'Stream1')], 'run_number': [5640L], 'beam_energy': ['N/A'], 'geometry': 'ATLAS-GEO-02-01-00', 'evt_type': ('IS_SIMULATION', 'IS_ATLAS', 'IS_PHYSICS')} + f8_ref = {'file_md5sum': '7f6798d2115b5c1cdad02eb98dec5d68', 'stream_tags': [], 'tag_info': {'IOVDbGlobalTag': 'OFLCOND-SIM-00-00-00','/TRT/Cond/Status': 'TrtStrawStatus-02', '/LAR/Identifier/FebRodAtlas': 'FebRodAtlas-005', '/LAR/ElecCalibMC': 'LARElecCalibMC-CSC02-J-QGSP_BERT', 'GeoAtlas': 'ATLAS-GEO-02-01-00', 'TGC_support': 'TGC Big Wheel', 'AtlasRelease': 'any', '/LAR/Identifier/LArTTCellMapAtlas': 'LARIdentifierLArTTCellMapAtlas-DC3-05', '/GLOBAL/BField/Map': 'BFieldMap-000', 'MDT_support': 'MDT Big Wheel', '/LAR/Identifier/OnOffIdAtlas': 'OnOffIdAtlas-012'}, 'file_type': 'pool', 'file_name': 'root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/trig-daq/validation/test_data/valid1.005640.CharybdisJimmy.digit.RDO.e322_s483/RDO.027377._00069.pool.root.3', 'beam_type': ['N/A'], 'det_descr_tags': {'IOVDbGlobalTag': 'OFLCOND-SIM-00-00-00','/TRT/Cond/Status': 'TrtStrawStatus-02', '/LAR/Identifier/FebRodAtlas': 'FebRodAtlas-005', '/LAR/ElecCalibMC': 'LARElecCalibMC-CSC02-J-QGSP_BERT', 'GeoAtlas': 'ATLAS-GEO-02-01-00', 'TGC_support': 'TGC Big Wheel', 'AtlasRelease': 'any', '/LAR/Identifier/LArTTCellMapAtlas': 'LARIdentifierLArTTCellMapAtlas-DC3-05', '/GLOBAL/BField/Map': 'BFieldMap-000', 'MDT_support': 'MDT Big Wheel', '/LAR/Identifier/OnOffIdAtlas': 'OnOffIdAtlas-012'}, 'nentries': 25, 'evt_number': [1814], 'file_guid': '4E971C9E-A9A4-DD11-8A9A-00145E6D4F72', 'metadata': {'/Digitization/Parameters': {'physicsList': 'QGSP_BERT', 'N_beamGasInputFiles': 0, 'doBeamHalo': False, 'N_cavernInputFiles': 0, 'overrideMetadata': False, 'numberOfBeamHalo': 1.0, 'doCavern': False, 'IOVDbGlobalTag': 'default', 'N_beamHaloInputFiles': 0, 'initialBunchCrossing': -36, 'doCaloNoise': True, 'N_minBiasInputFiles': 0, 'numberOfCollisions': 2.2999999999999998, 'rndmSvc': 'AtRanluxGenSvc', 'rndmSeedList': ['PixelDigitization 10513308 492615173', 'SCT_Digitization 49261579 105132463', 'TRT_ElectronicsNoise 192 414', 'TRT_Noise 1303 3525', 'TRT_ThresholdFluctuations 12414 34636', 'TRT_ProcessStraw 123525 345747', 'TRT_SimDriftTime 1234636 3456858', 'TRT_PAI 12345747 34567959', 'TRT_FakeConditions 123456858 345678970', 'BCM_Digitization 49261579 105132463', 'LArDigitization 1303 5747', 'Tile_HitVecToCnt 4789968 989240581', 'Tile_DigitsMaker 4789968 989240581', 'CSC_Digitization 49261579 105132463', 'MDTResponse 49261579 105132463', 'MDT_Digitization 49261579 105132463', 'MDT_DigitizationTwin 393242630 857132450', 'TGC_Digitization 49261579 105132463', 'RPC_Digitization 49261579 105132463', 'CscDigitToCscRDOTool 49261579 105132463', 'Tile_HitToTTL1 4789968 989240581', 'CTPSimulation 1979283112 1924452258'], 'numberOfCavern': 2, 'doMuonNoise': True, 'doInDetNoise': True, 'numberOfBeamGas': 1.0, 'finalBunchCrossing': 32, 'doBeamGas': False, 'doMinimumBias': False, 'bunchSpacing': 25, 'DetDescrVersion': 'ATLAS-GEO-02-01-00', 'lvl1TriggerMenu': 'lumi1E31_no_Bphysics_no_prescale', 'rndmSeedOffset2': 69, 'rndmSeedOffset1': 69}, '/Simulation/Parameters': {'MagneticField': 'OracleDB', 'PhysicsList': 'QGSP_BERT', 'CalibrationRun': 'DeadLAr', 'SimLayout': 'ATLAS-GEO-02-01-00', 'DoLArBirk': False, 'LArParameterization': 0, 'VertexStatus': True, 'EtaPhiStatus': True, 'WorldRRange': 'default', 'RunType': 'atlas', 'WorldZRange': 'default', 'Seeds': 'default', 'G4Version': 'geant4.8.3.patch02.atlas04', 'NeutronTimeCut': 150.0, 'SeedsG4': 'default', 'IOVDbGlobalTag': 'default', 'VRangeStatus': True}}, 'metadata_items': [('DataHeader', ';00;MetaDataSvc'), ('IOVMetaDataContainer', '/Digitization/Parameters'), ('IOVMetaDataContainer', '/Simulation/Parameters')], 'stream_names': ['Stream1'], 'run_type': ['N/A'], 'conditions_tag': 'OFLCOND-SIM-00-00-00', 'lumi_block': [1], 'eventdata_items': [('EventInfo', 'McEventInfo'), ('PixelRDO_Container', 'PixelRDOs'), ('SCT_RDO_Container', 'SCT_RDOs'), ('TRT_RDO_Container', 'TRT_RDOs'), ('InDetSimDataCollection', 'BCM_SDO_Map'), ('InDetSimDataCollection', 'PixelSDO_Map'), ('InDetSimDataCollection', 'SCT_SDO_Map'), ('InDetSimDataCollection', 'TRT_SDO_Map'), ('BCM_RDO_Container', 'BCM_RDOs'), ('LArDigitContainer', 'LArDigitContainer_MC_Thinned'), ('LArRawChannelContainer', 'LArRawChannels'), ('LArTTL1Container', 'LArTTL1EM'), ('LArTTL1Container', 'LArTTL1HAD'), ('TileRawChannelContainer', 'TileRawChannelCnt'), ('TileTTL1Container', 'TileTTL1Cnt'), ('TileTTL1Container', 'TileTTL1MBTS'), ('TileHitVector', 'MBTSHits'), ('CscRawDataContainer', 'CSCRDO'), ('TgcRdoContainer', 'TGCRDO'), ('MdtCsmContainer', 'MDTCSM'), ('RpcPadContainer', 'RPCPAD'), ('ROIB::RoIBResult', 'RoIBResult'), ('CTP_RDO', 'CTP_RDO'), ('DataVector<LVL1::JetElement>', 'JetElements'), ('DataVector<LVL1::TriggerTower>', 'TriggerTowers'), ('MuCTPI_RDO', 'MUCTPI_RDO'), ('McEventCollection', 'TruthEvent'), ('DataVector<LVL1::JEMEtSums>', 'JEMEtSums'), ('MuonSimDataCollection', 'MDT_SDO'), ('MuonSimDataCollection', 'RPC_SDO'), ('MuonSimDataCollection', 'TGC_SDO'), ('DataVector<LVL1::CPMTower>', 'CPMTowers'), ('DataVector<LVL1::CPMHits>', 'CPMHits'), ('DataVector<LVL1::CMMEtSums>', 'CMMEtSums'), ('DataVector<LVL1::JEMRoI>', 'JEMRoIs'), ('LVL1::CMMRoI', 'CMMRoIs'), ('DataVector<LVL1::JEMHits>', 'JEMHits'), ('DataVector<LVL1::CPMRoI>', 'CPMRoIs'), ('DataVector<LVL1::CMMJetHits>', 'CMMJetHits'), ('DataVector<LVL1::CMMCPHits>', 'CMMCPHits'), ('CscSimDataCollection', 'CSC_SDO'), ('TrackRecordCollection', 'CaloEntryLayer'), ('TrackRecordCollection', 'MuonEntryLayer'), ('TrackRecordCollection', 'MuonExitLayer'), ('CaloCalibrationHitContainer', 'LArCalibrationHitActive'), ('CaloCalibrationHitContainer', 'LArCalibrationHitDeadMaterial'), ('CaloCalibrationHitContainer', 'LArCalibrationHitInactive'), ('DataHeader', 'Stream1')], 'run_number': [5640], 'beam_energy': ['N/A'], 'geometry': 'ATLAS-GEO-02-01-00', 'evt_type': ('IS_SIMULATION', 'IS_ATLAS', 'IS_PHYSICS')} f8.fileinfos['tag_info']['AtlasRelease'] = 'any' f8.fileinfos['det_descr_tags']['AtlasRelease'] = 'any' @@ -307,10 +307,10 @@ class AthFileTest(unittest.TestCase): f10 = af.fopen(fname) if verbose: - print "::: f10.fileinfos:" - print f10.fileinfos + print ("::: f10.fileinfos:") + print (f10.fileinfos) - f10_ref = {'metadata_items': None, 'stream_names': ['TAG'], 'run_type': [], 'stream_tags': [], 'evt_type': [], 'tag_info': None, 'file_type': 'pool', 'file_name': 'root://eosatlas.cern.ch//eos/atlas/user/b/binet/utests/athfile/TAG.102229._000001.pool.root.1', 'evt_number': [25], 'beam_energy': [], 'eventdata_items': None, 'run_number': [142391], 'geometry': None, 'beam_type': [], 'file_guid': '10A1A6D0-98EF-DE11-8D70-003048C6617E', 'file_md5sum': 'bce350a81aa253cc7eb8385a62775938', 'lumi_block': [], 'conditions_tag': None, 'det_descr_tags': None, 'nentries': 71L, 'metadata': None} + f10_ref = {'metadata_items': None, 'stream_names': ['TAG'], 'run_type': [], 'stream_tags': [], 'evt_type': [], 'tag_info': None, 'file_type': 'pool', 'file_name': 'root://eosatlas.cern.ch//eos/atlas/user/b/binet/utests/athfile/TAG.102229._000001.pool.root.1', 'evt_number': [25], 'beam_energy': [], 'eventdata_items': None, 'run_number': [142391], 'geometry': None, 'beam_type': [], 'file_guid': '10A1A6D0-98EF-DE11-8D70-003048C6617E', 'file_md5sum': 'bce350a81aa253cc7eb8385a62775938', 'lumi_block': [], 'conditions_tag': None, 'det_descr_tags': None, 'nentries': 71, 'metadata': None} _compare_fileinfos(f10,f10_ref) assert f10.run_number==f10_ref['run_number'] @@ -335,8 +335,8 @@ class AthFileTest(unittest.TestCase): f11 = af.fopen(fname) if verbose: - print "::: f11.fileinfos:" - print f11.fileinfos + print ("::: f11.fileinfos:") + print (f11.fileinfos) f11_ref = {'metadata_items': None, 'stream_names': ['StreamRAW'], 'run_type': [], 'stream_tags': [{'obeys_lbk': None, 'stream_type': 'calibration', 'stream_name': 'LArElec-Delay-32s-High-Em'}], 'evt_type': [], 'tag_info': None, 'file_type': 'bs', 'file_name': 'ami://data10_calib.00150430.calibration_LArElec-Delay-32s-High-Em.daq.RAW', 'evt_number': [], 'beam_energy': [], 'eventdata_items': None, 'run_number': [150430], 'geometry': None, 'beam_type': [], 'file_guid': 'ami://data10_calib.00150430.calibration_LArElec-Delay-32s-High-Em.daq.RAW', 'file_md5sum': None, 'lumi_block': [], 'conditions_tag': None, 'det_descr_tags': None, 'nentries': 3072, 'metadata': None} @@ -364,8 +364,8 @@ class AthFileTest(unittest.TestCase): f12 = af.fopen(fname) if verbose: - print "::: f12.fileinfos:" - print f12.fileinfos + print ("::: f12.fileinfos:") + print (f12.fileinfos) f12_ref = {'metadata_items': None, 'stream_names': ['StreamESD'], 'run_type': [], 'stream_tags': [{'obeys_lbk': None, 'stream_type': 'physics', 'stream_name': 'BPTX'}], 'evt_type': [], 'tag_info': None, 'file_type': 'pool', 'file_name': 'ami://data09_900GeV.00142191.physics_BPTX.merge.ESD.r1093_p101', 'evt_number': [], 'beam_energy': [], 'eventdata_items': None, 'run_number': [142191], 'geometry': None, 'beam_type': ['collisions'], 'file_guid': 'ami://data09_900GeV.00142191.physics_BPTX.merge.ESD.r1093_p101', 'file_md5sum': None, 'lumi_block': [], 'conditions_tag': 'COMCOND-REPPST-004-00', 'det_descr_tags': None, 'nentries': 1256124, 'metadata': None} @@ -393,8 +393,8 @@ class AthFileTest(unittest.TestCase): f13 = af.fopen(fname) if verbose: - print "::: f13.fileinfos:" - print f13.fileinfos + print ("::: f13.fileinfos:") + print (f13.fileinfos) f13_ref = {'metadata_items': None, 'stream_names': ['StreamAOD'], 'run_type': [], 'stream_tags': [{'obeys_lbk': None, 'stream_type': 'physics', 'stream_name': 'L1TT-b6'}], 'evt_type': [], 'tag_info': None, 'file_type': 'pool', 'file_name': 'ami://data09_idcomm.00111427.physics_L1TT-b6.merge.AOD.f97_m48', 'evt_number': [], 'beam_energy': [], 'eventdata_items': None, 'run_number': [111427], 'geometry': None, 'beam_type': [], 'file_guid': 'ami://data09_idcomm.00111427.physics_L1TT-b6.merge.AOD.f97_m48', 'file_md5sum': None, 'lumi_block': [], 'conditions_tag': None, 'det_descr_tags': None, 'nentries': 27, 'metadata': None} @@ -422,8 +422,8 @@ class AthFileTest(unittest.TestCase): f14 = af.fopen(fname) if verbose: - print "::: f14.fileinfos:" - print f14.fileinfos + print ("::: f14.fileinfos:") + print (f14.fileinfos) f14_ref = {'metadata_items': None, 'stream_names': ['StreamTAG_COMM'], 'run_type': [], 'stream_tags': [{'obeys_lbk': None, 'stream_type': 'express', 'stream_name': 'express'}], 'evt_type': [], 'tag_info': None, 'file_type': 'pool', 'file_name': 'ami://data10_1beam.00150419.express_express.merge.TAG_COMM.x2_m396', 'evt_number': [], 'beam_energy': [], 'eventdata_items': None, 'run_number': [150419], 'geometry': None, 'beam_type': [], 'file_guid': 'ami://data10_1beam.00150419.express_express.merge.TAG_COMM.x2_m396', 'file_md5sum': None, 'lumi_block': [], 'conditions_tag': None, 'det_descr_tags': None, 'nentries': 407, 'metadata': None} @@ -447,8 +447,8 @@ class AthFileTest(unittest.TestCase): f15 = af.fopen(fname) if verbose: - print "::: f15.fileinfos:" - print f15.fileinfos + print ("::: f15.fileinfos:") + print (f15.fileinfos) f15_ref = {'file_md5sum':'e3e301bca63e4b5acb3b3cba43127ff9', 'metadata_items': None, 'stream_names': None, 'run_type': ['TEST'], 'stream_tags': [{'obeys_lbk': True, 'stream_type': 'physics', 'stream_name': 'IDCosmic'}, {'obeys_lbk': False, 'stream_type': 'calibration', 'stream_name': 'IDTracks'}], 'tag_info': None, 'file_type': 'bs', 'file_name': 'root://eosatlas.cern.ch//eos/atlas/user/b/binet/regr-tests/athfile/daq.ATLAS.0092226.physics.IDCosmic.LB0054.SFO-1._0001.data', 'file_guid': '72013664-ECA3-DD11-A90E-0015171A45AC', 'beam_type': [0], 'lumi_block': [54], 'conditions_tag': None, 'det_descr_tags': None, 'nentries': 417, 'eventdata_items': None, 'run_number': [92226], 'beam_energy': [0], 'geometry': None, 'evt_number': [8349492], 'evt_type': [], 'metadata': None} _compare_fileinfos(f15,f15_ref) assert f15.run_number==f15_ref['run_number'] @@ -474,6 +474,6 @@ def main(verbose=False): if __name__ == "__main__": import sys - print __file__ + print (__file__) sys.exit(main()) diff --git a/Tools/PyUtils/python/AthFile/timerdecorator.py b/Tools/PyUtils/python/AthFile/timerdecorator.py index 0ec2e9dd28f2dfcac6ca34ad23b2e3699e6acc44..1c7e00a3720e9a3e8dac7f537230ffbdb8d19e0a 100644 --- a/Tools/PyUtils/python/AthFile/timerdecorator.py +++ b/Tools/PyUtils/python/AthFile/timerdecorator.py @@ -1,4 +1,4 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration +# Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration # @file timerdecorator.py # @purpose decorate functions which will have a limited alloted time to finish execution diff --git a/Tools/PyUtils/python/FilePeekerTool.py b/Tools/PyUtils/python/FilePeekerTool.py index e95782d23a7621db64cd345c324c8ad6baf38963..b92e41d4bec2347c0cb122aa7bc9abc52ae1e947 100644 --- a/Tools/PyUtils/python/FilePeekerTool.py +++ b/Tools/PyUtils/python/FilePeekerTool.py @@ -1,10 +1,12 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration +# Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration # @file PyUtils.FilePeekerTool # @purpose peek into APR files to read in-file metadata without Athena (based on PyAthena.FilePeekerLib code by Sebastian Binet) # @author Alexandre Vaniachine <vaniachine@anl.gov> # @date May 2015 +from __future__ import print_function + __version__= "$Revision: 734431 $" __author__ = "Alexandre Vaniachine <vaniachine@anl.gov>" __doc__ = "peek into APR files to read in-file metadata" @@ -37,15 +39,15 @@ class FilePeekerTool(): (os.getpid(), uuid.uuid4()) ) stdout = open(stdout_fname, "w") - print >> stdout,"Extracting in-file metadata without athena sub-process from file", self.f.GetName() - print >> stdout,"="*80 + print ("Extracting in-file metadata without athena sub-process from file", self.f.GetName(), file=stdout) + print ("="*80, file=stdout) stdout.flush() pool = self.f.Get("##Params") import re - pool_token = re.compile(r'[[]NAME=(?P<name>.*?)[]]' r'[[]VALUE=(?P<value>.*?)[]]').match + pool_token = re.compile(r'[\[]NAME=(?P<name>.*?)[]]' r'[\[]VALUE=(?P<value>.*?)[]]').match params = [] - for i in xrange(pool.GetEntries()): + for i in range(pool.GetEntries()): if pool.GetEntry(i)>0: match = pool_token(pool.FindLeaf("db_string").GetValueString()) if not match: @@ -86,7 +88,7 @@ class FilePeekerTool(): break if esiTypeName != 'EventStreamInfo_p3': - print >> stdout, "old schema is not supported:", esiTypeName + print ("old schema is not supported:", esiTypeName, file=stdout) return {} import cppyy @@ -103,7 +105,7 @@ class FilePeekerTool(): peeked_data['run_type'] = ['N/A'] - print >> stdout, peeked_data + print (peeked_data, file=stdout) peeked_data['nentries'] = esic.getNumberOfEvents(esi) peeked_data['lumi_block'] = list(esic.lumiBlockNumbers(esi)) @@ -128,7 +130,7 @@ class FilePeekerTool(): isa_idx = raw_bit_mask[idx] return bit_mask_typecodes[idx][isa_idx] bm = map(decode_bitmask, - xrange(len(bit_mask_typecodes))) + range(len(bit_mask_typecodes))) return tuple(bm) def _get_detdescr_tags(evt_type): @@ -150,10 +152,10 @@ class FilePeekerTool(): peeked_data['mc_channel_number'] = [et.m_mc_channel_number] peeked_data['evt_number'] = [et.m_mc_event_number] - #print >> stdout, 'mc_event_number', et.m_mc_event_number - print >> stdout, 'mc_event_weights.size:', et.m_mc_event_weights.size() - print >> stdout, 'mc_event_weights value', et.m_mc_event_weights[0] - print >> stdout, 'user_type', et.m_user_type + #printf ('mc_event_number', et.m_mc_event_number, file=stdout) + print ('mc_event_weights.size:', et.m_mc_event_weights.size(), file=stdout) + print ('mc_event_weights value', et.m_mc_event_weights[0], file=stdout) + print ('user_type', et.m_user_type, file=stdout) # handle event-less files if peeked_data['nentries'] == 0: @@ -220,7 +222,7 @@ class FilePeekerTool(): obj = cppyy.gbl.IOVMetaDataContainer() def process_metadata(obj, metadata_name): - print >> stdout, 'processing container [%s]' % obj.folderName() + print ('processing container [%s]' % obj.folderName(), file=stdout) data = [] payloads = obj.payloadContainer() payloads_sz = payloads.size() @@ -232,43 +234,44 @@ class FilePeekerTool(): payloads.append(_tmp.at(ii)) pass for ii,payload in zip(range(payloads_sz), payloads): - #print >> stdout, "-->",ii,payload,type(payload),'\n' + #print ("-->",ii,payload,type(payload),'\n', file=stdout) if not payload: - print >> stdout, "**error** null-pointer ?" + print ("**error** null-pointer ?", file=stdout) continue # names chan_names = [] sz = payload.name_size() - print >> stdout, '==names== (sz: %s)' % sz - for idx in xrange(sz): + print ('==names== (sz: %s)' % sz, file=stdout) + for idx in range(sz): chan = payload.chanNum(idx) chan_name = payload.chanName(chan) - #print >> stdout, '--> (%s, %s)' % (idx, chan_name) + #print ('--> (%s, %s)' % (idx, chan_name), file=stdout) chan_names.append(chan_name) if 1: # we don't really care about those... # iovs sz = payload.iov_size() - print >> stdout, '==iovs== (sz: %s)' % sz - for idx in xrange(sz): + print ('==iovs== (sz: %s)' % sz, file=stdout) + for idx in range(sz): chan = payload.chanNum(idx) iov_range = payload.iovRange(chan) iov_start = iov_range.start() iov_stop = iov_range.stop() if 0: - print >> stdout, '(%s, %s) => (%s, %s) valid=%s runEvt=%s' % ( + print ('(%s, %s) => (%s, %s) valid=%s runEvt=%s' % ( iov_start.run(), iov_start.event(), iov_stop.run(), iov_stop.event(), iov_start.isValid(), - iov_start.isRunEvent()) + iov_start.isRunEvent()), + file=stdout) # attrs attrs = [] # can't use a dict as spec.name() isn't unique sz = payload.size() - print >> stdout, '==attrs== (sz: %s)' % sz - for idx in xrange(sz): + print ('==attrs== (sz: %s)' % sz, file=stdout) + for idx in range(sz): chan = payload.chanNum(idx) attr_list = payload.attributeList(chan) attr_data = [] @@ -283,13 +286,13 @@ class FilePeekerTool(): except Exception: # swallow and keep as a string pass -# print >> stdout, spec.name(),a_data +# print (spec.name(),a_data, file=stdout) else: a_data = getattr(a,'data<%s>'%a_type)() - #print >> stdout, "%s: %s %s" (spec.name(), a_data, type(a_data) ) + #print ("%s: %s %s" (spec.name(), a_data, type(a_data) ), file=stdout) attr_data.append( (spec.name(), a_data) ) attrs.append(dict(attr_data)) - #print >> stdout, attrs[-1] + #print (attrs[-1], file=stdout) if len(attrs) == len(chan_names): data.append(dict(zip(chan_names,attrs))) else: @@ -329,10 +332,10 @@ class FilePeekerTool(): try: obj.payloadContainer().at(0).dump() except Exception: - print >> stdout, l.GetName() + print (l.GetName(), file=stdout) pass v = process_metadata(obj, k) - #print >> stdout, obj.folderName(),v + #print (obj.folderName(),v, file=stdout) flName = obj.folderName() metadata[obj.folderName()] = maybe_get(v, -1) # if flName[:15] == 'TriggerMenuAux.' and clName[:6] == 'vector': continue @@ -397,21 +400,21 @@ class FilePeekerTool(): peeked_data['det_descr_tags'] = {} ## -- summary - print >> stdout, ':::::: summary ::::::' - print >> stdout, ' - nbr events: %s' % peeked_data['nentries'] - print >> stdout, ' - run numbers: %s' % peeked_data['run_number'] - #print >> stdout, ' - evt numbers: %s' % peeked_data['evt_number'] - print >> stdout, ' - lumiblocks: %s' % peeked_data['lumi_block'] - print >> stdout, ' - evt types: ', peeked_data['evt_type'] - print >> stdout, ' - item list: %s' % len(peeked_data['eventdata_items']) - #print >> stdout, ' - item list: ', peeked_data['eventdata_items'] - print >> stdout, ' - processing tags: %s' % peeked_data['stream_names'] - #print >> stdout, ' - stream tags: %s' % peeked_data['stream_tags'] - print >> stdout, ' - geometry: %s' % peeked_data['geometry'] - print >> stdout, ' - conditions tag: %s' % peeked_data['conditions_tag'] - #print >> stdout, ' - metadata items: %s' % len(peeked_data['metadata_items']) - print >> stdout, ' - tag-info: %s' % peeked_data['tag_info'].keys() - #print >> stdout, ' - item list: ' % peeked_data['eventdata_items'] + print (':::::: summary ::::::', file=stdout) + print (' - nbr events: %s' % peeked_data['nentries'], file=stdout) + print (' - run numbers: %s' % peeked_data['run_number'], file=stdout) + #print (' - evt numbers: %s' % peeked_data['evt_number'], file=stdout) + print (' - lumiblocks: %s' % peeked_data['lumi_block'], file=stdout) + print (' - evt types: ', peeked_data['evt_type'], file=stdout) + print (' - item list: %s' % len(peeked_data['eventdata_items']), file=stdout) + #print (' - item list: ', peeked_data['eventdata_items'], file=stdout) + print (' - processing tags: %s' % peeked_data['stream_names'], file=stdout) + #print (' - stream tags: %s' % peeked_data['stream_tags'], file=stdout) + print (' - geometry: %s' % peeked_data['geometry'], file=stdout) + print (' - conditions tag: %s' % peeked_data['conditions_tag'], file=stdout) + #print (' - metadata items: %s' % len(peeked_data['metadata_items']), file=stdout) + print (' - tag-info: %s' % peeked_data['tag_info'].keys(), file=stdout) + #print (' - item list: ' % peeked_data['eventdata_items'], file=stdout) stdout.flush() stdout.close() #os.remove(stdout.name) diff --git a/Tools/PyUtils/python/RootUtils.py b/Tools/PyUtils/python/RootUtils.py index 7151fef588e01447d373355664c055212feada4d..45e4b9b88035fdca5f07adf5a94a52fc81123d8e 100644 --- a/Tools/PyUtils/python/RootUtils.py +++ b/Tools/PyUtils/python/RootUtils.py @@ -20,6 +20,7 @@ __all__ = [ import os import sys import re +import six from pprint import pprint from array import array @@ -30,7 +31,7 @@ from .Decorators import memoize # The argument to SetSize is in elements, not bytes. def _set_byte_size (buf, sz): eltsz = array(buf.typecode).itemsize - buf.SetSize (sz / eltsz) + buf.SetSize (sz // eltsz) return def import_root(batch=True): @@ -157,6 +158,8 @@ def _pythonize_tfile(): #print ("-->2",self.tell()) buf = c_buf.buffer() _set_byte_size (buf, c_buf.sz) + if six.PY3: + return buf.tobytes() return str(buf[:]) return '' else: diff --git a/Tools/PyUtils/python/dbsqlite.py b/Tools/PyUtils/python/dbsqlite.py index 932eceeadf32ba59fc232d37fc2956211bab9d53..cf6b82d67f7282be6f7dd959f43ad22ad14e0b17 100644 --- a/Tools/PyUtils/python/dbsqlite.py +++ b/Tools/PyUtils/python/dbsqlite.py @@ -1,4 +1,4 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration +# Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration # @file PyUtils/python/dbsqlite.py # reaped off: http://svn.python.org/view/sandbox/trunk/dbm_sqlite @@ -17,15 +17,15 @@ __version__ = "$Revision: 225332 $" __all__ = ['error', 'open'] import sqlite3 -import cPickle as pickle -from UserDict import DictMixin +import pickle +from collections import MutableMapping import collections from operator import itemgetter import shelve error = sqlite3.DatabaseError -class SQLhash(object, DictMixin): +class SQLhash(MutableMapping): def __init__(self, filename=':memory:', flags='r', mode=None): # XXX add flag/mode handling # c -- create if it doesn't exist @@ -67,15 +67,15 @@ class SQLhash(object, DictMixin): def iterkeys(self): GET_KEYS = 'SELECT key FROM shelf ORDER BY ROWID' - return iter(SQLHashKeyIterator(self.conn, GET_KEYS, (0,))) + return SQLHashKeyIterator(self.conn, GET_KEYS, (0,)) def itervalues(self): GET_VALUES = 'SELECT value FROM shelf ORDER BY ROWID' - return iter(SQLHashValueIterator(self.conn, GET_VALUES, (0,))) + return SQLHashValueIterator(self.conn, GET_VALUES, (0,)) def iteritems(self): GET_ITEMS = 'SELECT key, value FROM shelf ORDER BY ROWID' - return iter(SQLHashItemIterator(self.conn, GET_ITEMS, (0, 1))) + return SQLHashItemIterator(self.conn, GET_ITEMS, (0, 1)) def __contains__(self, key): HAS_ITEM = 'SELECT 1 FROM shelf WHERE key = ?' @@ -153,8 +153,10 @@ class SQLHashKeyIterator(object): def __iter__(self): return self - def next(self): + def next(self): #py2 return self.getter(self.iter.next()) + def __next__(self): #py3 + return self.getter(self.iter.__next__()) class SQLHashValueIterator(object): def __init__(self, conn, stmt, indices): @@ -167,9 +169,12 @@ class SQLHashValueIterator(object): def __iter__(self): return self - def next(self): + def next(self): #py2 o = self.getter(self.iter.next()) return pickle.loads(o) + def __next__(self): #py3 + o = self.getter(self.iter.__next__()) + return pickle.loads(o) class SQLHashItemIterator(object): def __init__(self, conn, stmt, indices): @@ -182,11 +187,16 @@ class SQLHashItemIterator(object): def __iter__(self): return self - def next(self): + def next(self): #py2 o = self.getter(self.iter.next()) k = o[0] v = pickle.loads(o[1]) return (k,v) + def __next__(self): #py3 + o = self.getter(self.iter.__next__()) + k = o[0] + v = pickle.loads(o[1]) + return (k,v) if __name__ in '__main___': for d in SQLhash(flags='n'), SQLhash('example',flags='n'):