Skip to content
Snippets Groups Projects
Commit fea8c572 authored by Atlas-Software Librarian's avatar Atlas-Software Librarian Committed by Graeme Stewart
Browse files

'CMakeLists.txt' (PyJobTransformsCore-00-09-43)

	* Tagging PyJobTransformsCore-00-09-43.
	* python/trfValidateRootFile.py: Allow for mixed aod/d3pd files.
parent 45ab1034
No related branches found
No related tags found
No related merge requests found
################################################################################
# Package: PyJobTransformsCore
################################################################################
# Declare the package name:
atlas_subdir( PyJobTransformsCore )
# External dependencies:
find_package( PythonLibs )
# Install files from the package:
atlas_install_python_modules( python/*.py )
atlas_install_scripts( share/slimmetadata share/checklog.py share/find_*.py share/trf_ls python/envutil.py )
atlas_install_generic( share/*.db
DESTINATION share
EXECUTABLE )
......@@ -13,7 +13,7 @@ import sys
from PyUtils import RootUtils
ROOT = RootUtils.import_root()
from ROOT import TFile, TTree, TKey, TDirectory, TClass, TList, TObjArray, TStopwatch, TBasket
from ROOT import TFile, TTree, TKey, TDirectory, TClass, TList, TObjArray, TStopwatch, TBasket, TDirectoryFile
......@@ -87,6 +87,10 @@ def checkDirectory(directory, type, requireTree, msg):
msg.warning("Can't get object of key %s." % key.GetName())
return 1
if ( the_object.GetName().find('Meta') > -1 ) and isinstance(the_object,TDirectoryFile):
msg.warning("Will ignore Meta TDirectoryFile %s!" % the_object.GetName() )
continue
if requireTree and not isinstance(object, TTree):
msg.warning("Object %s is not of class TTree!" % object.GetName())
return 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment