From 0de363f5596be5488cdad3cd3fa58172dd51c23a Mon Sep 17 00:00:00 2001 From: lietava Date: Sat, 16 Nov 2024 12:35:22 +0100 Subject: [PATCH] clang --- .../reconstruction/include/CTPReconstruction/CTFCoder.h | 2 +- Detectors/CTP/reconstruction/src/RawDataDecoder.cxx | 8 ++++---- Detectors/CTP/workflow/src/EntropyDecoderSpec.cxx | 6 +++--- Detectors/CTP/workflow/src/RawDecoderSpec.cxx | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Detectors/CTP/reconstruction/include/CTPReconstruction/CTFCoder.h b/Detectors/CTP/reconstruction/include/CTPReconstruction/CTFCoder.h index 96e91a5f9368f..fa01e4fc6eeb1 100644 --- a/Detectors/CTP/reconstruction/include/CTPReconstruction/CTFCoder.h +++ b/Detectors/CTP/reconstruction/include/CTPReconstruction/CTFCoder.h @@ -220,7 +220,7 @@ o2::ctf::CTFIOSize CTFCoder::decode(const CTF::base& ec, VTRG& data, LumiInfo& l } if (mDecodeInps) { uint64_t trgclassmask = 0xffffffffffffffff; - if(mCTPConfig.getRunNumber() != 0) { + if (mCTPConfig.getRunNumber() != 0) { trgclassmask = mCTPConfig.getTriggerClassMask(); } std::cout << "trgclassmask:" << std::hex << trgclassmask << std::dec << std::endl; diff --git a/Detectors/CTP/reconstruction/src/RawDataDecoder.cxx b/Detectors/CTP/reconstruction/src/RawDataDecoder.cxx index 6f08e163496f9..a72b784378d46 100644 --- a/Detectors/CTP/reconstruction/src/RawDataDecoder.cxx +++ b/Detectors/CTP/reconstruction/src/RawDataDecoder.cxx @@ -294,7 +294,7 @@ int RawDataDecoder::decodeRaw(o2::framework::InputRecord& inputs, std::vector& digit if (d.CTPInputMask.count()) { nTwI++; } else { - if(d.intRecord.bc == (o2::constants::lhc::LHCMaxBunches - L1shift)) { // input can be lost because latency class-l1input = 1 + if (d.intRecord.bc == (o2::constants::lhc::LHCMaxBunches - L1shift)) { // input can be lost because latency class-l1input = 1 nTwoIlost++; } else { - LOG(error) << d.intRecord << " " << d.CTPClassMask << " " << d.CTPInputMask; - //std::cout << std::hex << d.CTPClassMask << " " << d.CTPInputMask << std::dec << std::endl; + LOG(error) << d.intRecord << " " << d.CTPClassMask << " " << d.CTPInputMask; + // std::cout << std::hex << d.CTPClassMask << " " << d.CTPInputMask << std::dec << std::endl; nTwoI++; } } diff --git a/Detectors/CTP/workflow/src/EntropyDecoderSpec.cxx b/Detectors/CTP/workflow/src/EntropyDecoderSpec.cxx index b5657ef921c49..b61c7265f2489 100644 --- a/Detectors/CTP/workflow/src/EntropyDecoderSpec.cxx +++ b/Detectors/CTP/workflow/src/EntropyDecoderSpec.cxx @@ -57,7 +57,7 @@ void EntropyDecoderSpec::run(ProcessingContext& pc) mCTFCoder.updateTimeDependentParams(pc, true); auto buff = pc.inputs().get>("ctf_CTP"); - + const auto ctpcfg = pc.inputs().get("ctpconfig"); auto& digits = pc.outputs().make>(OutputRef{"digits"}); auto& lumi = pc.outputs().make(OutputRef{"CTPLumi"}); @@ -65,9 +65,9 @@ void EntropyDecoderSpec::run(ProcessingContext& pc) // since the buff is const, we cannot use EncodedBlocks::relocate directly, instead we wrap its data to another flat object if (buff.size()) { const auto ctfImage = o2::ctp::CTF::getImage(buff.data()); - if(mCTFCoder.getDecodeInps()){ + if (mCTFCoder.getDecodeInps()) { const auto ctpcfg = pc.inputs().get("ctpconfig"); - if(ctpcfg != nullptr) { + if (ctpcfg != nullptr) { mCTFCoder.setCTPConfig(*ctpcfg); } } diff --git a/Detectors/CTP/workflow/src/RawDecoderSpec.cxx b/Detectors/CTP/workflow/src/RawDecoderSpec.cxx index 47d8cb9188494..82f06f3784879 100644 --- a/Detectors/CTP/workflow/src/RawDecoderSpec.cxx +++ b/Detectors/CTP/workflow/src/RawDecoderSpec.cxx @@ -139,7 +139,7 @@ void RawDecoderSpec::run(framework::ProcessingContext& ctx) } else { if (mDecodeinputs) { const auto ctpcfg = inputs.get("ctpconfig"); - if(ctpcfg != nullptr) { + if (ctpcfg != nullptr) { mDecoder.setCTPConfig(*ctpcfg); } }