From 14ecd76304561c15b9e08c836e32e49a96716ff5 Mon Sep 17 00:00:00 2001
From: Frank Gaede <frank.gaede@desy.de>
Date: Thu, 19 Sep 2013 13:28:12 +0000
Subject: [PATCH]  - added xml parameter phi1

---
 DDCore/include/XML/UnicodeValues.h | 1 +
 DDCore/include/XML/XMLDimension.h  | 4 ++++
 DDCore/src/XML/XMLDimension.cpp    | 2 ++
 3 files changed, 7 insertions(+)

diff --git a/DDCore/include/XML/UnicodeValues.h b/DDCore/include/XML/UnicodeValues.h
index c571231bd..56ad58519 100644
--- a/DDCore/include/XML/UnicodeValues.h
+++ b/DDCore/include/XML/UnicodeValues.h
@@ -252,6 +252,7 @@ namespace DD4hep   { namespace XML  {
   UNICODE(particles);
   UNICODE(phi);
   UNICODE(phi0);
+  UNICODE(phi1);
   UNICODE(phi_tilt);
   UNICODE(phiBins);
   UNICODE(phi_size_max);
diff --git a/DDCore/include/XML/XMLDimension.h b/DDCore/include/XML/XMLDimension.h
index b5fc9cd2b..586f46951 100644
--- a/DDCore/include/XML/XMLDimension.h
+++ b/DDCore/include/XML/XMLDimension.h
@@ -85,6 +85,10 @@ namespace DD4hep {
       double phi0() const;
       /// Access parameters: phi0, if not present returns default
       double phi0(double default_value) const;
+      /// Access rotation constants: phi1
+      double phi1() const;
+      /// Access parameters: phi1, if not present returns default
+      double phi1(double default_value) const;
       /// Access rotation constants: psi
       double psi() const;
 
diff --git a/DDCore/src/XML/XMLDimension.cpp b/DDCore/src/XML/XMLDimension.cpp
index 9048df2e3..b5274b661 100644
--- a/DDCore/src/XML/XMLDimension.cpp
+++ b/DDCore/src/XML/XMLDimension.cpp
@@ -104,6 +104,8 @@ XML_ATTR_ACCESSOR(int,id)
   XML_ATTR_ACCESSOR(int,phiBins)
   XML_ATTR_ACCESSOR(double,phi0)
   XML_ATTR_ACCESSOR_DOUBLE(phi0)
+  XML_ATTR_ACCESSOR(double,phi1)
+  XML_ATTR_ACCESSOR_DOUBLE(phi1)
   XML_ATTR_ACCESSOR(double,deltaphi)
 
 
-- 
GitLab