diff --git a/DataFormats/Detectors/CTP/include/DataFormatsCTP/Configuration.h b/DataFormats/Detectors/CTP/include/DataFormatsCTP/Configuration.h index 5fb96e9e30fe4..e9464089d71fc 100644 --- a/DataFormats/Detectors/CTP/include/DataFormatsCTP/Configuration.h +++ b/DataFormats/Detectors/CTP/include/DataFormatsCTP/Configuration.h @@ -160,7 +160,7 @@ class CTPConfiguration const std::vector& getCTPClasses() const { return mCTPClasses; } // Read-only interface uint64_t getInputMask(const std::string& name) const; int getInputIndex(const std::string& name) const; - std::string getClassNameFromIndex(int index) ; + std::string getClassNameFromIndex(int index); std::string getClassNameFromHWIndex(int index); const CTPClass* getCTPClassFromHWIndex(const int index) const; bool isMaskInInputs(const uint64_t& mask) const; diff --git a/DataFormats/Detectors/CTP/src/Configuration.cxx b/DataFormats/Detectors/CTP/src/Configuration.cxx index 7abadaac5e1ad..96e9a3847a607 100644 --- a/DataFormats/Detectors/CTP/src/Configuration.cxx +++ b/DataFormats/Detectors/CTP/src/Configuration.cxx @@ -781,11 +781,11 @@ int CTPConfiguration::getInputIndex(const std::string& name) const return index; } std::string CTPConfiguration::getClassNameFromIndex(int index) -{ - if(index < mCTPClasses.size()) { - return mCTPClasses[index].name; +{ + if (index < mCTPClasses.size()) { + return mCTPClasses[index].name; } else { - std::string name = "Cls"+std::to_string(index); + std::string name = "Cls" + std::to_string(index); return name; } }; diff --git a/Detectors/CTP/reconstruction/src/RawDataDecoder.cxx b/Detectors/CTP/reconstruction/src/RawDataDecoder.cxx index 8f52da08ee218..a062a262acf62 100644 --- a/Detectors/CTP/reconstruction/src/RawDataDecoder.cxx +++ b/Detectors/CTP/reconstruction/src/RawDataDecoder.cxx @@ -296,7 +296,7 @@ int RawDataDecoder::decodeRaw(o2::framework::InputRecord& inputs, std::vectorInp:" << mClsA[i] << " Inp=>Cls:" << mClsB[i] << " ErrorsCls=>Inps:" << mClsEA[i] << " MissingInps=>Cls:" << mClsEB[i]; + LOG(important) << "CLASS:" << name << ":" << i << " Cls=>Inp:" << mClsA[i] << " Inp=>Cls:" << mClsB[i] << " ErrorsCls=>Inps:" << mClsEA[i] << " MissingInps=>Cls:" << mClsEB[i]; } } } @@ -172,7 +172,7 @@ void RawDecoderSpec::run(framework::ProcessingContext& ctx) auto clsEB = mDecoder.getClassErrorsB(); auto cntCA = mDecoder.getClassCountersA(); auto cntCB = mDecoder.getClassCountersB(); - for(int i = 0; i < o2::ctp::CTP_NCLASSES; i++){ + for (int i = 0; i < o2::ctp::CTP_NCLASSES; i++) { mClsEA[i] += clsEA[i]; mClsEB[i] += clsEB[i]; mClsA[i] += cntCA[i];