From a98f9cbad5c46c4d48e7f079ff6d45d1853adebd Mon Sep 17 00:00:00 2001 From: Sean Dobbs Date: Wed, 4 Sep 2024 14:01:55 -0400 Subject: [PATCH] fix compiler warnings --- src/libraries/include/GlueX.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/libraries/include/GlueX.h b/src/libraries/include/GlueX.h index 99294f0aa..df5201f54 100644 --- a/src/libraries/include/GlueX.h +++ b/src/libraries/include/GlueX.h @@ -84,8 +84,11 @@ inline const char* SystemName(DetectorSystem_t sys) case SYS_CCAL_REF: return "CCAL_REF"; break; - case SYS_RF: - return "RF"; + case SYS_ECAL: + return "ECAL"; + break; + case SYS_ECAL_REF: + return "ECAL_REF"; break; case SYS_PS: return "PS"; @@ -160,6 +163,10 @@ inline DetectorSystem_t NameToSystem(const char* locSystemName) return SYS_TRD; else if(strcmp(locSystemName, "CTOF") == 0) return SYS_CTOF; + else if(strcmp(locSystemName, "ECAL") == 0) + return SYS_ECAL; + else if(strcmp(locSystemName, "ECAL_REF") == 0) + return SYS_ECAL_REF; else return SYS_NULL; }