From c73ef38b31cfed993d9e87367777d3b065164f69 Mon Sep 17 00:00:00 2001 From: David Rohr Date: Thu, 25 Nov 2021 14:00:47 +0100 Subject: [PATCH] Switch to lowercase log levels for new FairLogger (TRD) --- DataFormats/Detectors/TRD/src/RawData.cxx | 2 +- Detectors/TRD/base/src/CommonParam.cxx | 2 +- .../base/src/DiffAndTimeStructEstimator.cxx | 6 ++--- Detectors/TRD/base/src/Geometry.cxx | 10 ++++----- Detectors/TRD/base/src/PadPlane.cxx | 4 ++-- Detectors/TRD/base/src/RecoParam.cxx | 2 +- Detectors/TRD/base/src/SimParam.cxx | 2 +- Detectors/TRD/macros/CheckDigits.C | 4 ++-- Detectors/TRD/macros/CheckHits.C | 6 ++--- .../reconstruction/src/CruCompressorTask.cxx | 2 +- .../TRD/reconstruction/src/DataReaderTask.cxx | 2 +- Detectors/TRD/simulation/src/Detector.cxx | 22 +++++++++---------- Detectors/TRD/simulation/src/Digitizer.cxx | 12 +++++----- Detectors/TRD/simulation/src/TRsim.cxx | 2 +- .../include/TRDWorkflow/VdAndExBCalibSpec.h | 4 ++-- .../workflow/io/src/TRDCalibReaderSpec.cxx | 8 +++---- .../workflow/io/src/TRDDigitWriterSpec.cxx | 2 +- .../workflow/io/src/TRDTrackReaderSpec.cxx | 8 +++---- .../io/src/trd-track-reader-workflow.cxx | 2 +- .../TRD/workflow/src/EntropyDecoderSpec.cxx | 2 +- .../TRD/workflow/src/EntropyEncoderSpec.cxx | 2 +- .../TRD/workflow/src/TRDDigitizerSpec.cxx | 14 ++++++------ .../src/TRDTrackletTransformerSpec.cxx | 4 ++-- 23 files changed, 62 insertions(+), 62 deletions(-) diff --git a/DataFormats/Detectors/TRD/src/RawData.cxx b/DataFormats/Detectors/TRD/src/RawData.cxx index 1aaa00a343b43..9a6e04d53549a 100644 --- a/DataFormats/Detectors/TRD/src/RawData.cxx +++ b/DataFormats/Detectors/TRD/src/RawData.cxx @@ -253,7 +253,7 @@ void printHalfCRUHeader(o2::trd::HalfCRUHeader& halfcru) for (int i = 0; i < 15; i++) { LOGF(INFO, "Link %d size: %ul eflag: 0x%02x", i, sizes[i], errorflags[i]); } - LOG(INFO) << "Raw: " << std::hex << halfcru.word0 << " " << halfcru.word12[0] << " " << halfcru.word12[1] << " " << halfcru.word3 << " " << halfcru.word47[0] << " " << halfcru.word47[1] << " " << halfcru.word47[2] << " " << halfcru.word47[3]; + LOG(info) << "Raw: " << std::hex << halfcru.word0 << " " << halfcru.word12[0] << " " << halfcru.word12[1] << " " << halfcru.word3 << " " << halfcru.word47[0] << " " << halfcru.word47[1] << " " << halfcru.word47[2] << " " << halfcru.word47[3]; for (int i = 0; i < 15; i++) { LOGF(INFO, "Raw: %d word: %ul x", i, sizes[i], errorflags[i]); } diff --git a/Detectors/TRD/base/src/CommonParam.cxx b/Detectors/TRD/base/src/CommonParam.cxx index 5070b3e0ed816..27e30ad476cab 100644 --- a/Detectors/TRD/base/src/CommonParam.cxx +++ b/Detectors/TRD/base/src/CommonParam.cxx @@ -58,7 +58,7 @@ void CommonParam::cacheMagField() // The magnetic field strength const o2::field::MagneticField* fld = static_cast(TGeoGlobalMagField::Instance()->GetField()); if (!fld) { - LOG(FATAL) << "Magnetic field is not initialized!"; + LOG(fatal) << "Magnetic field is not initialized!"; return; } mField = 0.1 * fld->solenoidField(); // kGauss -> Tesla diff --git a/Detectors/TRD/base/src/DiffAndTimeStructEstimator.cxx b/Detectors/TRD/base/src/DiffAndTimeStructEstimator.cxx index df908467910ba..4449f0b747868 100644 --- a/Detectors/TRD/base/src/DiffAndTimeStructEstimator.cxx +++ b/Detectors/TRD/base/src/DiffAndTimeStructEstimator.cxx @@ -40,11 +40,11 @@ bool DiffusionAndTimeStructEstimator::sampleTimeStruct(float vdrift) constexpr float fVDsmp[8] = {1.032, 1.158, 1.299, 1.450, 1.610, 1.783, 1.959, 2.134}; if (vdrift < fVDsmp[0]) { - LOG(DEBUG) << "TRD: Drift Velocity too small " << vdrift << " < " << fVDsmp[0]; + LOG(debug) << "TRD: Drift Velocity too small " << vdrift << " < " << fVDsmp[0]; vdrift = fVDsmp[0]; retVal = false; } else if (vdrift > fVDsmp[7]) { - LOG(DEBUG) << "TRD: Drift Velocity too large " << vdrift << " > " << fVDsmp[7]; + LOG(debug) << "TRD: Drift Velocity too large " << vdrift << " > " << fVDsmp[7]; vdrift = fVDsmp[7]; retVal = false; } @@ -157,7 +157,7 @@ float DiffusionAndTimeStructEstimator::timeStruct(float vdrift, float dist, floa const int kz2 = kz1 + 1; if ((r1 < 0) || (r1 > 37) || (kz1 < 0) || (kz1 > 10)) { - LOG(WARN) << Form("TRD: Time struct indices out of range: dist=%.2f, z=%.2f, r1=%d, kz1=%d", dist, z, r1, kz1); + LOG(warn) << Form("TRD: Time struct indices out of range: dist=%.2f, z=%.2f, r1=%d, kz1=%d", dist, z, r1, kz1); } const float ky111 = mTimeStruct1[r1 + 38 * kz1]; diff --git a/Detectors/TRD/base/src/Geometry.cxx b/Detectors/TRD/base/src/Geometry.cxx index c9f72d203cef7..6e8c26d2b8802 100644 --- a/Detectors/TRD/base/src/Geometry.cxx +++ b/Detectors/TRD/base/src/Geometry.cxx @@ -262,7 +262,7 @@ void Geometry::createGeometry(std::vector const& idtmed) if (!gGeoManager) { // RSTODO: in future there will be a method to load matrices from the CDB - LOG(FATAL) << "Geometry is not loaded"; + LOG(fatal) << "Geometry is not loaded"; } createVolumes(idtmed); @@ -2645,7 +2645,7 @@ void Geometry::addAlignableVolumes() const // define alignable volumes of the TRD // if (!gGeoManager) { - LOG(FATAL) << "Geometry is not loaded"; + LOG(fatal) << "Geometry is not loaded"; } std::string volPath; @@ -2731,7 +2731,7 @@ void Geometry::addAlignableVolumes() const t2lMatrix->MultiplyLeft(&globmatrixi); alignableEntry->SetMatrix(t2lMatrix); } else { - LOG(ERROR) << "Alignable entry is not valid: ModID:" << modID << " Sector:" << isector << " Lr:" << ilayer + LOG(error) << "Alignable entry is not valid: ModID:" << modID << " Sector:" << isector << " Lr:" << ilayer << " Stack: " << istack << " name: " << symName.c_str() << " vol: " << volPath.c_str(); } } @@ -2744,12 +2744,12 @@ bool Geometry::createClusterMatrixArray() { if (!gGeoManager) { - LOG(ERROR) << "Geometry is not loaded yet"; + LOG(error) << "Geometry is not loaded yet"; return false; } if (isBuilt()) { - LOG(WARNING) << "Already built"; + LOG(warning) << "Already built"; return true; // already initialized } diff --git a/Detectors/TRD/base/src/PadPlane.cxx b/Detectors/TRD/base/src/PadPlane.cxx index 3f63562a64e3d..95c855901e1e9 100644 --- a/Detectors/TRD/base/src/PadPlane.cxx +++ b/Detectors/TRD/base/src/PadPlane.cxx @@ -149,7 +149,7 @@ int PadPlane::getPadColNumber(double rphi) const void PadPlane::setNcols(int n) { if (n > MAXCOLS) { - LOG(FATAL) << "MAXCOLS exceeded " << n << " > " << MAXCOLS; + LOG(fatal) << "MAXCOLS exceeded " << n << " > " << MAXCOLS; } mNcols = n; }; @@ -157,7 +157,7 @@ void PadPlane::setNcols(int n) void PadPlane::setNrows(int n) { if (n > MAXROWS) { - LOG(FATAL) << "MAXROWS exceeded " << n << " > " << MAXROWS; + LOG(fatal) << "MAXROWS exceeded " << n << " > " << MAXROWS; } mNrows = n; }; diff --git a/Detectors/TRD/base/src/RecoParam.cxx b/Detectors/TRD/base/src/RecoParam.cxx index 2bca5d0327f5f..908a8ce410a48 100644 --- a/Detectors/TRD/base/src/RecoParam.cxx +++ b/Detectors/TRD/base/src/RecoParam.cxx @@ -47,7 +47,7 @@ void RecoParam::setBfield(float bz) mC2 = 0.1156f; } } else { - LOG(WARNING) << "No error parameterization available for Bz= " << bz << ". Keeping default value (sigma_y = const. = 1cm)"; + LOG(warning) << "No error parameterization available for Bz= " << bz << ". Keeping default value (sigma_y = const. = 1cm)"; } } diff --git a/Detectors/TRD/base/src/SimParam.cxx b/Detectors/TRD/base/src/SimParam.cxx index 97fb36ed3365c..2b8db2a0a7b83 100644 --- a/Detectors/TRD/base/src/SimParam.cxx +++ b/Detectors/TRD/base/src/SimParam.cxx @@ -79,7 +79,7 @@ void SimParam::reInit() // Higher gas gain mGasGain = 8000.0; } else { - LOG(FATAL) << "Not a valid gas mixture!\n"; + LOG(fatal) << "Not a valid gas mixture!\n"; } mInvTRFwid = ((float)mTRFbin) / (mTRFhi - mTRFlo); // Inverse of the bin width of the integrated TRF diff --git a/Detectors/TRD/macros/CheckDigits.C b/Detectors/TRD/macros/CheckDigits.C index 7b6899e8bf79a..8ed77c2b33eb5 100644 --- a/Detectors/TRD/macros/CheckDigits.C +++ b/Detectors/TRD/macros/CheckDigits.C @@ -63,7 +63,7 @@ void CheckDigits(std::string digifile = "trddigits.root", 31, -0.5, 30.5); } - LOG(INFO) << nev << " entries found"; + LOG(info) << nev << " entries found"; for (int iev = 0; iev < nev; ++iev) { digitTree->GetEvent(iev); for (const auto& digit : *digitCont) { @@ -77,7 +77,7 @@ void CheckDigits(std::string digifile = "trddigits.root", for (int tb = 0; tb < o2::trd::constants::TIMEBINS; ++tb) { ADC_t adc = adcs[tb]; if (adc == (ADC_t)SimParam::instance()->getADCoutRange()) { - // LOG(INFO) << "Out of range ADC " << adc; + // LOG(info) << "Out of range ADC " << adc; continue; } hADC[det]->Fill(adc); diff --git a/Detectors/TRD/macros/CheckHits.C b/Detectors/TRD/macros/CheckHits.C index ff0de30b77b16..5f3cf71b5f577 100644 --- a/Detectors/TRD/macros/CheckHits.C +++ b/Detectors/TRD/macros/CheckHits.C @@ -54,7 +54,7 @@ void CheckHits(const int detector = 50, // 354, 14, 242, 50 TH2F* h2locClocT = new TH2F("h2locClocT", ";locC (cm);locT(cm)", 100, -60, 60, 100, -3.5, 0.5); TH2F* h2locClocTnEl = new TH2F("h2locClocTnEl", "nEl;locC (cm);locT(cm)", 100, -60, 60, 100, -3.5, 0.5); - LOG(INFO) << nev << " entries found"; + LOG(info) << nev << " entries found"; for (int iev = 0; iev < nev; ++iev) { hitTree->GetEvent(iev); for (const auto& hit : *hits) { @@ -64,10 +64,10 @@ void CheckHits(const int detector = 50, // 354, 14, 242, 50 // continue; // } if (det != detector) { - // LOG(INFO) << "REJECTED Detector = " << det <<"\t Stack = " << o2::trd::Geometry::getStack(det) << "\t Sector = " << o2::trd::Geometry::getSector(det); + // LOG(info) << "REJECTED Detector = " << det <<"\t Stack = " << o2::trd::Geometry::getStack(det) << "\t Sector = " << o2::trd::Geometry::getSector(det); continue; } - LOG(INFO) << "ACCEPTED Detector = " << det << "\t Stack = " << o2::trd::Geometry::getStack(det) << "\t Sector = " << o2::trd::Geometry::getSector(det); + LOG(info) << "ACCEPTED Detector = " << det << "\t Stack = " << o2::trd::Geometry::getStack(det) << "\t Sector = " << o2::trd::Geometry::getSector(det); // loop over det, pad, row? double locC = hit.getLocalC(); // col direction in amplification or drift volume double locR = hit.getLocalR(); // row direction in amplification or drift volume diff --git a/Detectors/TRD/reconstruction/src/CruCompressorTask.cxx b/Detectors/TRD/reconstruction/src/CruCompressorTask.cxx index 76467cb076df8..0c430638d0167 100644 --- a/Detectors/TRD/reconstruction/src/CruCompressorTask.cxx +++ b/Detectors/TRD/reconstruction/src/CruCompressorTask.cxx @@ -38,7 +38,7 @@ namespace trd void CruCompressorTask::init(InitContext& ic) { - LOG(INFO) << "FLP Compressore Task init"; + LOG(info) << "FLP Compressore Task init"; auto finishFunction = [this]() { mReader.checkSummary(); diff --git a/Detectors/TRD/reconstruction/src/DataReaderTask.cxx b/Detectors/TRD/reconstruction/src/DataReaderTask.cxx index e154ef44afa3d..c0848ad98e8e3 100644 --- a/Detectors/TRD/reconstruction/src/DataReaderTask.cxx +++ b/Detectors/TRD/reconstruction/src/DataReaderTask.cxx @@ -155,7 +155,7 @@ void DataReaderTask::buildHistograms() } void DataReaderTask::init(InitContext& ic) { - LOG(INFO) << "o2::trd::DataReadTask init"; + LOG(info) << "o2::trd::DataReadTask init"; auto finishFunction = [this]() { mReader.checkSummary(); diff --git a/Detectors/TRD/simulation/src/Detector.cxx b/Detectors/TRD/simulation/src/Detector.cxx index 1b7b9df816497..75a71144bf66c 100644 --- a/Detectors/TRD/simulation/src/Detector.cxx +++ b/Detectors/TRD/simulation/src/Detector.cxx @@ -69,13 +69,13 @@ void Detector::InitializeParams() } else if (CommonParam::instance()->isArgon()) { mWion = 27.21; // Ionization energy ArCO2 (82/18) } else { - LOG(FATAL) << "Wrong gas mixture"; + LOG(fatal) << "Wrong gas mixture"; // add hard exit here! } // Switch on TR simulation as default mTRon = TRDSimParams::Instance().doTR; if (!mTRon) { - LOG(INFO) << "TR simulation off"; + LOG(info) << "TR simulation off"; } mTR = new TRsim(); mMaxMCStepDef = TRDSimParams::Instance().maxMCStepSize; @@ -96,7 +96,7 @@ bool Detector::ProcessHits(FairVolume* v) int cIdChamber; int r1 = std::sscanf(fMC->CurrentVolName(), "U%c%d", &idRegion, &cIdChamber); if (r1 != 2) { - LOG(FATAL) << "Something went wrong with the geometry volume name " << fMC->CurrentVolName(); + LOG(fatal) << "Something went wrong with the geometry volume name " << fMC->CurrentVolName(); } if (idRegion == 'J') { drRegion = true; @@ -108,21 +108,21 @@ bool Detector::ProcessHits(FairVolume* v) const int idChamber = mGeom->getDetectorSec(cIdChamber); if (idChamber < 0 || idChamber > 29) { - LOG(FATAL) << "Chamber ID out of bounds"; + LOG(fatal) << "Chamber ID out of bounds"; } int sector; int r2 = std::sscanf(fMC->CurrentVolOffName(7), "BTRD%d", §or); if (r2 != 1) { - LOG(FATAL) << "Something went wrong with the geometry volume name " << fMC->CurrentVolOffName(7); + LOG(fatal) << "Something went wrong with the geometry volume name " << fMC->CurrentVolOffName(7); } if (sector < 0 || sector >= NSECTOR) { - LOG(FATAL) << "Sector out of bounds"; + LOG(fatal) << "Sector out of bounds"; } // The detector number (0 - 539) int det = mGeom->getDetector(mGeom->getLayer(idChamber), mGeom->getStack(idChamber), sector); if (det < 0 || det >= MAXCHAMBER) { - LOG(FATAL) << "Detector number out of bounds"; + LOG(fatal) << "Detector number out of bounds"; } // 0: InFlight 1: Entering 2: Exiting @@ -210,7 +210,7 @@ void Detector::createTRhit(int det) std::vector photonEnergyContainer; // energy in keV mTR->createPhotons(11, pTot, photonEnergyContainer); // Create TR photons if (photonEnergyContainer.size() > mMaxNumberOfTRPhotons) { - LOG(ERROR) << "Boundary error: nTR = " << photonEnergyContainer.size() << ", mMaxNumberOfTRPhotons = " << mMaxNumberOfTRPhotons; + LOG(error) << "Boundary error: nTR = " << photonEnergyContainer.size() << ", mMaxNumberOfTRPhotons = " << mMaxNumberOfTRPhotons; } // Loop through the TR photons @@ -363,10 +363,10 @@ void Detector::createMaterials() if (CommonParam::instance()->isXenon()) { Mixture(53, "XeCO2", aXeCO2, zXeCO2, dgmXe, -3, wXeCO2); } else if (CommonParam::instance()->isArgon()) { - LOG(INFO) << "Gas mixture: Ar C02 (80/20)"; + LOG(info) << "Gas mixture: Ar C02 (80/20)"; Mixture(53, "ArCO2", aArCO2, zArCO2, dgmAr, -3, wArCO2); } else { - LOG(FATAL) << "Wrong gas mixture"; + LOG(fatal) << "Wrong gas mixture"; exit(1); } // G10 @@ -524,7 +524,7 @@ void Detector::defineSensitiveVolumes() if (tgeovol != nullptr) { AddSensitiveVolume(tgeovol); } else { - LOG(ERROR) << "No TGeo volume for TRD vol name " << name << " found\n"; + LOG(error) << "No TGeo volume for TRD vol name " << name << " found\n"; } } } diff --git a/Detectors/TRD/simulation/src/Digitizer.cxx b/Detectors/TRD/simulation/src/Digitizer.cxx index 2613d228e0c3a..c22a0810db5d8 100644 --- a/Detectors/TRD/simulation/src/Digitizer.cxx +++ b/Detectors/TRD/simulation/src/Digitizer.cxx @@ -53,7 +53,7 @@ void Digitizer::init() } else { mNumThreads = std::min(maxthreads, askedthreads); } - LOG(INFO) << "TRD: Digitizing with " << mNumThreads << " threads "; + LOG(info) << "TRD: Digitizing with " << mNumThreads << " threads "; #endif // initialize structures that we need per thread @@ -91,7 +91,7 @@ void Digitizer::flush(DigitContainer& digits, o2::dataformats::MCTruthContainer< if (smc.size() > 0) { bool status = convertSignalsToADC(smc, digits); if (!status) { - LOG(WARN) << "TRD conversion of signals to digits failed"; + LOG(warn) << "TRD conversion of signals to digits failed"; } dumpLabels(smc, labels); } @@ -101,7 +101,7 @@ void Digitizer::flush(DigitContainer& digits, o2::dataformats::MCTruthContainer< for (auto& smc : mSignalsMapCollection) { bool status = convertSignalsToADC(smc, digits); if (!status) { - LOG(WARN) << "TRD conversion of signals to digits failed"; + LOG(warn) << "TRD conversion of signals to digits failed"; } dumpLabels(smc, labels); } @@ -142,7 +142,7 @@ void Digitizer::clearContainers() void Digitizer::process(std::vector const& hits) { if (!mCalib) { - LOG(FATAL) << "TRD Calibration database not available"; + LOG(fatal) << "TRD Calibration database not available"; } // Get the a hit container for all the hits in a given detector then call convertHits for a given detector (0 - 539) @@ -175,7 +175,7 @@ void Digitizer::process(std::vector const& hits) } if (!convertHits(det, hitsPerDetector[det], signalsMap, threadid)) { - LOG(WARN) << "TRD conversion of hits failed for detector " << det; + LOG(warn) << "TRD conversion of hits failed for detector " << det; continue; // go to the next chamber } } @@ -441,7 +441,7 @@ bool Digitizer::convertSignalsToADC(SignalContainer& signalMapCont, DigitContain float padgain = mCalib->getPadGainFactor(det, row, col); // The gain factor if (padgain <= 0) { - LOG(FATAL) << "Not a valid gain " << padgain << ", " << det << ", " << col << ", " << row; + LOG(fatal) << "Not a valid gain " << padgain << ", " << det << ", " << col << ", " << row; } signalMapIter.second.isDigit = true; // flag the signal as digit diff --git a/Detectors/TRD/simulation/src/TRsim.cxx b/Detectors/TRD/simulation/src/TRsim.cxx index 717078426935b..a7d4ac290e74a 100644 --- a/Detectors/TRD/simulation/src/TRsim.cxx +++ b/Detectors/TRD/simulation/src/TRsim.cxx @@ -673,7 +673,7 @@ int TRsim::locate(double* xv, int n, double xval, int& kl, double& dx) if ((xval < xv[kl]) || (xval > xv[kl + 1]) || (kl >= n - 1)) { - LOG(FATAL) << Form("locate failed xv[%d] %f xval %f xv[%d] %f!!!\n", kl, xv[kl], xval, kl + 1, xv[kl + 1]); + LOG(fatal) << Form("locate failed xv[%d] %f xval %f xv[%d] %f!!!\n", kl, xv[kl], xval, kl + 1, xv[kl + 1]); exit(1); } dx = xval - xv[kl]; diff --git a/Detectors/TRD/workflow/include/TRDWorkflow/VdAndExBCalibSpec.h b/Detectors/TRD/workflow/include/TRDWorkflow/VdAndExBCalibSpec.h index f55ef5eac79d2..8d7a69b914d81 100644 --- a/Detectors/TRD/workflow/include/TRDWorkflow/VdAndExBCalibSpec.h +++ b/Detectors/TRD/workflow/include/TRDWorkflow/VdAndExBCalibSpec.h @@ -51,14 +51,14 @@ class VdAndExBCalibDevice : public o2::framework::Task { auto tfcounter = o2::header::get(pc.inputs().get("input").header)->startTime; auto data = pc.inputs().get>("input"); - LOG(INFO) << "Processing TF " << tfcounter << " with " << data.size() << " AngularResidHistos objects"; + LOG(info) << "Processing TF " << tfcounter << " with " << data.size() << " AngularResidHistos objects"; mCalibrator->process(tfcounter, data); sendOutput(pc.outputs()); } void endOfStream(o2::framework::EndOfStreamContext& ec) final { - LOG(INFO) << "Finalizing calibration"; + LOG(info) << "Finalizing calibration"; constexpr uint64_t INFINITE_TF = 0xffffffffffffffff; mCalibrator->checkSlotsToFinalize(INFINITE_TF); sendOutput(ec.outputs()); diff --git a/Detectors/TRD/workflow/io/src/TRDCalibReaderSpec.cxx b/Detectors/TRD/workflow/io/src/TRDCalibReaderSpec.cxx index 450f8b40c6df5..7b05d9a9e47e8 100644 --- a/Detectors/TRD/workflow/io/src/TRDCalibReaderSpec.cxx +++ b/Detectors/TRD/workflow/io/src/TRDCalibReaderSpec.cxx @@ -28,7 +28,7 @@ namespace trd void TRDCalibReader::init(InitContext& ic) { // get the option from the init context - LOG(INFO) << "Init TRD tracklet reader!"; + LOG(info) << "Init TRD tracklet reader!"; mInFileName = o2::utils::Str::concat_string(o2::utils::Str::rectifyDirectory(ic.options().get("input-dir")), ic.options().get("trd-calib-infile")); mInTreeName = o2::utils::Str::concat_string(o2::utils::Str::rectifyDirectory(ic.options().get("input-dir")), @@ -44,7 +44,7 @@ void TRDCalibReader::connectTree() mTree.reset((TTree*)mFile->Get(mInTreeName.c_str())); assert(mTree); mTree->SetBranchAddress("AngularResids", &mAngResidPtr); - LOG(INFO) << "Loaded tree from " << mInFileName << " with " << mTree->GetEntries() << " entries"; + LOG(info) << "Loaded tree from " << mInFileName << " with " << mTree->GetEntries() << " entries"; } void TRDCalibReader::run(ProcessingContext& pc) @@ -53,9 +53,9 @@ void TRDCalibReader::run(ProcessingContext& pc) assert(currEntry < mTree->GetEntries()); // this should not happen mTree->GetEntry(currEntry); if (mAngResids.size() > 0) { - LOG(INFO) << "Pushing angular residual histograms filled with " << mAngResids.at(0).getNEntries() << " entries at tree entry " << currEntry; + LOG(info) << "Pushing angular residual histograms filled with " << mAngResids.at(0).getNEntries() << " entries at tree entry " << currEntry; } else { - LOG(WARNING) << "No TRD calibration data available in the tree"; + LOG(warning) << "No TRD calibration data available in the tree"; } pc.outputs().snapshot(Output{o2::header::gDataOriginTRD, "ANGRESHISTS", 0, Lifetime::Timeframe}, mAngResids); diff --git a/Detectors/TRD/workflow/io/src/TRDDigitWriterSpec.cxx b/Detectors/TRD/workflow/io/src/TRDDigitWriterSpec.cxx index 62b71333585bf..b1fdb46020ec4 100644 --- a/Detectors/TRD/workflow/io/src/TRDDigitWriterSpec.cxx +++ b/Detectors/TRD/workflow/io/src/TRDDigitWriterSpec.cxx @@ -42,7 +42,7 @@ o2::framework::DataProcessorSpec getTRDDigitWriterSpec(bool mctruth, bool writeT for (const auto* brc : *brArr) { int64_t n = ((const TBranch*)brc)->GetEntries(); if (nent && (nent != n)) { - LOG(ERROR) << "Branches have different number of entries"; + LOG(error) << "Branches have different number of entries"; } nent = n; } diff --git a/Detectors/TRD/workflow/io/src/TRDTrackReaderSpec.cxx b/Detectors/TRD/workflow/io/src/TRDTrackReaderSpec.cxx index 2e7ceee71bad3..96646c0c38e44 100644 --- a/Detectors/TRD/workflow/io/src/TRDTrackReaderSpec.cxx +++ b/Detectors/TRD/workflow/io/src/TRDTrackReaderSpec.cxx @@ -40,12 +40,12 @@ void TRDTrackReader::run(ProcessingContext& pc) auto ent = mTree->GetReadEntry() + 1; assert(ent < mTree->GetEntries()); // this should not happen mTree->GetEntry(ent); - LOG(INFO) << "Pushing " << mTracks.size() << " tracks and " << mTrigRec.size() << " trigger records at entry " << ent; + LOG(info) << "Pushing " << mTracks.size() << " tracks and " << mTrigRec.size() << " trigger records at entry " << ent; if (mUseMC) { if (mLabelsTrd.size() != mLabelsMatch.size()) { - LOG(ERROR) << "The number of labels for matches and for TRD tracks is different. " << mLabelsTrd.size() << " TRD labels vs. " << mLabelsMatch.size() << " match labels"; + LOG(error) << "The number of labels for matches and for TRD tracks is different. " << mLabelsTrd.size() << " TRD labels vs. " << mLabelsMatch.size() << " match labels"; } - LOG(INFO) << "Pushing " << mLabelsTrd.size() << " MC labels at entry " << ent; + LOG(info) << "Pushing " << mLabelsTrd.size() << " MC labels at entry " << ent; } if (mMode == Mode::TPCTRD) { @@ -84,7 +84,7 @@ void TRDTrackReader::connectTree(const std::string& filename) mTree->SetBranchAddress("labels", &mLabelsMatchPtr); mTree->SetBranchAddress("labelsTRD", &mLabelsTrdPtr); } - LOG(INFO) << "Loaded tree from " << filename << " with " << mTree->GetEntries() << " entries"; + LOG(info) << "Loaded tree from " << filename << " with " << mTree->GetEntries() << " entries"; } DataProcessorSpec getTRDTPCTrackReaderSpec(bool useMC, bool subSpecStrict) diff --git a/Detectors/TRD/workflow/io/src/trd-track-reader-workflow.cxx b/Detectors/TRD/workflow/io/src/trd-track-reader-workflow.cxx index 07927e18be163..ac29078c4448f 100644 --- a/Detectors/TRD/workflow/io/src/trd-track-reader-workflow.cxx +++ b/Detectors/TRD/workflow/io/src/trd-track-reader-workflow.cxx @@ -44,7 +44,7 @@ WorkflowSpec defineDataProcessing(ConfigContext const& configcontext) auto useMC = !configcontext.options().get("disable-mc"); if (useMC) { - LOG(WARNING) << "TRD track reader cannot read MC labels, useMC = false will be enforced"; + LOG(warning) << "TRD track reader cannot read MC labels, useMC = false will be enforced"; useMC = false; } diff --git a/Detectors/TRD/workflow/src/EntropyDecoderSpec.cxx b/Detectors/TRD/workflow/src/EntropyDecoderSpec.cxx index 44691dac2b324..0d3c0aeb574a3 100644 --- a/Detectors/TRD/workflow/src/EntropyDecoderSpec.cxx +++ b/Detectors/TRD/workflow/src/EntropyDecoderSpec.cxx @@ -73,7 +73,7 @@ void EntropyDecoderSpec::run(ProcessingContext& pc) } mTimer.Stop(); - LOG(INFO) << "Decoded " << tracklets.size() << " TRD tracklets and " << digits.size() << " digits in " << triggers.size() << " triggers in " << mTimer.CpuTime() - cput << " s"; + LOG(info) << "Decoded " << tracklets.size() << " TRD tracklets and " << digits.size() << " digits in " << triggers.size() << " triggers in " << mTimer.CpuTime() - cput << " s"; } void EntropyDecoderSpec::endOfStream(EndOfStreamContext& ec) diff --git a/Detectors/TRD/workflow/src/EntropyEncoderSpec.cxx b/Detectors/TRD/workflow/src/EntropyEncoderSpec.cxx index 11970409f3b63..3331547baebb7 100644 --- a/Detectors/TRD/workflow/src/EntropyEncoderSpec.cxx +++ b/Detectors/TRD/workflow/src/EntropyEncoderSpec.cxx @@ -71,7 +71,7 @@ void EntropyEncoderSpec::run(ProcessingContext& pc) buffer.resize(eeb->size()); // shrink buffer to strictly necessary size // eeb->print(); mTimer.Stop(); - LOG(INFO) << "Created encoded data of size " << eeb->size() << " for TRD in " << mTimer.CpuTime() - cput << " s"; + LOG(info) << "Created encoded data of size " << eeb->size() << " for TRD in " << mTimer.CpuTime() - cput << " s"; } void EntropyEncoderSpec::endOfStream(EndOfStreamContext& ec) diff --git a/Detectors/TRD/workflow/src/TRDDigitizerSpec.cxx b/Detectors/TRD/workflow/src/TRDDigitizerSpec.cxx index 21bdee4ea7475..6d3be34479a13 100644 --- a/Detectors/TRD/workflow/src/TRDDigitizerSpec.cxx +++ b/Detectors/TRD/workflow/src/TRDDigitizerSpec.cxx @@ -47,7 +47,7 @@ class TRDDPLDigitizerTask : public o2::base::BaseDPLDigitizer void initDigitizerTask(framework::InitContext& ic) override { - LOG(INFO) << "initializing TRD digitization"; + LOG(info) << "initializing TRD digitization"; mDigitizer.init(); } @@ -57,7 +57,7 @@ class TRDDPLDigitizerTask : public o2::base::BaseDPLDigitizer if (finished) { return; } - LOG(INFO) << "Doing TRD digitization"; + LOG(info) << "Doing TRD digitization"; bool mctruth = pc.outputs().isAllowed({"TRD", "LABELS", 0}); @@ -71,7 +71,7 @@ class TRDDPLDigitizerTask : public o2::base::BaseDPLDigitizer auto& irecords = context->getEventRecords(); for (auto& record : irecords) { - LOG(DEBUG) << "TRD TIME RECEIVED " << record.getTimeNS(); + LOG(debug) << "TRD TIME RECEIVED " << record.getTimeNS(); } auto& eventParts = context->getEventParts(); @@ -150,17 +150,17 @@ class TRDDPLDigitizerTask : public o2::base::BaseDPLDigitizer timer.Stop(); LOGF(INFO, "TRD digitization timing: Cpu: %.3e Real: %.3e s", timer.CpuTime(), timer.RealTime()); - LOG(INFO) << "TRD: Sending " << digitsAccum.size() << " digits"; + LOG(info) << "TRD: Sending " << digitsAccum.size() << " digits"; pc.outputs().snapshot(Output{"TRD", "DIGITS", 0, Lifetime::Timeframe}, digitsAccum); if (mctruth) { - LOG(INFO) << "TRD: Sending " << labelsAccum.getNElements() << " labels"; + LOG(info) << "TRD: Sending " << labelsAccum.getNElements() << " labels"; // we are flattening the labels and write to managed shared memory container for further communication auto& sharedlabels = pc.outputs().make>(Output{"TRD", "LABELS", 0, Lifetime::Timeframe}); labelsAccum.flatten_to(sharedlabels); } - LOG(INFO) << "TRD: Sending ROMode= " << mROMode << " to GRPUpdater"; + LOG(info) << "TRD: Sending ROMode= " << mROMode << " to GRPUpdater"; pc.outputs().snapshot(Output{"TRD", "ROMode", 0, Lifetime::Timeframe}, mROMode); - LOG(INFO) << "TRD: Sending trigger records"; + LOG(info) << "TRD: Sending trigger records"; pc.outputs().snapshot(Output{"TRD", "TRGRDIG", 0, Lifetime::Timeframe}, triggers); // we should be only called once; tell DPL that this process is ready to exit pc.services().get().readyToQuit(QuitRequest::Me); diff --git a/Detectors/TRD/workflow/src/TRDTrackletTransformerSpec.cxx b/Detectors/TRD/workflow/src/TRDTrackletTransformerSpec.cxx index fa4d7d6d3d1c8..583c0b3fa2c48 100644 --- a/Detectors/TRD/workflow/src/TRDTrackletTransformerSpec.cxx +++ b/Detectors/TRD/workflow/src/TRDTrackletTransformerSpec.cxx @@ -28,13 +28,13 @@ namespace trd void TRDTrackletTransformerSpec::init(o2::framework::InitContext& ic) { - LOG(INFO) << "Initializing tracklet transformer"; + LOG(info) << "Initializing tracklet transformer"; mTransformer.loadCalibrationParameters(mTimestamp); } void TRDTrackletTransformerSpec::run(o2::framework::ProcessingContext& pc) { - LOG(INFO) << "Running tracklet transformer"; + LOG(info) << "Running tracklet transformer"; if (!mTransformer.hasCalibration()) { // ccdb object was not found for specified timestamp return;