diff --git a/Framework/include/QualityControl/UserCodeInterface.h b/Framework/include/QualityControl/UserCodeInterface.h index cc58294b8..f3b7fe99f 100644 --- a/Framework/include/QualityControl/UserCodeInterface.h +++ b/Framework/include/QualityControl/UserCodeInterface.h @@ -25,7 +25,8 @@ #include "QualityControl/CustomParameters.h" #include "QualityControl/DatabaseInterface.h" -namespace o2::ctp { +namespace o2::ctp +{ class CTPRateFetcher; } @@ -61,7 +62,7 @@ class UserCodeInterface : public ConditionAccess /// \brief Retrieve fresh scalers from the QCDB (with cache) void updateScalers(); std::shared_ptr mCtpFetcher; - std::chrono::steady_clock::time_point mScalersLastUpdate; + std::chrono::steady_clock::time_point mScalersLastUpdate; bool mScalersEnabled = false; protected: diff --git a/Framework/src/UserCodeInterface.cxx b/Framework/src/UserCodeInterface.cxx index ae83243d4..954d166f5 100644 --- a/Framework/src/UserCodeInterface.cxx +++ b/Framework/src/UserCodeInterface.cxx @@ -58,13 +58,13 @@ void UserCodeInterface::enableCtpScalers(size_t runNumber, std::string ccdbUrl) void UserCodeInterface::updateScalers() { - if(!mScalersEnabled) { + if (!mScalersEnabled) { ILOG(Error, Ops) << "CTP scalers not enabled, impossible to get them." << ENDM; return; // TODO should we throw ? probably yes } ILOG(Debug, Devel) << "Updating scalers." << ENDM; - if(! mDatabase) { + if (!mDatabase) { ILOG(Error, Devel) << "Database not set ! Cannot update scalers." << ENDM; mScalersEnabled = false; @@ -91,7 +91,7 @@ void UserCodeInterface::updateScalers() double UserCodeInterface::getScalersValue(std::string sourceName, size_t runNumber) { - if(!mScalersEnabled) { + if (!mScalersEnabled) { ILOG(Error, Ops) << "CTP scalers not enabled, impossible to get the value." << ENDM; return 0; }