From 4859271b824396bc76578cfabf6f660c46715204 Mon Sep 17 00:00:00 2001 From: acolla Date: Mon, 6 Aug 2007 12:26:40 +0000 Subject: [PATCH] Function Bool_t GetHLTStatus added to preprocessor. It returns the status of HLT read from the run logbook. --- SHUTTLE/AliShuttle.cxx | 21 +++++++++++++++++++++ SHUTTLE/AliShuttle.h | 1 + 2 files changed, 22 insertions(+) diff --git a/SHUTTLE/AliShuttle.cxx b/SHUTTLE/AliShuttle.cxx index 7aa1a4df1bd..1618cad74b9 100644 --- a/SHUTTLE/AliShuttle.cxx +++ b/SHUTTLE/AliShuttle.cxx @@ -15,6 +15,9 @@ /* $Log$ +Revision 1.54 2007/07/12 09:51:25 jgrosseo +removed duplicated log message in GetFile + Revision 1.53 2007/07/12 09:26:28 jgrosseo updating hlt fxs base path @@ -2907,6 +2910,24 @@ const char* AliShuttle::GetRunType() return fLogbookEntry->GetRunType(); } +//______________________________________________________________________________________________ +Bool_t AliShuttle::GetHLTStatus() +{ + // Return HLT status (ON=1 OFF=0) + // Converts the HLT status from the status string read in the run logbook (not just a bool) + + if(!fLogbookEntry) { + AliError("No logbook entry!"); + return 0; + } + + // TODO implement when HLTStatus is inserted in run logbook + //TString hltStatus = fLogbookEntry->GetRunParameter("HLTStatus"); + //if(hltStatus == "OFF") {return kFALSE}; + + return kTRUE; +} + //______________________________________________________________________________________________ void AliShuttle::SetShuttleTempDir(const char* tmpDir) { diff --git a/SHUTTLE/AliShuttle.h b/SHUTTLE/AliShuttle.h index 95ba1b59e70..9f85f8eefbf 100644 --- a/SHUTTLE/AliShuttle.h +++ b/SHUTTLE/AliShuttle.h @@ -62,6 +62,7 @@ public: virtual const char* GetRunParameter(const char* lbEntry); virtual AliCDBEntry* GetFromOCDB(const char* detector, const AliCDBPath& path); virtual const char* GetRunType(); + virtual Bool_t GetHLTStatus(); virtual void Log(const char* detector, const char* message); void SetLogbookEntry(AliShuttleLogbookEntry* entry) {fLogbookEntry=entry;} -- 2.43.5