From 389d747cff6822ffae32ea448b765c77a462610e Mon Sep 17 00:00:00 2001
From: matta <matta@npt>
Date: Mon, 11 Feb 2013 11:39:40 +0000
Subject: [PATCH] * removing warning in case Helios is not compile in the NPL

---
 NPSimulation/src/DetectorConstruction.cc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/NPSimulation/src/DetectorConstruction.cc b/NPSimulation/src/DetectorConstruction.cc
index 00b1378e8..8a5326d26 100644
--- a/NPSimulation/src/DetectorConstruction.cc
+++ b/NPSimulation/src/DetectorConstruction.cc
@@ -174,7 +174,6 @@ void DetectorConstruction::ReadConfigurationFile(string Path){
   string DataBuffer;
   
   // needed for Magnetic field
-  double Bz=0.;
   
   bool cAddThinSi        = false;
   bool cComptonTelescope = false;
@@ -192,8 +191,11 @@ void DetectorConstruction::ReadConfigurationFile(string Path){
   bool cShield           = false;  
   bool cW1               = false;
   bool cHelios           = false;
-  bool check_MField      = false;
   
+#ifdef INC_HELIOS
+  bool check_MField      = false;
+  double Bz=0.;
+#endif
   int VerboseLevel = NPOptionManager::getInstance()->GetVerboseLevel();
   
   ifstream ConfigFile;
-- 
GitLab