Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Barthelemy committed Oct 23, 2024
1 parent 24da4c2 commit 3cf10ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions Framework/include/QualityControl/UserCodeInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
#include "QualityControl/CustomParameters.h"
#include "QualityControl/DatabaseInterface.h"

namespace o2::ctp {
namespace o2::ctp
{
class CTPRateFetcher;
}

Expand Down Expand Up @@ -61,7 +62,7 @@ class UserCodeInterface : public ConditionAccess
/// \brief Retrieve fresh scalers from the QCDB (with cache)
void updateScalers();
std::shared_ptr<o2::ctp::CTPRateFetcher> mCtpFetcher;
std::chrono::steady_clock::time_point mScalersLastUpdate;
std::chrono::steady_clock::time_point mScalersLastUpdate;
bool mScalersEnabled = false;

protected:
Expand Down
6 changes: 3 additions & 3 deletions Framework/src/UserCodeInterface.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
}
Expand Down

0 comments on commit 3cf10ca

Please sign in to comment.