Skip to content

Commit 0ea2659

Browse files
committed
clang
1 parent d0c2c24 commit 0ea2659

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

DataFormats/Detectors/CTP/include/DataFormatsCTP/Configuration.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class CTPConfiguration
160160
const std::vector<CTPClass>& getCTPClasses() const { return mCTPClasses; } // Read-only interface
161161
uint64_t getInputMask(const std::string& name) const;
162162
int getInputIndex(const std::string& name) const;
163-
std::string getClassNameFromIndex(int index) ;
163+
std::string getClassNameFromIndex(int index);
164164
std::string getClassNameFromHWIndex(int index);
165165
const CTPClass* getCTPClassFromHWIndex(const int index) const;
166166
bool isMaskInInputs(const uint64_t& mask) const;

DataFormats/Detectors/CTP/src/Configuration.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -781,11 +781,11 @@ int CTPConfiguration::getInputIndex(const std::string& name) const
781781
return index;
782782
}
783783
std::string CTPConfiguration::getClassNameFromIndex(int index)
784-
{
785-
if(index < mCTPClasses.size()) {
786-
return mCTPClasses[index].name;
784+
{
785+
if (index < mCTPClasses.size()) {
786+
return mCTPClasses[index].name;
787787
} else {
788-
std::string name = "Cls"+std::to_string(index);
788+
std::string name = "Cls" + std::to_string(index);
789789
return name;
790790
}
791791
};

Detectors/CTP/reconstruction/src/RawDataDecoder.cxx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ int RawDataDecoder::decodeRaw(o2::framework::InputRecord& inputs, std::vector<o2
296296
uint64_t trgclassmask = 0xffffffffffffffff;
297297
uint64_t trgclassmaskNOTRGDet = 0xffffffffffffffff;
298298
if (mCTPConfig.getRunNumber() != 0) {
299-
trgclassmask = mCTPConfig.getTriggerClassMaskWInputs(); // classes triggered by internal ctp generators not here
299+
trgclassmask = mCTPConfig.getTriggerClassMaskWInputs(); // classes triggered by internal ctp generators not here
300300
trgclassmaskNOTRGDet = mCTPConfig.getTriggerClassMaskWInputsNoTrgDets();
301301
// mCTPConfig.printStream(std::cout);
302302
}
@@ -524,8 +524,9 @@ int RawDataDecoder::shiftNew(const o2::InteractionRecord& irin, uint32_t TFOrbit
524524
digmap[ir] = digit;
525525
}
526526
} else {
527-
//LOG(info) << "LOST:" << irin << " shift:" << shift;
528-
return 1;;
527+
// LOG(info) << "LOST:" << irin << " shift:" << shift;
528+
return 1;
529+
;
529530
}
530531
return 0;
531532
}

Detectors/CTP/workflow/src/RawDecoderSpec.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ void RawDecoderSpec::endOfStream(framework::EndOfStreamContext& ec)
7777
if (mErrorIR || mErrorTCR) {
7878
LOG(error) << "# of IR errors:" << mErrorIR << " TCR errors:" << mErrorTCR << std::endl;
7979
}
80-
if(mCheckConsistency) {
80+
if (mCheckConsistency) {
8181
LOG(info) << "Lost due to the shift Consistency Checker:" << mDecoder.getLostDueToShiftCls();
8282
auto ctpcfg = mDecoder.getCTPConfig();
8383
for (int i = 0; i < o2::ctp::CTP_NCLASSES; i++) {
8484
std::string name = ctpcfg.getClassNameFromIndex(i);
8585
if (mClsEA[i]) {
8686
LOG(error) << " Class without inputs:";
8787
}
88-
LOG(important) << "CLASS:"<< name << ":" << i << " Cls=>Inp:" << mClsA[i] << " Inp=>Cls:" << mClsB[i] << " ErrorsCls=>Inps:" << mClsEA[i] << " MissingInps=>Cls:" << mClsEB[i];
88+
LOG(important) << "CLASS:" << name << ":" << i << " Cls=>Inp:" << mClsA[i] << " Inp=>Cls:" << mClsB[i] << " ErrorsCls=>Inps:" << mClsEA[i] << " MissingInps=>Cls:" << mClsEB[i];
8989
}
9090
}
9191
}
@@ -172,7 +172,7 @@ void RawDecoderSpec::run(framework::ProcessingContext& ctx)
172172
auto clsEB = mDecoder.getClassErrorsB();
173173
auto cntCA = mDecoder.getClassCountersA();
174174
auto cntCB = mDecoder.getClassCountersB();
175-
for(int i = 0; i < o2::ctp::CTP_NCLASSES; i++){
175+
for (int i = 0; i < o2::ctp::CTP_NCLASSES; i++) {
176176
mClsEA[i] += clsEA[i];
177177
mClsEB[i] += clsEB[i];
178178
mClsA[i] += cntCA[i];

0 commit comments

Comments
 (0)