From 3b2c5f81f0e4c45fe6c5a9c1930ecb940fcd6614 Mon Sep 17 00:00:00 2001 From: Markus Frank <Markus.Frank@cern.ch> Date: Fri, 13 Apr 2018 14:36:17 +0200 Subject: [PATCH] Add detector state depending on the load state --- DDCore/include/DD4hep/Detector.h | 6 +++--- DDCore/include/DD4hep/DetectorData.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DDCore/include/DD4hep/Detector.h b/DDCore/include/DD4hep/Detector.h index e0f4d5fa4..3bb048d64 100644 --- a/DDCore/include/DD4hep/Detector.h +++ b/DDCore/include/DD4hep/Detector.h @@ -76,11 +76,11 @@ namespace dd4hep { /// The detector description states enum State { /// The detector description object is freshly created. No geometry nothing. - VIRGIN = 1<<0, + NOT_READY = 1<<0, /// The geometry is being created and loaded. (parsing ongoing) - LOADING = 1<<1, + LOADING = 1<<1, /// The geometry is loaded. - READY = 1<<2 + READY = 1<<2 }; /// Destructor diff --git a/DDCore/include/DD4hep/DetectorData.h b/DDCore/include/DD4hep/DetectorData.h index e67becbe0..799588943 100644 --- a/DDCore/include/DD4hep/DetectorData.h +++ b/DDCore/include/DD4hep/DetectorData.h @@ -131,7 +131,7 @@ namespace dd4hep { VolumeManager m_volManager; /// Detector description state - Detector::State m_state = Detector::VIRGIN; + Detector::State m_state = Detector::NOT_READY; /// Flag to inhibit the access to global constants. Value set by constants section 'Detector_InhibitConstants' bool m_inhibitConstants; -- GitLab