diff --git a/AsgExternal/Asg_Test/CMakeLists.txt b/AsgExternal/Asg_Test/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..d5951cc2d425062756426e739568a3a575533b44 --- /dev/null +++ b/AsgExternal/Asg_Test/CMakeLists.txt @@ -0,0 +1,32 @@ +# $Id: CMakeLists.txt 782126 2016-11-03 13:55:04Z krasznaa $ + +# The name of the package: +atlas_subdir( Asg_Test ) + +# Read in the settings of the package from the files under cmt/: +file( READ ${CMAKE_CURRENT_SOURCE_DIR}/cmt/ReleaseSeries.txt + ROOTCORE_RELEASE_SERIES ) +string( STRIP "${ROOTCORE_RELEASE_SERIES}" ROOTCORE_RELEASE_SERIES ) +file( READ ${CMAKE_CURRENT_SOURCE_DIR}/cmt/TestFileData.txt + ASG_TEST_FILE_DATA ) +string( STRIP "${ASG_TEST_FILE_DATA}" ASG_TEST_FILE_DATA ) +file( READ ${CMAKE_CURRENT_SOURCE_DIR}/cmt/TestFileMC.txt + ASG_TEST_FILE_MC ) +string( STRIP "${ASG_TEST_FILE_MC}" ASG_TEST_FILE_MC ) +file( READ ${CMAKE_CURRENT_SOURCE_DIR}/cmt/TestFileMCAFII.txt + ASG_TEST_FILE_MC_AFII ) +string( STRIP "${ASG_TEST_FILE_MC_AFII}" ASG_TEST_FILE_MC_AFII ) +set( ROOTCORE_TEST_FILE ${ASG_TEST_FILE_MC} ) +get_filename_component( ROOTCORE_TEST_DATA ${ROOTCORE_TEST_FILE} PATH ) + +# Create the CMake file that will be used to generate the environment config: +configure_file( + ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Asg_TestEnvironmentConfig.cmake.in + ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/Asg_TestEnvironmentConfig.cmake + @ONLY ) +set( Asg_TestEnvironment_DIR + ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY} + CACHE PATH "Location of Asg_TestEnvironmentConfig.cmake" FORCE ) + +# Now find it: +find_package( Asg_TestEnvironment ) diff --git a/AsgExternal/Asg_Test/cmake/Asg_TestEnvironmentConfig.cmake.in b/AsgExternal/Asg_Test/cmake/Asg_TestEnvironmentConfig.cmake.in new file mode 100644 index 0000000000000000000000000000000000000000..4b64e609fd881c95bb5a8163359786a67bc6d2f7 --- /dev/null +++ b/AsgExternal/Asg_Test/cmake/Asg_TestEnvironmentConfig.cmake.in @@ -0,0 +1,16 @@ +# $Id: Asg_TestEnvironmentConfig.cmake.in 782126 2016-11-03 13:55:04Z krasznaa $ +# +# File configuring the ASG environment variables. +# + +# Set the environment variables: +set( ASG_TESTENVIRONMENT_ENVIRONMENT + FORCESET ROOTCORE_RELEASE_SERIES @ROOTCORE_RELEASE_SERIES@ + FORCESET ASG_TEST_FILE_DATA @ASG_TEST_FILE_DATA@ + FORCESET ASG_TEST_FILE_MC @ASG_TEST_FILE_MC@ + FORCESET ASG_TEST_FILE_MC_AFII @ASG_TEST_FILE_MC_AFII@ + FORCESET ROOTCORE_TEST_FILE @ROOTCORE_TEST_FILE@ + FORCESET ROOTCORE_TEST_DATA @ROOTCORE_TEST_DATA@ ) + +# Signal that the module was found: +set( ASG_TESTENVIRONMENT_FOUND TRUE ) diff --git a/AsgExternal/Asg_Test/cmt/Makefile.RootCore b/AsgExternal/Asg_Test/cmt/Makefile.RootCore new file mode 100644 index 0000000000000000000000000000000000000000..d4678115e170aa38faccee7f85d8ca08ab475f40 --- /dev/null +++ b/AsgExternal/Asg_Test/cmt/Makefile.RootCore @@ -0,0 +1,56 @@ +# this makefile also gets parsed by shell scripts +# therefore it does not support full make syntax and features +# edit with care + +# for full documentation check: +# https://twiki.cern.ch/twiki/bin/viewauth/Atlas/RootCore#Package_Makefile + + +# the name of the package: +PACKAGE = Asg_Test + +# the libraries to link with this one: +PACKAGE_PRELOAD = + +# additional compilation flags to pass (not propagated to dependent packages): +PACKAGE_CXXFLAGS = + +# additional compilation flags to pass (propagated to dependent packages): +PACKAGE_OBJFLAGS = -DROOTCORE_RELEASE_SERIES=$ROOTCORE_RELEASE_SERIES -DROOTCORE_TEST_FILE=\"$ROOTCORE_TEST_FILE\" -DROOTCORE_TEST_DATA=\"$ROOTCORE_TEST_DATA\" -DASG_TEST_FILE_DATA=\"$ASG_TEST_FILE_DATA\" -DASG_TEST_FILE_MC=\"$ASG_TEST_FILE_MC\" -DASG_TEST_FILE_MCAFII=\"$ASG_TEST_FILE_MCAFII\" + +# additional linker flags to pass (for compiling the library): +PACKAGE_LDFLAGS = + +# additional linker flags to pass (for compiling binaries): +PACKAGE_BINFLAGS = + +# additional linker flags to pass (propagated to client libraries): +PACKAGE_LIBFLAGS = + +# the list of packages we depend on: +PACKAGE_DEP = + +# the list of packages we use if present, but that we can work without : +PACKAGE_TRYDEP = + +# list pattern of scripts to link directly into binary path: +PACKAGE_SCRIPTS = + +# whether to use pedantic compilation: +PACKAGE_PEDANTIC = 1 + +# whether to turn *off* optimization (set to dict to do it only for +# dictionaries): +PACKAGE_NOOPT = 0 + +# whether to build no library (needs to be set if no source files are +# present): +PACKAGE_NOCC = 1 + +# whether we build a reflex dictionary: +PACKAGE_REFLEX = 0 + +# the auto-dependency setting: +PACKAGE_AUTODEP = 1 + +include $(ROOTCOREDIR)/Makefile-common diff --git a/AsgExternal/Asg_Test/cmt/ReleaseSeries.txt b/AsgExternal/Asg_Test/cmt/ReleaseSeries.txt new file mode 100644 index 0000000000000000000000000000000000000000..7273c0fa8c522b7eed7762a353d46f7768e9b6f2 --- /dev/null +++ b/AsgExternal/Asg_Test/cmt/ReleaseSeries.txt @@ -0,0 +1 @@ +25 diff --git a/AsgExternal/Asg_Test/cmt/TestFileData.txt b/AsgExternal/Asg_Test/cmt/TestFileData.txt new file mode 100644 index 0000000000000000000000000000000000000000..65e5b4a2aebf1034f37d87d6fd3d78343d3d220a --- /dev/null +++ b/AsgExternal/Asg_Test/cmt/TestFileData.txt @@ -0,0 +1 @@ +/afs/cern.ch/atlas/project/PAT/xAODs/r8601/data15_13TeV.00284285.physics_Main.recon.AOD.r8601/AOD.09617210._008306.pool.root.1 diff --git a/AsgExternal/Asg_Test/cmt/TestFileMC.txt b/AsgExternal/Asg_Test/cmt/TestFileMC.txt new file mode 100644 index 0000000000000000000000000000000000000000..308b0353ca08895701f8573394395fc25971ed3d --- /dev/null +++ b/AsgExternal/Asg_Test/cmt/TestFileMC.txt @@ -0,0 +1 @@ +/afs/cern.ch/atlas/project/PAT/xAODs/r8565/valid2.410000.PowhegPythiaEvtGen_P2012_ttbar_hdamp172p5_nonallhad.recon.AOD.e4993_s2887_r8565/AOD.09534072._000257.pool.root.1 diff --git a/AsgExternal/Asg_Test/cmt/TestFileMCAFII.txt b/AsgExternal/Asg_Test/cmt/TestFileMCAFII.txt new file mode 100644 index 0000000000000000000000000000000000000000..7f2c6c3e2d296a393147294e7d3c75e52f2546dc --- /dev/null +++ b/AsgExternal/Asg_Test/cmt/TestFileMCAFII.txt @@ -0,0 +1 @@ +/afs/cern.ch/user/a/asgbase/patspace/xAODs/a818/mc15_13TeV.410000.PowhegPythiaEvtGen_P2012_ttbar_hdamp172p5_nonallhad.merge.AOD.e3698_a766_a818_r7676/AOD.07919492._000100.pool.root.1 diff --git a/AsgExternal/Asg_Test/cmt/requirements b/AsgExternal/Asg_Test/cmt/requirements new file mode 100644 index 0000000000000000000000000000000000000000..6b96111c50057038d116a46f86e7a9b488369f61 --- /dev/null +++ b/AsgExternal/Asg_Test/cmt/requirements @@ -0,0 +1,24 @@ +package Asg_Test +author NLAA + + +use AtlasPolicy AtlasPolicy-* + +macro Asg_Test_ReleaseSeries "ASGSeries`cat $(Asg_Test_root)/cmt/ReleaseSeries.txt`" +apply_tag $(Asg_Test_ReleaseSeries) + +macro Asg_Test_ReleaseSeriesNum "`cat $(Asg_Test_root)/cmt/ReleaseSeries.txt`" +set ROOTCORE_RELEASE_SERIES $(Asg_Test_ReleaseSeriesNum) + +macro Asg_Test_TestFile "`cat $(Asg_Test_root)/cmt/TestFileMC.txt`" +set ROOTCORE_TEST_FILE $(Asg_Test_TestFile) + +macro Asg_Test_TestFileMC "`cat $(Asg_Test_root)/cmt/TestFileMC.txt`" +set ASG_TEST_FILE_MC $(Asg_Test_TestFileMC) + +macro Asg_Test_TestFileData "`cat $(Asg_Test_root)/cmt/TestFileData.txt`" +set ASG_TEST_FILE_DATA $(Asg_Test_TestFileData) + +macro Asg_Test_TestFileMCAFII "`cat $(Asg_Test_root)/cmt/TestFileMCAFII.txt`" +set ASG_TEST_FILE_MC_AFII $(Asg_Test_TestFileMCAFII) + diff --git a/AsgExternal/Asg_Test/cmt/setup_external.RootCore.csh b/AsgExternal/Asg_Test/cmt/setup_external.RootCore.csh new file mode 100644 index 0000000000000000000000000000000000000000..1bcceace02472cd6ed2b04439495750f07ffd9b8 --- /dev/null +++ b/AsgExternal/Asg_Test/cmt/setup_external.RootCore.csh @@ -0,0 +1,7 @@ +Asg_Test_Dir=`dirname $1` +setenv ROOTCORE_RELEASE_SERIES `cat $Asg_Test_Dir/ReleaseSeries.txt` +setenv ASG_TEST_FILE_DATA `cat $Asg_Test_Dir/TestFileData.txt` +setenv ASG_TEST_FILE_MC `cat $Asg_Test_Dir/TestFileMC.txt` +setenv ASG_TEST_FILE_MC_AFII `cat $Asg_Test_Dir/TestFileMCAFII.txt` +setenv ROOTCORE_TEST_FILE `cat $Asg_Test_Dir/TestFileMC.txt` +setenv ROOTCORE_TEST_DATA "`dirname $ROOTCORE_TEST_FILE | xargs dirname`" diff --git a/AsgExternal/Asg_Test/cmt/setup_external.RootCore.sh b/AsgExternal/Asg_Test/cmt/setup_external.RootCore.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae408270bad9194c699694c3928adb564db5ab98 --- /dev/null +++ b/AsgExternal/Asg_Test/cmt/setup_external.RootCore.sh @@ -0,0 +1,7 @@ +Asg_Test_Dir=`dirname $1` +export ROOTCORE_RELEASE_SERIES=`cat $Asg_Test_Dir/ReleaseSeries.txt` +export ASG_TEST_FILE_DATA=`cat $Asg_Test_Dir/TestFileData.txt` +export ASG_TEST_FILE_MC=`cat $Asg_Test_Dir/TestFileMC.txt` +export ASG_TEST_FILE_MC_AFII=`cat $Asg_Test_Dir/TestFileMCAFII.txt` +export ROOTCORE_TEST_FILE=`cat $Asg_Test_Dir/TestFileMC.txt` +export ROOTCORE_TEST_DATA="`dirname $ROOTCORE_TEST_FILE | xargs dirname`"