diff --git a/Framework/include/QualityControl/ExamplePrinterSpec.h b/Framework/include/QualityControl/ExamplePrinterSpec.h index b93a5f20c9..a88474f2ac 100644 --- a/Framework/include/QualityControl/ExamplePrinterSpec.h +++ b/Framework/include/QualityControl/ExamplePrinterSpec.h @@ -43,23 +43,23 @@ class ExamplePrinterSpec : public framework::Task public: void run(ProcessingContext& processingContext) final { - LOG(INFO) << "Received data"; + LOG(info) << "Received data"; std::shared_ptr moArray{ DataRefUtils::as(*processingContext.inputs().begin()) }; if (moArray->IsEmpty()) { - LOG(INFO) << "Array is empty"; + LOG(info) << "Array is empty"; return; } // get the object auto* mo = dynamic_cast(moArray->At(0)); if (mo == nullptr) { - LOG(INFO) << "First element is not a MonitorObject"; + LOG(info) << "First element is not a MonitorObject"; return; } auto* histo = dynamic_cast(mo->getObject()); if (histo == nullptr) { - LOG(INFO) << "MonitorObject does not contain a TH1"; + LOG(info) << "MonitorObject does not contain a TH1"; return; } @@ -67,7 +67,7 @@ class ExamplePrinterSpec : public framework::Task for (int i = 0; i < histo->GetNbinsX(); i++) { bins += " " + std::to_string((int)histo->GetBinContent(i)); } - LOG(INFO) << bins; + LOG(info) << bins; } }; @@ -84,7 +84,7 @@ class ExampleQualityPrinterSpec : public framework::Task { auto qo = processingContext.inputs().get("checked-mo"); - LOG(INFO) << "Received Quality: " << qo->getQuality(); + LOG(info) << "Received Quality: " << qo->getQuality(); } }; diff --git a/Framework/test/testQcInfoLogger.cxx b/Framework/test/testQcInfoLogger.cxx index 3df255c795..5b4a9fbcb0 100644 --- a/Framework/test/testQcInfoLogger.cxx +++ b/Framework/test/testQcInfoLogger.cxx @@ -64,7 +64,7 @@ BOOST_AUTO_TEST_CASE(qc_info_logger_2) ILOG_INST.log("c. info message"); // Using fairlogger - LOG(INFO) << "fair message in infologger"; + LOG(info) << "fair message in infologger"; // using different levels ILOG(Debug, Devel) << "LogDebugDevel" << ENDM; diff --git a/Modules/CPV/src/PedestalTask.cxx b/Modules/CPV/src/PedestalTask.cxx index 6d40c0d07b..7b9eebf454 100644 --- a/Modules/CPV/src/PedestalTask.cxx +++ b/Modules/CPV/src/PedestalTask.cxx @@ -120,7 +120,7 @@ void PedestalTask::monitorData(o2::framework::ProcessingContext& ctx) auto digitsTR = ctx.inputs().get>("dtrigrec"); //mNEventsTotal += digitsTR.size();//number of events in the current input for (const auto& trigRecord : digitsTR) { - LOG(DEBUG) << " monitorData() : trigger record #" << mNEventsTotal + LOG(debug) << " monitorData() : trigger record #" << mNEventsTotal << " contains " << trigRecord.getNumberOfObjects() << " objects." << ENDM; if (trigRecord.getNumberOfObjects() > 0) { //at least 1 digit -> pedestal event mNEventsTotal++; @@ -153,13 +153,13 @@ void PedestalTask::monitorData(o2::framework::ProcessingContext& ctx) // Double_t stats[4]; // h->GetStats(stats); // auto s = ctx.inputs().get("string"); - // LOG(INFO) << "String is " << s->GetString().Data(); + // LOG(info) << "String is " << s->GetString().Data(); // 3. Access CCDB. If it is enough to retrieve it once, do it in initialize(). // Remember to delete the object when the pointer goes out of scope or it is no longer needed. // TObject* condition = TaskInterface::retrieveCondition("QcTask/example"); // put a valid condition path here // if (condition) { - // LOG(INFO) << "Retrieved " << condition->ClassName(); + // LOG(info) << "Retrieved " << condition->ClassName(); // delete condition; // } } @@ -411,7 +411,7 @@ void PedestalTask::fillHistograms() if (channel % 1000 == 0) { ILOG(Info, Devel) << "fillHistograms(): Start to search peaks in channel " << channel << ENDM; - LOG(INFO) << "fillHistograms(): Start to search peaks in channel " << channel; + LOG(info) << "fillHistograms(): Start to search peaks in channel " << channel; } numberOfPeaks = peakSearcher->Search(mHistAmplitudes[channel], 10., "nobackground", 0.2); @@ -465,7 +465,7 @@ void PedestalTask::fillHistograms() //show some info to developer ILOG(Info, Devel) << "fillHistograms() : at this time, N events = " << mNEventsTotal << ENDM; - LOG(INFO) << "fillPedestals() : I finished filling of histograms"; + LOG(info) << "fillPedestals() : I finished filling of histograms"; } void PedestalTask::resetHistograms() diff --git a/Modules/EMCAL/src/DigitCheck.cxx b/Modules/EMCAL/src/DigitCheck.cxx index 83ff07d219..6d58ce63cd 100644 --- a/Modules/EMCAL/src/DigitCheck.cxx +++ b/Modules/EMCAL/src/DigitCheck.cxx @@ -104,14 +104,14 @@ void DigitCheck::beautify(std::shared_ptr mo, Quality checkResult // h->SetFillColor(kGreen); } else if (checkResult == Quality::Bad) { - LOG(INFO) << "Quality::Bad, setting to red"; + LOG(info) << "Quality::Bad, setting to red"; msg->Clear(); msg->AddText("Mean outside limits or no entries"); msg->AddText("If NOT a technical run,"); msg->AddText("call EMCAL on-call."); h->SetFillColor(kRed); } else if (checkResult == Quality::Medium) { - LOG(INFO) << "Quality::medium, setting to orange"; + LOG(info) << "Quality::medium, setting to orange"; h->SetFillColor(kOrange); } h->SetLineColor(kBlack); @@ -130,14 +130,14 @@ void DigitCheck::beautify(std::shared_ptr mo, Quality checkResult // h->SetFillColor(kGreen); } else if (checkResult == Quality::Bad) { - LOG(INFO) << "Quality::Bad, setting to red"; + LOG(info) << "Quality::Bad, setting to red"; msg->Clear(); msg->AddText("Mean outside limits or no entries"); msg->AddText("If NOT a technical run,"); msg->AddText("call EMCAL on-call."); h->SetFillColor(kRed); } else if (checkResult == Quality::Medium) { - LOG(INFO) << "Quality::medium, setting to orange"; + LOG(info) << "Quality::medium, setting to orange"; h->SetFillColor(kOrange); } h->SetLineColor(kBlack); diff --git a/Modules/EMCAL/src/RawCheck.cxx b/Modules/EMCAL/src/RawCheck.cxx index 2265e655ea..aa59cb9a4b 100644 --- a/Modules/EMCAL/src/RawCheck.cxx +++ b/Modules/EMCAL/src/RawCheck.cxx @@ -68,14 +68,14 @@ void RawCheck::beautify(std::shared_ptr mo, Quality checkResult) // h->SetFillColor(kGreen); } else if (checkResult == Quality::Bad) { - LOG(INFO) << "Quality::Bad, setting to red"; + LOG(info) << "Quality::Bad, setting to red"; msg->Clear(); msg->AddText("Presence of Error Code"); //Type of the Error, in SM XX msg->AddText("If NOT a technical run,"); msg->AddText("call EMCAL on-call."); h->SetFillColor(kRed); } else if (checkResult == Quality::Medium) { - LOG(INFO) << "Quality::medium, setting to orange"; + LOG(info) << "Quality::medium, setting to orange"; h->SetFillColor(kOrange); } h->SetLineColor(kBlack); diff --git a/Modules/EMCAL/src/runQCEMCALDigits.cxx b/Modules/EMCAL/src/runQCEMCALDigits.cxx index 94f2f0fc08..1931221bb7 100644 --- a/Modules/EMCAL/src/runQCEMCALDigits.cxx +++ b/Modules/EMCAL/src/runQCEMCALDigits.cxx @@ -101,7 +101,7 @@ o2::framework::WorkflowSpec defineDataProcessing(o2::framework::ConfigContext co // Path to the config file std::string qcConfigurationSource = getConfigPath(config); - LOG(INFO) << "Using config file '" << qcConfigurationSource << "'"; + LOG(info) << "Using config file '" << qcConfigurationSource << "'"; if (!config.options().get("local") && !config.options().get("remote")) { ILOG(Info, Support) << "Creating a standalone QC topology." << ENDM; diff --git a/Modules/ITS/src/ITSClusterTask.cxx b/Modules/ITS/src/ITSClusterTask.cxx index 2b49b7d06f..eb0bc6918d 100644 --- a/Modules/ITS/src/ITSClusterTask.cxx +++ b/Modules/ITS/src/ITSClusterTask.cxx @@ -93,10 +93,10 @@ void ITSClusterTask::initialize(o2::framework::InitContext& /*ctx*/) std::ifstream file(mDictPath.c_str()); if (file.good()) { - LOG(INFO) << "Running with dictionary: " << mDictPath; + LOG(info) << "Running with dictionary: " << mDictPath; mDict.readBinaryFile(mDictPath); } else { - LOG(INFO) << "Running without dictionary !"; + LOG(info) << "Running without dictionary !"; } } @@ -305,12 +305,12 @@ void ITSClusterTask::getJsonParameters() mRunNumberPath = mCustomParameters["runNumberPath"]; mGeomPath = mCustomParameters["geomPath"]; mNThreads = stoi(mCustomParameters.find("nThreads")->second); - LOG(INFO) << "#################### mNThreads : " << mNThreads; + LOG(info) << "#################### mNThreads : " << mNThreads; for (int ilayer = 0; ilayer < NLayer; ilayer++) { if (mCustomParameters["layer"][ilayer] != '0') { mEnableLayers[ilayer] = 1; - LOG(INFO) << "enable layer : " << ilayer; + LOG(info) << "enable layer : " << ilayer; } else { mEnableLayers[ilayer] = 0; } @@ -320,7 +320,7 @@ void ITSClusterTask::getJsonParameters() void ITSClusterTask::addObject(TObject* aObject) { if (!aObject) { - LOG(INFO) << " ERROR: trying to add non-existent object "; + LOG(info) << " ERROR: trying to add non-existent object "; return; } else mPublishedObjects.push_back(aObject); @@ -338,7 +338,7 @@ void ITSClusterTask::publishHistos() { for (unsigned int iObj = 0; iObj < mPublishedObjects.size(); iObj++) { getObjectsManager()->startPublishing(mPublishedObjects.at(iObj)); - LOG(INFO) << " Object will be published: " << mPublishedObjects.at(iObj)->GetName(); + LOG(info) << " Object will be published: " << mPublishedObjects.at(iObj)->GetName(); } } diff --git a/Modules/ITS/src/ITSRawTask.cxx b/Modules/ITS/src/ITSRawTask.cxx index 8eb789db3e..40b3ff746e 100644 --- a/Modules/ITS/src/ITSRawTask.cxx +++ b/Modules/ITS/src/ITSRawTask.cxx @@ -211,7 +211,7 @@ void ITSRawTask::monitorData(o2::framework::ProcessingContext& ctx) auto digits = ctx.inputs().get>("digits"); auto events = ctx.inputs().get("Events"); - LOG(INFO) << "Digit Size Getting For This TimeFrame (Event) = " << digits.size(); + LOG(info) << "Digit Size Getting For This TimeFrame (Event) = " << digits.size(); mErrors = ctx.inputs().get>("Error"); diff --git a/Modules/ITS/src/ITSTrackTask.cxx b/Modules/ITS/src/ITSTrackTask.cxx index aa95f78a4a..a215bbc3f9 100644 --- a/Modules/ITS/src/ITSTrackTask.cxx +++ b/Modules/ITS/src/ITSTrackTask.cxx @@ -55,10 +55,10 @@ void ITSTrackTask::initialize(o2::framework::InitContext& /*ctx*/) std::ifstream file(dictfile.c_str()); if (file.good()) { - LOG(INFO) << "Running with dictionary: " << dictfile.c_str(); + LOG(info) << "Running with dictionary: " << dictfile.c_str(); mDict.readBinaryFile(dictfile); } else { - LOG(INFO) << "Running without dictionary !"; + LOG(info) << "Running without dictionary !"; } } @@ -182,7 +182,7 @@ void ITSTrackTask::createAllHistos() void ITSTrackTask::addObject(TObject* aObject) { if (!aObject) { - LOG(INFO) << " ERROR: trying to add non-existent object "; + LOG(info) << " ERROR: trying to add non-existent object "; return; } else { mPublishedObjects.push_back(aObject); @@ -201,7 +201,7 @@ void ITSTrackTask::publishHistos() { for (unsigned int iObj = 0; iObj < mPublishedObjects.size(); iObj++) { getObjectsManager()->startPublishing(mPublishedObjects.at(iObj)); - LOG(INFO) << " Object will be published: " << mPublishedObjects.at(iObj)->GetName(); + LOG(info) << " Object will be published: " << mPublishedObjects.at(iObj)->GetName(); } } diff --git a/Modules/ITS/src/runITS.cxx b/Modules/ITS/src/runITS.cxx index 237bad4259..e42f1a4841 100644 --- a/Modules/ITS/src/runITS.cxx +++ b/Modules/ITS/src/runITS.cxx @@ -80,7 +80,7 @@ WorkflowSpec defineDataProcessing(const ConfigContext& config) // Path to the config file std::string qcConfigurationSource = getConfigPath(config); - LOG(INFO) << "Using config file '" << qcConfigurationSource << "'"; + LOG(info) << "Using config file '" << qcConfigurationSource << "'"; // Generation of Data Sampling infrastructure auto configInterface = ConfigurationFactory::getConfiguration(qcConfigurationSource); diff --git a/Modules/MFT/src/QcMFTClusterCheck.cxx b/Modules/MFT/src/QcMFTClusterCheck.cxx index 93c4115530..0b160de042 100644 --- a/Modules/MFT/src/QcMFTClusterCheck.cxx +++ b/Modules/MFT/src/QcMFTClusterCheck.cxx @@ -67,19 +67,19 @@ void QcMFTClusterCheck::beautify(std::shared_ptr mo, Quality chec auto* histogram = dynamic_cast(mo->getObject()); if (checkResult == Quality::Good) { - LOG(INFO) << "Quality::Good"; + LOG(info) << "Quality::Good"; histogram->SetLineColor(kGreen + 2); TLatex* tl = new TLatex(350, 1.05 * histogram->GetMaximum(), "#color[418]{Dummy check status: Good!}"); histogram->GetListOfFunctions()->Add(tl); tl->Draw(); } else if (checkResult == Quality::Bad) { - LOG(INFO) << "Quality::Bad"; + LOG(info) << "Quality::Bad"; histogram->SetLineColor(kRed + 1); TLatex* tl = new TLatex(350, 1.05 * histogram->GetMaximum(), "#color[633]{Dummy check status: Bad!}"); histogram->GetListOfFunctions()->Add(tl); tl->Draw(); } else if (checkResult == Quality::Medium) { - LOG(INFO) << "Quality::Medium"; + LOG(info) << "Quality::Medium"; histogram->SetLineColor(kOrange); TLatex* tl = new TLatex(350, 1.05 * histogram->GetMaximum(), "#color[800]{Dummy check status: Medium!}"); histogram->GetListOfFunctions()->Add(tl); diff --git a/Modules/MFT/src/QcMFTDigitCheck.cxx b/Modules/MFT/src/QcMFTDigitCheck.cxx index 1bf3cb387d..48b5a72e78 100644 --- a/Modules/MFT/src/QcMFTDigitCheck.cxx +++ b/Modules/MFT/src/QcMFTDigitCheck.cxx @@ -69,17 +69,17 @@ void QcMFTDigitCheck::beautify(std::shared_ptr mo, Quality checkR auto* histogram = dynamic_cast(mo->getObject()); if (checkResult == Quality::Good) { - LOG(INFO) << "Quality::Good"; + LOG(info) << "Quality::Good"; TLatex* tl = new TLatex(350, 1.05 * histogram->GetMaximum(), "#color[418]{Dummy check status: Good!}"); histogram->GetListOfFunctions()->Add(tl); tl->Draw(); } else if (checkResult == Quality::Bad) { - LOG(INFO) << "Quality::Bad"; + LOG(info) << "Quality::Bad"; TLatex* tl = new TLatex(350, 1.05 * histogram->GetMaximum(), "#color[633]{Dummy check status: Bad!}"); histogram->GetListOfFunctions()->Add(tl); tl->Draw(); } else if (checkResult == Quality::Medium) { - LOG(INFO) << "Quality::Medium"; + LOG(info) << "Quality::Medium"; TLatex* tl = new TLatex(350, 1.05 * histogram->GetMaximum(), "#color[800]{Dummy check status: Medium!}"); histogram->GetListOfFunctions()->Add(tl); tl->Draw(); diff --git a/Modules/MFT/src/QcMFTReadoutCheck.cxx b/Modules/MFT/src/QcMFTReadoutCheck.cxx index dde2d3b4ff..9cd5c7c9dd 100644 --- a/Modules/MFT/src/QcMFTReadoutCheck.cxx +++ b/Modules/MFT/src/QcMFTReadoutCheck.cxx @@ -65,13 +65,13 @@ void QcMFTReadoutCheck::beautify(std::shared_ptr mo, Quality chec auto* histogram = dynamic_cast(mo->getObject()); if (checkResult == Quality::Good) { - LOG(INFO) << "Quality::Good, setting to green"; + LOG(info) << "Quality::Good, setting to green"; histogram->SetLineColor(kGreen + 2); TLatex* tl = new TLatex(1.4, 1.05 * histogram->GetMaximum(), "#color[418]{Check status: Good!}"); histogram->GetListOfFunctions()->Add(tl); tl->Draw(); } else if (checkResult == Quality::Bad) { - LOG(INFO) << "Quality::Bad, setting to red"; + LOG(info) << "Quality::Bad, setting to red"; histogram->SetLineColor(kRed + 1); TLatex* tl = new TLatex(1.4, 1.05 * histogram->GetMaximum(), "#color[633]{Check status: Bad!}"); histogram->GetListOfFunctions()->Add(tl); diff --git a/Modules/MFT/src/QcMFTTrackCheck.cxx b/Modules/MFT/src/QcMFTTrackCheck.cxx index 12e8bc55f5..2e0ec4ab3b 100644 --- a/Modules/MFT/src/QcMFTTrackCheck.cxx +++ b/Modules/MFT/src/QcMFTTrackCheck.cxx @@ -60,13 +60,13 @@ void QcMFTTrackCheck::beautify(std::shared_ptr mo, Quality checkR auto* histogram = dynamic_cast(mo->getObject()); if (checkResult == Quality::Good) { - LOG(INFO) << "Quality::Good, setting to green"; + LOG(info) << "Quality::Good, setting to green"; histogram->SetLineColor(kGreen); } else if (checkResult == Quality::Bad) { - LOG(INFO) << "Quality::Bad, setting to red"; + LOG(info) << "Quality::Bad, setting to red"; histogram->SetLineColor(kRed); } else if (checkResult == Quality::Medium) { - LOG(INFO) << "Quality::Medium, setting to orange"; + LOG(info) << "Quality::Medium, setting to orange"; histogram->SetLineColor(kOrange); } histogram->SetLineColor(kBlack); diff --git a/Modules/MFT/src/runMFTClustersRootFileReader.cxx b/Modules/MFT/src/runMFTClustersRootFileReader.cxx index abff0d414e..d316c2c924 100644 --- a/Modules/MFT/src/runMFTClustersRootFileReader.cxx +++ b/Modules/MFT/src/runMFTClustersRootFileReader.cxx @@ -50,13 +50,13 @@ class MFTClustersRootFileReader : public o2::framework::Task //_________________________________________________________________________________________________ void init(framework::InitContext& ic) { - LOG(INFO) << " In MFTClustersRootFileReader::init ... entering "; + LOG(info) << " In MFTClustersRootFileReader::init ... entering "; // open the input file auto filename = ic.options().get("mft-cluster-infile"); mFile = std::make_unique(filename.c_str(), "OLD"); if (!mFile->IsOpen()) { - LOG(ERROR) << "MFTClustersRootFileReader::init. Cannot open the file: " << filename.c_str(); + LOG(error) << "MFTClustersRootFileReader::init. Cannot open the file: " << filename.c_str(); ic.services().get().endOfStream(); ic.services().get().readyToQuit(QuitRequest::Me); return; @@ -70,7 +70,7 @@ class MFTClustersRootFileReader : public o2::framework::Task // check that it has entries mNumberOfTF = mTree->GetEntries(); if (mNumberOfTF == 0) { - LOG(ERROR) << "MFTClustersRootFileReader::init. No TFs "; + LOG(error) << "MFTClustersRootFileReader::init. No TFs "; ic.services().get().endOfStream(); ic.services().get().readyToQuit(QuitRequest::Me); return; @@ -84,7 +84,7 @@ class MFTClustersRootFileReader : public o2::framework::Task // Check if this is the last TF if (mCurrentTF == mNumberOfTF) { - LOG(INFO) << " MFTClustersRootFileReader::run. End of file reached"; + LOG(info) << " MFTClustersRootFileReader::run. End of file reached"; pc.services().get().endOfStream(); pc.services().get().readyToQuit(QuitRequest::Me); return; diff --git a/Modules/MFT/src/runMFTDigitsHotPixelRootFileReader.cxx b/Modules/MFT/src/runMFTDigitsHotPixelRootFileReader.cxx index ab73807be9..25e12267ce 100644 --- a/Modules/MFT/src/runMFTDigitsHotPixelRootFileReader.cxx +++ b/Modules/MFT/src/runMFTDigitsHotPixelRootFileReader.cxx @@ -48,13 +48,13 @@ class MFTDigitsHotPixelRootFileReader : public o2::framework::Task //_________________________________________________________________________________________________ void init(framework::InitContext& ic) { - LOG(INFO) << " In MFTDigitsHotPixelRootFileReader::init ... entering "; + LOG(info) << " In MFTDigitsHotPixelRootFileReader::init ... entering "; // open the input file auto filename = ic.options().get("mft-digit-infile"); mFile = std::make_unique(filename.c_str(), "OLD"); if (!mFile->IsOpen()) { - LOG(ERROR) << "MFTDigitsHotPixelRootFileReader::init. Cannot open the file: " << filename.c_str(); + LOG(error) << "MFTDigitsHotPixelRootFileReader::init. Cannot open the file: " << filename.c_str(); ic.services().get().endOfStream(); ic.services().get().readyToQuit(QuitRequest::Me); return; @@ -68,12 +68,12 @@ class MFTDigitsHotPixelRootFileReader : public o2::framework::Task // check that it has entries mNumberOfTF = mTree->GetEntries(); if (mNumberOfTF == 0) { - LOG(ERROR) << "MFTDigitsHotPixelRootFileReader::init. No TFs "; + LOG(error) << "MFTDigitsHotPixelRootFileReader::init. No TFs "; ic.services().get().endOfStream(); ic.services().get().readyToQuit(QuitRequest::Me); return; } - //LOG(INFO) << " oooooooooooo In MFTDigitsHotPixelRootFileReader::init ... mNumberOfTF = " << mNumberOfTF; + //LOG(info) << " oooooooooooo In MFTDigitsHotPixelRootFileReader::init ... mNumberOfTF = " << mNumberOfTF; } //_________________________________________________________________________________________________ @@ -83,7 +83,7 @@ class MFTDigitsHotPixelRootFileReader : public o2::framework::Task // Check if this is the last TF if (mCurrentTF == mNumberOfTF) { - LOG(INFO) << " MFTDigitsHotPixelRootFileReader::run. End of file reached"; + LOG(info) << " MFTDigitsHotPixelRootFileReader::run. End of file reached"; pc.services().get().endOfStream(); pc.services().get().readyToQuit(QuitRequest::Me); return; diff --git a/Modules/MFT/src/runMFTDigitsRootFileReader.cxx b/Modules/MFT/src/runMFTDigitsRootFileReader.cxx index 0eb1619b95..6620c15f97 100644 --- a/Modules/MFT/src/runMFTDigitsRootFileReader.cxx +++ b/Modules/MFT/src/runMFTDigitsRootFileReader.cxx @@ -49,13 +49,13 @@ class MFTDigitsRootFileReader : public o2::framework::Task //_________________________________________________________________________________________________ void init(framework::InitContext& ic) { - LOG(INFO) << " In MFTDigitsRootFileReader::init ... entering "; + LOG(info) << " In MFTDigitsRootFileReader::init ... entering "; // open the input file auto filename = ic.options().get("mft-digit-infile"); mFile = std::make_unique(filename.c_str(), "OLD"); if (!mFile->IsOpen()) { - LOG(ERROR) << "MFTDigitsRootFileReader::init. Cannot open the file: " << filename.c_str(); + LOG(error) << "MFTDigitsRootFileReader::init. Cannot open the file: " << filename.c_str(); ic.services().get().endOfStream(); ic.services().get().readyToQuit(QuitRequest::Me); return; @@ -69,12 +69,12 @@ class MFTDigitsRootFileReader : public o2::framework::Task // check that it has entries mNumberOfTF = mTree->GetEntries(); if (mNumberOfTF == 0) { - LOG(ERROR) << "MFTDigitsRootFileReader::init. No TFs "; + LOG(error) << "MFTDigitsRootFileReader::init. No TFs "; ic.services().get().endOfStream(); ic.services().get().readyToQuit(QuitRequest::Me); return; } - //LOG(INFO) << " oooooooooooo In MFTDigitsRootFileReader::init ... mNumberOfTF = " << mNumberOfTF; + //LOG(info) << " oooooooooooo In MFTDigitsRootFileReader::init ... mNumberOfTF = " << mNumberOfTF; } //_________________________________________________________________________________________________ @@ -84,7 +84,7 @@ class MFTDigitsRootFileReader : public o2::framework::Task // Check if this is the last TF if (mCurrentTF == mNumberOfTF) { - LOG(INFO) << " MFTDigitsRootFileReader::run. End of file reached"; + LOG(info) << " MFTDigitsRootFileReader::run. End of file reached"; pc.services().get().endOfStream(); pc.services().get().readyToQuit(QuitRequest::Me); return; diff --git a/Modules/MFT/src/runMFTTracksRootFileReader.cxx b/Modules/MFT/src/runMFTTracksRootFileReader.cxx index 44117a8b2f..c1084902a8 100644 --- a/Modules/MFT/src/runMFTTracksRootFileReader.cxx +++ b/Modules/MFT/src/runMFTTracksRootFileReader.cxx @@ -51,13 +51,13 @@ class MFTTracksRootFileReader : public o2::framework::Task //_________________________________________________________________________________________________ void init(framework::InitContext& ic) { - LOG(INFO) << " In MFTTracksRootFileReader::init ... entering "; + LOG(info) << " In MFTTracksRootFileReader::init ... entering "; // open the input file auto filename = ic.options().get("mft-track-infile"); mFile = std::make_unique(filename.c_str(), "OLD"); if (!mFile->IsOpen()) { - LOG(ERROR) << "MFTTracksRootFileReader::init. Cannot open the file: " << filename.c_str(); + LOG(error) << "MFTTracksRootFileReader::init. Cannot open the file: " << filename.c_str(); ic.services().get().endOfStream(); ic.services().get().readyToQuit(QuitRequest::Me); return; @@ -71,7 +71,7 @@ class MFTTracksRootFileReader : public o2::framework::Task // check that it has entries mNumberOfTF = mTree->GetEntries(); if (mNumberOfTF == 0) { - LOG(ERROR) << "MFTTracksRootFileReader::init. No TFs "; + LOG(error) << "MFTTracksRootFileReader::init. No TFs "; ic.services().get().endOfStream(); ic.services().get().readyToQuit(QuitRequest::Me); return; @@ -85,7 +85,7 @@ class MFTTracksRootFileReader : public o2::framework::Task // Check if this is the last TF if (mCurrentTF == mNumberOfTF) { - LOG(INFO) << " MFTDTracksRootFileReader::run. End of file reached"; + LOG(info) << " MFTDTracksRootFileReader::run. End of file reached"; pc.services().get().endOfStream(); pc.services().get().readyToQuit(QuitRequest::Me); return; diff --git a/Modules/MUON/MCH/src/PedestalsCheck.cxx b/Modules/MUON/MCH/src/PedestalsCheck.cxx index ff7ea47e2b..ff3d98154d 100644 --- a/Modules/MUON/MCH/src/PedestalsCheck.cxx +++ b/Modules/MUON/MCH/src/PedestalsCheck.cxx @@ -105,7 +105,7 @@ void PedestalsCheck::beautify(std::shared_ptr mo, Quality checkRe // h->SetFillColor(kGreen); } else if (checkResult == Quality::Bad) { - LOG(INFO) << "Quality::Bad, setting to red"; + LOG(info) << "Quality::Bad, setting to red"; // msg->Clear(); msg->AddText("Call MCH on-call."); @@ -113,7 +113,7 @@ void PedestalsCheck::beautify(std::shared_ptr mo, Quality checkRe // h->SetFillColor(kRed); } else if (checkResult == Quality::Medium) { - LOG(INFO) << "Quality::medium, setting to orange"; + LOG(info) << "Quality::medium, setting to orange"; // msg->Clear(); msg->AddText("No entries. If MCH in the run, check MCH TWiki"); diff --git a/Modules/MUON/MCH/src/PhysicsCheck.cxx b/Modules/MUON/MCH/src/PhysicsCheck.cxx index 84b91feda8..58b2e68596 100644 --- a/Modules/MUON/MCH/src/PhysicsCheck.cxx +++ b/Modules/MUON/MCH/src/PhysicsCheck.cxx @@ -119,7 +119,7 @@ void PhysicsCheck::beautify(std::shared_ptr mo, Quality checkResu // h->SetFillColor(kGreen); } else if (checkResult == Quality::Bad) { - LOG(INFO) << "Quality::Bad, setting to red"; + LOG(info) << "Quality::Bad, setting to red"; // msg->Clear(); msg->AddText("Call MCH on-call."); @@ -127,7 +127,7 @@ void PhysicsCheck::beautify(std::shared_ptr mo, Quality checkResu // h->SetFillColor(kRed); } else if (checkResult == Quality::Medium) { - LOG(INFO) << "Quality::medium, setting to orange"; + LOG(info) << "Quality::medium, setting to orange"; // msg->Clear(); msg->AddText("No entries. If MCH in the run, check MCH TWiki"); diff --git a/Modules/MUON/MID/src/runMID.cxx b/Modules/MUON/MID/src/runMID.cxx index 27e419425e..887dfe8783 100644 --- a/Modules/MUON/MID/src/runMID.cxx +++ b/Modules/MUON/MID/src/runMID.cxx @@ -76,7 +76,7 @@ WorkflowSpec defineDataProcessing(const ConfigContext& config) // Path to the config file std::string qcConfigurationSource = getConfigPath(config); - LOG(INFO) << "Using config file '" << qcConfigurationSource << "'"; + LOG(info) << "Using config file '" << qcConfigurationSource << "'"; // Generation of Data Sampling infrastructure auto configInterface = ConfigurationFactory::getConfiguration(qcConfigurationSource); diff --git a/Modules/PHOS/src/ClusterCheck.cxx b/Modules/PHOS/src/ClusterCheck.cxx index 986e568d3d..a691e23b9b 100644 --- a/Modules/PHOS/src/ClusterCheck.cxx +++ b/Modules/PHOS/src/ClusterCheck.cxx @@ -110,14 +110,14 @@ void ClusterCheck::beautify(std::shared_ptr mo, Quality checkResu // h->SetFillColor(kGreen); } else if (checkResult == Quality::Bad) { - LOG(INFO) << "Quality::Bad, setting to red"; + LOG(info) << "Quality::Bad, setting to red"; msg->Clear(); msg->AddText("Too many dead channels"); msg->AddText("If NOT a technical run,"); msg->AddText("call PHOS on-call."); h->SetFillColor(kRed); } else if (checkResult == Quality::Medium) { - LOG(INFO) << "Quality::medium, setting to orange"; + LOG(info) << "Quality::medium, setting to orange"; msg->Clear(); msg->AddText("Too many noisy channels"); h->SetFillColor(kOrange); diff --git a/Modules/PHOS/src/RawCheck.cxx b/Modules/PHOS/src/RawCheck.cxx index 35ab3225af..d336cd9c95 100644 --- a/Modules/PHOS/src/RawCheck.cxx +++ b/Modules/PHOS/src/RawCheck.cxx @@ -68,14 +68,14 @@ void RawCheck::beautify(std::shared_ptr mo, Quality checkResult) // h->SetFillColor(kGreen); } else if (checkResult == Quality::Bad) { - LOG(INFO) << "Quality::Bad, setting to red"; + LOG(info) << "Quality::Bad, setting to red"; msg->Clear(); msg->AddText("Presence of Error Code"); //Type of the Error, in SM XX msg->AddText("If NOT a technical run,"); msg->AddText("call PHOS on-call."); h->SetFillColor(kRed); } else if (checkResult == Quality::Medium) { - LOG(INFO) << "Quality::medium, setting to orange"; + LOG(info) << "Quality::medium, setting to orange"; h->SetFillColor(kOrange); } h->SetLineColor(kBlack); diff --git a/Modules/PHOS/src/runQCPHOSRaw.cxx b/Modules/PHOS/src/runQCPHOSRaw.cxx index 2f092a243c..388ef5e43a 100644 --- a/Modules/PHOS/src/runQCPHOSRaw.cxx +++ b/Modules/PHOS/src/runQCPHOSRaw.cxx @@ -63,7 +63,7 @@ o2::framework::WorkflowSpec defineDataProcessing(o2::framework::ConfigContext co // Path to the config file std::string qcConfigurationSource = getConfigPath(config); - LOG(INFO) << "Using config file=== '" << qcConfigurationSource << "'"; + LOG(info) << "Using config file=== '" << qcConfigurationSource << "'"; if (config.options().get("local") && config.options().get("remote")) { ILOG(Info, Support) << "To create both local and remote QC topologies, one does not have to add any of '--local' or '--remote' flags." << ENDM; @@ -71,13 +71,13 @@ o2::framework::WorkflowSpec defineDataProcessing(o2::framework::ConfigContext co if (config.options().get("local") || !config.options().get("remote")) { - LOG(INFO) << "Local GenerateInfrastructure"; + LOG(info) << "Local GenerateInfrastructure"; // Generation of Data Sampling infrastructure auto configInterface = ConfigurationFactory::getConfiguration(qcConfigurationSource); auto dataSamplingTree = configInterface->getRecursive("dataSamplingPolicies"); DataSampling::GenerateInfrastructure(specs, dataSamplingTree); - LOG(INFO) << "Local: generateLocalInfrastructure"; + LOG(info) << "Local: generateLocalInfrastructure"; // Generation of the local QC topology (local QC tasks) o2::quality_control::generateLocalInfrastructure(specs, qcConfigurationSource, config.options().get("host")); } @@ -85,7 +85,7 @@ o2::framework::WorkflowSpec defineDataProcessing(o2::framework::ConfigContext co // Generation of the remote QC topology (task for QC servers, mergers and all checkers) o2::quality_control::generateRemoteInfrastructure(specs, qcConfigurationSource); } - LOG(INFO) << "Done "; + LOG(info) << "Done "; return specs; } diff --git a/Modules/REC/src/VertexingQcTask.cxx b/Modules/REC/src/VertexingQcTask.cxx index 1361be9165..8cacf5fee6 100644 --- a/Modules/REC/src/VertexingQcTask.cxx +++ b/Modules/REC/src/VertexingQcTask.cxx @@ -188,7 +188,7 @@ void VertexingQcTask::monitorData(o2::framework::ProcessingContext& ctx) // Remember to delete the object when the pointer goes out of scope or it is no longer needed. // TObject* condition = TaskInterface::retrieveCondition("QcTask/example"); // put a valid condition path here // if (condition) { - // LOG(INFO) << "Retrieved " << condition->ClassName(); + // LOG(info) << "Retrieved " << condition->ClassName(); // delete condition; // } } diff --git a/Modules/Skeleton/src/SkeletonTask.cxx b/Modules/Skeleton/src/SkeletonTask.cxx index dd5483b278..bc934cff2f 100644 --- a/Modules/Skeleton/src/SkeletonTask.cxx +++ b/Modules/Skeleton/src/SkeletonTask.cxx @@ -105,13 +105,13 @@ void SkeletonTask::monitorData(o2::framework::ProcessingContext& ctx) // Double_t stats[4]; // h->GetStats(stats); // auto s = ctx.inputs().get("string"); - // LOG(INFO) << "String is " << s->GetString().Data(); + // LOG(info) << "String is " << s->GetString().Data(); // 3. Access CCDB. If it is enough to retrieve it once, do it in initialize(). // Remember to delete the object when the pointer goes out of scope or it is no longer needed. // TObject* condition = TaskInterface::retrieveCondition("QcTask/example"); // put a valid condition path here // if (condition) { - // LOG(INFO) << "Retrieved " << condition->ClassName(); + // LOG(info) << "Retrieved " << condition->ClassName(); // delete condition; // } } diff --git a/Modules/TOF/include/Base/Counter.h b/Modules/TOF/include/Base/Counter.h index e8eee811cd..bfc7322f08 100644 --- a/Modules/TOF/include/Base/Counter.h +++ b/Modules/TOF/include/Base/Counter.h @@ -118,16 +118,16 @@ template void Counter::Add(const unsigned int& index, const uint32_t& weight) { if (index > size) { - LOG(FATAL) << "Incrementing counter too far! " << index << "/" << size; + LOG(fatal) << "Incrementing counter too far! " << index << "/" << size; } - LOG(DEBUG) << "Incrementing " << index << "/" << size << " of " << weight << " to " << counter[index]; + LOG(debug) << "Incrementing " << index << "/" << size << " of " << weight << " to " << counter[index]; counter[index] += weight; } template void Counter::Reset() { - LOG(DEBUG) << "Resetting Counter"; + LOG(debug) << "Resetting Counter"; for (unsigned int i = 0; i < size; i++) { counter[i] = 0; } @@ -147,9 +147,9 @@ void Counter::Print() { for (unsigned int i = 0; i < size; i++) { if (labels != nullptr) { - LOG(INFO) << "Bin " << i << "/" << size - 1 << " '" << labels[i] << "' = " << HowMany(i); + LOG(info) << "Bin " << i << "/" << size - 1 << " '" << labels[i] << "' = " << HowMany(i); } else { - LOG(INFO) << "Bin " << i << "/" << size - 1 << " = " << HowMany(i); + LOG(info) << "Bin " << i << "/" << size - 1 << " = " << HowMany(i); } } } @@ -183,22 +183,22 @@ uint32_t Counter::TotalAndReset() template int Counter::MakeHistogram(TH1* histogram) const { - LOG(DEBUG) << "Making Histogram " << histogram->GetName() << " to accomodate counter of size " << size; + LOG(debug) << "Making Histogram " << histogram->GetName() << " to accomodate counter of size " << size; TAxis* axis = histogram->GetXaxis(); if (static_cast(axis->GetNbins()) < size) { - LOG(FATAL) << "The histogram size (" << axis->GetNbins() << ") is not large enough to accomodate the counter size (" << size << ")"; + LOG(fatal) << "The histogram size (" << axis->GetNbins() << ") is not large enough to accomodate the counter size (" << size << ")"; return 1; } histogram->Reset(); #ifndef ENABLE_BIN_SHIFT - LOG(DEBUG) << "Asked to produce a histogram with size " << size << " out of the size " << size << " due to " << size - size << " empty labels"; + LOG(debug) << "Asked to produce a histogram with size " << size << " out of the size " << size << " due to " << size - size << " empty labels"; axis->Set(size, 0, size); for (unsigned int i = 0; i < size; i++) { if (!HasLabel(i)) { // If label at position i is empty continue; } - LOG(DEBUG) << "Setting bin " << i + 1 << "/" << size << " to contain counter for '" << labels[i] << "' (index " << i << "/" << size - 1 << ")"; + LOG(debug) << "Setting bin " << i + 1 << "/" << size << " to contain counter for '" << labels[i] << "' (index " << i << "/" << size - 1 << ")"; axis->SetBinLabel(i + 1, labels[i]); } #else @@ -206,16 +206,16 @@ int Counter::MakeHistogram(TH1* histogram) const if (labels != nullptr) { // Only if labels are defined for (unsigned int i = 0; i < size; i++) { if (!HasLabel(i)) { // If label at position i is empty or does not exist - LOG(DEBUG) << "Skipping label '" << labels[i] << "' at position " << i << "/" << size - 1; + LOG(debug) << "Skipping label '" << labels[i] << "' at position " << i << "/" << size - 1; histo_size--; } } } if (histo_size == 0) { - LOG(FATAL) << "Asked to produce a histogram with size " << histo_size << ", check counter bin labels"; + LOG(fatal) << "Asked to produce a histogram with size " << histo_size << ", check counter bin labels"; return 1; } else { - LOG(DEBUG) << "Asked to produce a histogram with size " << histo_size << " out of the size " << size << " due to " << size - histo_size << " empty labels"; + LOG(debug) << "Asked to produce a histogram with size " << histo_size << " out of the size " << size << " due to " << size - histo_size << " empty labels"; } axis->Set(histo_size, 0, histo_size); @@ -226,10 +226,10 @@ int Counter::MakeHistogram(TH1* histogram) const continue; } if (histo_size < binx) { - LOG(FATAL) << "Making bin outside of histogram limits!"; + LOG(fatal) << "Making bin outside of histogram limits!"; return 1; } - LOG(DEBUG) << "Setting bin " << binx << "/" << histo_size << " to contain counter for '" << labels[i] << "' (index " << i << "/" << size - 1 << ")"; + LOG(debug) << "Setting bin " << binx << "/" << histo_size << " to contain counter for '" << labels[i] << "' (index " << i << "/" << size - 1 << ")"; axis->SetBinLabel(binx++, labels[i]); } } @@ -258,16 +258,16 @@ int Counter::FillHistogram(TH1* histogram, const unsigned int& bin } }; - LOG(DEBUG) << "Filling Histogram " << histogram->GetName() << " with counter contents"; + LOG(debug) << "Filling Histogram " << histogram->GetName() << " with counter contents"; #ifndef ENABLE_BIN_SHIFT if (size != (histogram->GetNbinsX())) { - LOG(FATAL) << "Counter of size " << size << " does not fit in histogram " << histogram->GetName() << " with size " << histogram->GetNbinsX() - 1; + LOG(fatal) << "Counter of size " << size << " does not fit in histogram " << histogram->GetName() << " with size " << histogram->GetNbinsX() - 1; return 1; } for (unsigned int i = 0; i < size; i++) { - LOG(DEBUG) << "Filling bin " << i + 1 << " with counter at position " << i; + LOG(debug) << "Filling bin " << i + 1 << " with counter at position " << i; if (HasLabel(i) && strcmp(labels[i], histogram->GetXaxis()->GetBinLabel(i + 1)) != 0) { // If it has a label check its consistency! - LOG(FATAL) << "Bin " << i + 1 << " does not have the expected label '" << histogram->GetXaxis()->GetBinLabel(i + 1) << "' vs '" << labels[i] << "'"; + LOG(fatal) << "Bin " << i + 1 << " does not have the expected label '" << histogram->GetXaxis()->GetBinLabel(i + 1) << "' vs '" << labels[i] << "'"; return 1; } fillIt(i + 1, i); @@ -276,11 +276,11 @@ int Counter::FillHistogram(TH1* histogram, const unsigned int& bin const unsigned int nbinsx = histogram->GetNbinsX(); if constexpr (labels == nullptr) { // Fill without labels if (nbinsx < size) { - LOG(FATAL) << "Counter size " << size << " is too large to fit in histogram " << histogram->GetName() << " with size " << nbinsx; + LOG(fatal) << "Counter size " << size << " is too large to fit in histogram " << histogram->GetName() << " with size " << nbinsx; return 1; } for (unsigned int i = 0; i < size; i++) { - LOG(DEBUG) << "Filling bin " << i + 1 << " with position " << i << " with " << counter[i]; + LOG(debug) << "Filling bin " << i + 1 << " with position " << i << " with " << counter[i]; fillIt(i + 1, i); } } else { // Fill with labels @@ -288,29 +288,29 @@ int Counter::FillHistogram(TH1* histogram, const unsigned int& bin for (unsigned int i = 0; i < size; i++) { if (!HasLabel(i)) { // Labels are defined and label is empty if (counter[i] > 0) { - LOG(FATAL) << "Counter at position " << i << " was non empty (" << counter[i] << ") but was discarded because of empty labels"; + LOG(fatal) << "Counter at position " << i << " was non empty (" << counter[i] << ") but was discarded because of empty labels"; return 1; } continue; } - LOG(DEBUG) << "Filling bin " << binx << " with position " << i << " of label " << labels[i] << " with " << counter[i]; + LOG(debug) << "Filling bin " << binx << " with position " << i << " of label " << labels[i] << " with " << counter[i]; if (binx > nbinsx) { - LOG(FATAL) << "Filling histogram " << histogram->GetName() << " at position " << binx << " i.e. past its size (" << nbinsx << ")!"; + LOG(fatal) << "Filling histogram " << histogram->GetName() << " at position " << binx << " i.e. past its size (" << nbinsx << ")!"; return 1; } const char* bin_label = histogram->GetXaxis()->GetBinLabel(binx); if (!HasLabel(i) && counter[i] > 0) { - LOG(FATAL) << "Label at position " << i << " does not exist for axis label '" << bin_label << "' but counter is *non* empty!"; + LOG(fatal) << "Label at position " << i << " does not exist for axis label '" << bin_label << "' but counter is *non* empty!"; return 1; } else if (strcmp(labels[i], bin_label) != 0) { - LOG(FATAL) << "Bin " << binx << " does not have the expected label '" << bin_label << "' vs '" << labels[i] << "'"; + LOG(fatal) << "Bin " << binx << " does not have the expected label '" << bin_label << "' vs '" << labels[i] << "'"; return 1; } fillIt(binx, i); binx++; } if (binx != nbinsx + 1) { - LOG(FATAL) << "Did not fully fill histogram " << histogram->GetName() << ", filled " << binx << " out of " << nbinsx; + LOG(fatal) << "Did not fully fill histogram " << histogram->GetName() << ", filled " << binx << " out of " << nbinsx; return 1; } } @@ -330,16 +330,16 @@ int Counter::AddHistogram(TH1* histogram, const float& weight) con } }; - LOG(DEBUG) << "Filling Histogram " << histogram->GetName() << " with counter contents"; + LOG(debug) << "Filling Histogram " << histogram->GetName() << " with counter contents"; #ifndef ENABLE_BIN_SHIFT if (size != (histogram->GetNbinsX())) { - LOG(FATAL) << "Counter of size " << size << " does not fit in histogram " << histogram->GetName() << " with size " << histogram->GetNbinsX() - 1; + LOG(fatal) << "Counter of size " << size << " does not fit in histogram " << histogram->GetName() << " with size " << histogram->GetNbinsX() - 1; return 1; } for (unsigned int i = 0; i < size; i++) { - LOG(DEBUG) << "Filling bin " << i + 1 << " with counter at position " << i; + LOG(debug) << "Filling bin " << i + 1 << " with counter at position " << i; if (HasLabel(i) && strcmp(labels[i], histogram->GetXaxis()->GetBinLabel(i + 1)) != 0) { // If it has a label check its consistency! - LOG(FATAL) << "Bin " << i + 1 << " does not have the expected label '" << histogram->GetXaxis()->GetBinLabel(i + 1) << "' vs '" << labels[i] << "'"; + LOG(fatal) << "Bin " << i + 1 << " does not have the expected label '" << histogram->GetXaxis()->GetBinLabel(i + 1) << "' vs '" << labels[i] << "'"; return 1; } fillIt(i + 1, i); @@ -348,11 +348,11 @@ int Counter::AddHistogram(TH1* histogram, const float& weight) con const unsigned int nbinsx = histogram->GetNbinsX(); if constexpr (labels == nullptr) { // Fill without labels if (nbinsx < size) { - LOG(FATAL) << "Counter size " << size << " is too large to fit in histogram " << histogram->GetName() << " with size " << nbinsx; + LOG(fatal) << "Counter size " << size << " is too large to fit in histogram " << histogram->GetName() << " with size " << nbinsx; return 1; } for (unsigned int i = 0; i < size; i++) { - LOG(DEBUG) << "Filling bin " << i + 1 << " with position " << i << " with " << counter[i]; + LOG(debug) << "Filling bin " << i + 1 << " with position " << i << " with " << counter[i]; fillIt(i + 1, i); } } else { // Fill with labels @@ -360,29 +360,29 @@ int Counter::AddHistogram(TH1* histogram, const float& weight) con for (unsigned int i = 0; i < size; i++) { if (!HasLabel(i)) { // Labels are defined and label is empty if (counter[i] > 0) { - LOG(FATAL) << "Counter at position " << i << " was non empty (" << counter[i] << ") but was discarded because of empty labels"; + LOG(fatal) << "Counter at position " << i << " was non empty (" << counter[i] << ") but was discarded because of empty labels"; return 1; } continue; } - LOG(DEBUG) << "Filling bin " << binx << " with position " << i << " of label " << labels[i] << " with " << counter[i]; + LOG(debug) << "Filling bin " << binx << " with position " << i << " of label " << labels[i] << " with " << counter[i]; if (binx > nbinsx) { - LOG(FATAL) << "Filling histogram " << histogram->GetName() << " at position " << binx << " i.e. past its size (" << nbinsx << ")!"; + LOG(fatal) << "Filling histogram " << histogram->GetName() << " at position " << binx << " i.e. past its size (" << nbinsx << ")!"; return 1; } const char* bin_label = histogram->GetXaxis()->GetBinLabel(binx); if (!HasLabel(i) && counter[i] > 0) { - LOG(FATAL) << "Label at position " << i << " does not exist for axis label '" << bin_label << "' but counter is *non* empty!"; + LOG(fatal) << "Label at position " << i << " does not exist for axis label '" << bin_label << "' but counter is *non* empty!"; return 1; } else if (strcmp(labels[i], bin_label) != 0) { - LOG(FATAL) << "Bin " << binx << " does not have the expected label '" << bin_label << "' vs '" << labels[i] << "'"; + LOG(fatal) << "Bin " << binx << " does not have the expected label '" << bin_label << "' vs '" << labels[i] << "'"; return 1; } fillIt(binx, i); binx++; } if (binx != nbinsx + 1) { - LOG(FATAL) << "Did not fully fill histogram " << histogram->GetName() << ", filled " << binx << " out of " << nbinsx; + LOG(fatal) << "Did not fully fill histogram " << histogram->GetName() << ", filled " << binx << " out of " << nbinsx; return 1; } } diff --git a/Modules/TOF/src/TaskCosmics.cxx b/Modules/TOF/src/TaskCosmics.cxx index 84c9aa58ad..c395a536de 100644 --- a/Modules/TOF/src/TaskCosmics.cxx +++ b/Modules/TOF/src/TaskCosmics.cxx @@ -62,15 +62,15 @@ void TaskCosmics::initialize(o2::framework::InitContext& /*ctx*/) // Set task parameters from JSON if (auto param = mCustomParameters.find("SelDeltaTSignalRegion"); param != mCustomParameters.end()) { mSelDeltaTSignalRegion = atoi(param->second.c_str()); - LOG(INFO) << "Set SelDeltaTSignalRegion to " << mSelDeltaTSignalRegion << " ps"; + LOG(info) << "Set SelDeltaTSignalRegion to " << mSelDeltaTSignalRegion << " ps"; } if (auto param = mCustomParameters.find("SelDeltaTBackgroundRegion"); param != mCustomParameters.end()) { mSelDeltaTBackgroundRegion = atoi(param->second.c_str()); - LOG(INFO) << "Set SelDeltaTBackgroundRegion to " << mSelDeltaTBackgroundRegion << " ps"; + LOG(info) << "Set SelDeltaTBackgroundRegion to " << mSelDeltaTBackgroundRegion << " ps"; } if (auto param = mCustomParameters.find("SelMinLength"); param != mCustomParameters.end()) { mSelMinLength = atoi(param->second.c_str()); - LOG(INFO) << "Set SelMinLength to " << mSelMinLength << " cm"; + LOG(info) << "Set SelMinLength to " << mSelMinLength << " cm"; } mHistoCrate1.reset(new TH1F("Crate1", "Crate1;Crate of first hit;Counts", 72, 0, 72)); diff --git a/Modules/TOF/src/TaskRaw.cxx b/Modules/TOF/src/TaskRaw.cxx index f16146e947..1097ebc1ee 100644 --- a/Modules/TOF/src/TaskRaw.cxx +++ b/Modules/TOF/src/TaskRaw.cxx @@ -51,7 +51,7 @@ void RawDataDecoder::rdhHandler(const o2::header::RAWDataHeader* rdh) //Case for the RDH word "fatal" if ((rdh->detectorField & 0x00001000) != 0) { mCounterRDH[rdh->feeId & 0xFF].Count(1); - // LOG(WARNING) << "RDH flag \"fatal\" error occurred in crate " << static_cast(rdh->feeId & 0xFF); + // LOG(warn) << "RDH flag \"fatal\" error occurred in crate " << static_cast(rdh->feeId & 0xFF); } if (rdh->stop) { // if RDH close @@ -307,7 +307,7 @@ void TaskRaw::initialize(o2::framework::InitContext& /*ctx*/) // Set task parameters from JSON if (auto param = mCustomParameters.find("DecoderCONET"); param != mCustomParameters.end()) { if (param->second == "True") { - LOG(INFO) << "Rig for DecoderCONET"; + LOG(info) << "Rig for DecoderCONET"; mDecoderRaw.setDecoderCONET(kTRUE); } } @@ -478,7 +478,7 @@ void TaskRaw::endOfCycle() } } } else { - LOG(WARNING) << "Did not find diagnostic histogram for slot " << slot << " for reshuffling"; + LOG(warn) << "Did not find diagnostic histogram for slot " << slot << " for reshuffling"; } } for (unsigned int crate = 0; crate < RawDataDecoder::ncrates; crate++) { // Loop over crates for how many RDH read diff --git a/Modules/TOF/test/testTOF.cxx b/Modules/TOF/test/testTOF.cxx index 446688ef08..d677989747 100644 --- a/Modules/TOF/test/testTOF.cxx +++ b/Modules/TOF/test/testTOF.cxx @@ -61,7 +61,7 @@ BOOST_AUTO_TEST_CASE(check_tof_counter) } } - LOG(INFO) << "Printing counter of full labels"; + LOG(info) << "Printing counter of full labels"; counterFull.Print(); for (unsigned int j = 0; j < 32; j++) { unsigned int expected = 0; @@ -79,10 +79,10 @@ BOOST_AUTO_TEST_CASE(check_tof_counter) BOOST_CHECK_MESSAGE(hFull->GetBinContent(j + 1) == n, "Issue with the counts in bin " << j + 1 << " they must be " << n << " and instead are: " << hFull->GetBinContent(j + 1)); } - LOG(INFO) << "in: " << j + 1 << "/" << hFull->GetNbinsX() + 1 << " (bin '" << hFull->GetXaxis()->GetBinLabel(j + 1) << "') there are " << hFull->GetBinContent(j + 1) << " counts"; + LOG(info) << "in: " << j + 1 << "/" << hFull->GetNbinsX() + 1 << " (bin '" << hFull->GetXaxis()->GetBinLabel(j + 1) << "') there are " << hFull->GetBinContent(j + 1) << " counts"; } - LOG(INFO) << "Printing counter of empty labels"; + LOG(info) << "Printing counter of empty labels"; counterEmpty.Print(); for (unsigned int j = 0; j < 32; j++) { unsigned int expected = n; diff --git a/Modules/TPC/run/runTPCQCTrackReader.cxx b/Modules/TPC/run/runTPCQCTrackReader.cxx index 2867bbfec0..72fb071c6f 100644 --- a/Modules/TPC/run/runTPCQCTrackReader.cxx +++ b/Modules/TPC/run/runTPCQCTrackReader.cxx @@ -98,9 +98,9 @@ WorkflowSpec defineDataProcessing(const ConfigContext& config) //(++(*reader))(processingContext); if (reader->next()) { (*reader)(processingContext); - //LOG(INFO) << "Call producer AlgorithmSpec::ProcessCallback: has data " << reader->getCount(); + //LOG(info) << "Call producer AlgorithmSpec::ProcessCallback: has data " << reader->getCount(); } else { - //LOG(INFO) << "Call producer AlgorithmSpec::ProcessCallback: no next data" << reader->getCount(); + //LOG(info) << "Call producer AlgorithmSpec::ProcessCallback: no next data" << reader->getCount(); } }; } diff --git a/Modules/TPC/src/PIDClusterCheck.cxx b/Modules/TPC/src/PIDClusterCheck.cxx index e7878612cd..dbea3e44c9 100644 --- a/Modules/TPC/src/PIDClusterCheck.cxx +++ b/Modules/TPC/src/PIDClusterCheck.cxx @@ -69,7 +69,7 @@ void PIDClusterCheck::beautify(std::shared_ptr mo, Quality checkR msg->AddText("PLEASE IGNORE."); msg->SetFillColor(kGreen); } else if (checkResult == Quality::Bad) { - LOG(INFO) << "Quality::Bad, setting to red"; + LOG(info) << "Quality::Bad, setting to red"; h->SetFillColor(kRed); msg->Clear(); msg->AddText("Quality::Bad"); @@ -77,7 +77,7 @@ void PIDClusterCheck::beautify(std::shared_ptr mo, Quality checkR msg->AddText("PLEASE IGNORE."); msg->SetFillColor(kRed); } else if (checkResult == Quality::Medium) { - LOG(INFO) << "Quality::medium, setting to orange"; + LOG(info) << "Quality::medium, setting to orange"; h->SetFillColor(kOrange); msg->Clear(); msg->AddText("Quality::Medium"); diff --git a/Modules/TPC/src/TrackClusterCheck.cxx b/Modules/TPC/src/TrackClusterCheck.cxx index 9ea5b0307a..8ec91fca22 100644 --- a/Modules/TPC/src/TrackClusterCheck.cxx +++ b/Modules/TPC/src/TrackClusterCheck.cxx @@ -71,7 +71,7 @@ void TrackClusterCheck::beautify(std::shared_ptr mo, Quality chec msg->AddText("PLEASE IGNORE."); msg->SetFillColor(kGreen); } else if (checkResult == Quality::Bad) { - LOG(INFO) << "Quality::Bad, setting to red"; + LOG(info) << "Quality::Bad, setting to red"; h->SetFillColor(kRed); msg->Clear(); msg->AddText("Quality::Bad"); @@ -79,7 +79,7 @@ void TrackClusterCheck::beautify(std::shared_ptr mo, Quality chec msg->AddText("PLEASE IGNORE."); msg->SetFillColor(kRed); } else if (checkResult == Quality::Medium) { - LOG(INFO) << "Quality::medium, setting to orange"; + LOG(info) << "Quality::medium, setting to orange"; h->SetFillColor(kOrange); msg->Clear(); msg->AddText("Quality::Medium"); diff --git a/Modules/TPC/src/Tracking.cxx b/Modules/TPC/src/Tracking.cxx index 48f45f66ac..5bac1f8e86 100644 --- a/Modules/TPC/src/Tracking.cxx +++ b/Modules/TPC/src/Tracking.cxx @@ -93,7 +93,7 @@ void Tracking::monitorData(o2::framework::ProcessingContext& ctx) auto clusRefs = ctx.inputs().get>("inputClusRefs"); const auto& inputsTPCclusters = o2::tpc::getWorkflowTPCInput(ctx, 0, true); - LOG(INFO) << "RECEIVED tracks " << tracks.size() << " (MC " << trackLabels.size() << ", ClusRefs " << clusRefs.size() << ") clusters " << inputsTPCclusters->clusterIndex.nClustersTotal << " (MC " << inputsTPCclusters->clusterIndex.clustersMCTruth->getNElements() << ")"; + LOG(info) << "RECEIVED tracks " << tracks.size() << " (MC " << trackLabels.size() << ", ClusRefs " << clusRefs.size() << ") clusters " << inputsTPCclusters->clusterIndex.nClustersTotal << " (MC " << inputsTPCclusters->clusterIndex.clustersMCTruth->getNElements() << ")"; mQCTracking.processTracks(&tracks, &trackLabels, &inputsTPCclusters->clusterIndex); } diff --git a/Modules/TPC/src/Utility.cxx b/Modules/TPC/src/Utility.cxx index 0e1fd4c4b3..833d2df4c2 100644 --- a/Modules/TPC/src/Utility.cxx +++ b/Modules/TPC/src/Utility.cxx @@ -119,23 +119,23 @@ o2::tpc::ClusterNativeAccess clusterHandler(o2::framework::InputRecord& input) filter = { { "sampled-data", ConcreteDataTypeMatcher{ "DS", "CLUSTERNATIVE" }, Lifetime::Timeframe }, }; - LOG(INFO) << "Using sampled data."; + LOG(info) << "Using sampled data."; } for (auto const& ref : InputRecordWalker(input, filter)) { auto const* sectorHeader = DataRefUtils::getHeader(ref); if (sectorHeader == nullptr) { // FIXME: think about error policy - LOG(ERROR) << "sector header missing on header stack"; + LOG(error) << "sector header missing on header stack"; return clusterIndex; } const int sector = sectorHeader->sector(); std::bitset sectorMask(sectorHeader->sectorBits); - LOG(INFO) << "Reading TPC cluster data, sector mask is " << sectorMask; + LOG(info) << "Reading TPC cluster data, sector mask is " << sectorMask; if (sector < 0) { if (operation < 0 && operation != sector) { // we expect the same operation on all inputs - LOG(ERROR) << "inconsistent lane operation, got " << sector << ", expecting " << operation; + LOG(error) << "inconsistent lane operation, got " << sector << ", expecting " << operation; } else if (operation == 0) { // store the operation operation = sector; diff --git a/doc/Advanced.md b/doc/Advanced.md index ba2dd2093a..586c1d2a9f 100644 --- a/doc/Advanced.md +++ b/doc/Advanced.md @@ -476,7 +476,7 @@ Task by a dedicated method of the TaskInterface, as below: ``` TObject* condition = TaskInterface::retrieveCondition("Path/to/condition"); if (condition) { - LOG(INFO) << "Retrieved " << condition->ClassName(); + LOG(info) << "Retrieved " << condition->ClassName(); delete condition; } ```