From 347261492e7405c4717ee2ef403550847a74b099 Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Thu, 25 Aug 2022 18:16:43 +0200
Subject: [PATCH] ChannelingCrystalMaterial: fix crystal_orientation to be
 constPropertyRef

---
 examples/DDG4/src/ChannelingCrystalMaterial.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/DDG4/src/ChannelingCrystalMaterial.cpp b/examples/DDG4/src/ChannelingCrystalMaterial.cpp
index fe8a134d9..8bd416295 100644
--- a/examples/DDG4/src/ChannelingCrystalMaterial.cpp
+++ b/examples/DDG4/src/ChannelingCrystalMaterial.cpp
@@ -64,7 +64,7 @@ namespace dd4hep   {
     channelingData->SetFilename(crystal_data);
 
     /// Set crystal orientation
-    orientation = mat.propertyRef("Geant4-ignore:crystal_orientation");
+    orientation = mat.constPropertyRef("Geant4-ignore:crystal_orientation");
     if ( !orientation.empty() )   {
       Direction direction;
       Property  prop(direction);
-- 
GitLab