From 40560670594548a3bae427b95faff827a1505648 Mon Sep 17 00:00:00 2001
From: Frank Winklmeier <Frank.Winklmeier@cern.ch>
Date: Mon, 30 Jan 2017 12:35:52 +0100
Subject: [PATCH] GroupData migration of MuCtpi config files (ATR-15657)
 (TrigConfMuctpi-00-01-00)

2017-01-27  Frank Winklmeier  <fwinkl@cern>
	* Copy Muctpi configuration (data/*) into GroupData area (ATR-15657) for git migration,
	for details see https://twiki.cern.ch/twiki/bin/viewauth/AtlasComputing/PathResolver
	* Delete duplicate files
	* TrigConfMuctpi-00-01-00
2016-06-06  Thorsten Wengler  <thorsten.wengler@cern.ch>
---
 .../TrigConfiguration/TrigConfMuctpi/CMakeLists.txt    |  2 +-
 .../TrigConfiguration/TrigConfMuctpi/cmt/requirements  |  2 +-
 Trigger/TrigConfiguration/TrigConfMuctpi/data/README   | 10 ++++++++++
 .../TrigConfMuctpi/python/XMLReader.py                 |  4 +++-
 4 files changed, 15 insertions(+), 3 deletions(-)
 create mode 100644 Trigger/TrigConfiguration/TrigConfMuctpi/data/README

diff --git a/Trigger/TrigConfiguration/TrigConfMuctpi/CMakeLists.txt b/Trigger/TrigConfiguration/TrigConfMuctpi/CMakeLists.txt
index 6c13f4aeee4..c41d4209538 100644
--- a/Trigger/TrigConfiguration/TrigConfMuctpi/CMakeLists.txt
+++ b/Trigger/TrigConfiguration/TrigConfMuctpi/CMakeLists.txt
@@ -30,5 +30,5 @@ atlas_add_executable( TrigConfReadWriteMuCTPiGeometry
 # Install files from the package:
 atlas_install_python_modules( python/*.py )
 atlas_install_scripts( scripts/*.py )
-atlas_install_xmls( data/*.dtd data/*.xml )
+atlas_install_xmls( data/*.dtd )
 
diff --git a/Trigger/TrigConfiguration/TrigConfMuctpi/cmt/requirements b/Trigger/TrigConfiguration/TrigConfMuctpi/cmt/requirements
index d0734c31f6f..29d38bcd828 100644
--- a/Trigger/TrigConfiguration/TrigConfMuctpi/cmt/requirements
+++ b/Trigger/TrigConfiguration/TrigConfMuctpi/cmt/requirements
@@ -22,7 +22,7 @@ macro_append TrigConfReadWriteMuCTPiGeometrylinkopts " $(Boost_linkopts_filesyst
 
 
 # Install the LUTs:
-apply_pattern detcommon_link_files kind=XML files="-s=../data *.xml *.dtd" \
+apply_pattern detcommon_link_files kind=XML files="-s=../data *.dtd" \
                                    prefix=XML/TrigConfMuctpi
 
 apply_pattern detcommon_link_files kind=scripts files="-s=../scripts *.py" \
diff --git a/Trigger/TrigConfiguration/TrigConfMuctpi/data/README b/Trigger/TrigConfiguration/TrigConfMuctpi/data/README
new file mode 100644
index 00000000000..256fd6c6407
--- /dev/null
+++ b/Trigger/TrigConfiguration/TrigConfMuctpi/data/README
@@ -0,0 +1,10 @@
+Muctpi configuration files have been moved to the GroupData area:
+ * CVMFS: /cvmfs/atlas.cern.ch/repo/sw/database/GroupData/TrigConfMucpti
+ * P1:    /sw/DbData/GroupData
+
+For details on how to access/uppdate them see:
+ - https://twiki.cern.ch/twiki/bin/viewauth/AtlasComputing/PathResolver
+ - https://its.cern.ch/jira/browse/ATR-15657
+
+The last version of the files in SVN are in TrigConfMuctpi-00-00-22:
+https://svnweb.cern.ch/trac/atlasoff/browser/Trigger/TrigConfiguration/TrigConfMuctpi/tags/TrigConfMuctpi-00-00-22/data
diff --git a/Trigger/TrigConfiguration/TrigConfMuctpi/python/XMLReader.py b/Trigger/TrigConfiguration/TrigConfMuctpi/python/XMLReader.py
index a330a7dbd87..0f2fdc95052 100644
--- a/Trigger/TrigConfiguration/TrigConfMuctpi/python/XMLReader.py
+++ b/Trigger/TrigConfiguration/TrigConfMuctpi/python/XMLReader.py
@@ -70,4 +70,6 @@ class MioctGeometryXMLReader(TrigXMLDocumentReader):
 
 
 if __name__ == "__main__":
-    l1menu = L1MenuXMLReader("TrigConfMuctpi/TestMioctGeometry.xml")
+    from PathResolver import PathResolver
+    xmlfile = PathResolver.FindCalibFile("TrigConfMuctpi/TestMioctGeometry_2016_05_30_CS_2600573263.xml")
+    l1menu = L1MenuXMLReader(xmlfile)
-- 
GitLab