Skip to content

Commit f4135c8

Browse files
DawidSkoraknopers8
authored andcommitted
Align code with clang-format
1 parent 4afb538 commit f4135c8

6 files changed

Lines changed: 20 additions & 20 deletions

File tree

Modules/FIT/FV0/include/FV0/CalibrationTask.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ class CalibrationTask final : public TaskInterface
6464

6565
} // namespace o2::quality_control_modules::fv0
6666

67-
#endif //QUALITYCONTROL_FV0_CALIBRATIONTASK_H
67+
#endif // QUALITYCONTROL_FV0_CALIBRATIONTASK_H

Modules/FIT/FV0/include/FV0/GenericCheck.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,13 @@ class SingleCheck
8989
ILOG(Debug, Support) << log << ENDM;
9090
}
9191

92-
float getThresholdWarning() {
92+
float getThresholdWarning()
93+
{
9394
return mThresholdWarning;
9495
}
9596

96-
float getThresholdError() {
97+
float getThresholdError()
98+
{
9799
return mThresholdError;
98100
}
99101

Modules/FIT/FV0/include/FV0/LinkDef.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
#pragma link C++ class o2::quality_control_modules::fv0::PostProcTask + ;
88
#pragma link C++ class o2::quality_control_modules::fv0::CFDEffCheck + ;
99
#pragma link C++ class o2::quality_control_modules::fv0::OutOfBunchCollCheck + ;
10-
#pragma link C++ class o2::quality_control_modules::fv0::GenericCheck+;
10+
#pragma link C++ class o2::quality_control_modules::fv0::GenericCheck + ;
1111
#pragma link C++ class o2::quality_control_modules::fv0::TriggersSwVsTcmCheck + ;
1212
//#pragma link C++ class o2::quality_control_modules::fv0::CalibrationTask + ;
1313
//#pragma link C++ class o2::quality_control_modules::fv0::ChannelTimeCalibrationCheck + ;
1414

15-
#pragma link C++ class o2::quality_control_modules::fv0::DigitQcTaskLaser+;
16-
#pragma link C++ class o2::quality_control_modules::fv0::TH1ReductorLaser+;
15+
#pragma link C++ class o2::quality_control_modules::fv0::DigitQcTaskLaser + ;
16+
#pragma link C++ class o2::quality_control_modules::fv0::TH1ReductorLaser + ;
1717
#endif

Modules/FIT/FV0/src/DigitQcTask.cxx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,6 @@ void DigitQcTask::initialize(o2::framework::InitContext& /*ctx*/)
302302
mSetAllowedChIDsAmpVsTime.insert(entry);
303303
}
304304

305-
306-
307305
for (const auto& chID : mSetAllowedChIDs) {
308306
auto pairHistAmp = mMapHistAmp1D.insert({ chID, new TH1F(Form("Amp_channel%i", chID), Form("Amplitude, channel %i", chID), 4200, -100, 4100) });
309307
auto pairHistTime = mMapHistTime1D.insert({ chID, new TH1F(Form("Time_channel%i", chID), Form("Time, channel %i", chID), 4100, -2050, 2050) });
@@ -650,16 +648,16 @@ void DigitQcTask::endOfCycle()
650648
ILOG(Debug, Support) << "adding last TF creation time: " << mTFcreationTime << ENDM;
651649
getObjectsManager()->getMonitorObject(mHistBCvsTrg->GetName())->addOrUpdateMetadata("TFcreationTime", std::to_string(mTFcreationTime));
652650

653-
for (int channel = 1; channel <= sNCHANNELS_FV0_PLUSREF-1; channel++) {
651+
for (int channel = 1; channel <= sNCHANNELS_FV0_PLUSREF - 1; channel++) {
654652
int events_in_range = 0;
655653
int events_per_channel = 0;
656654
for (int bin_on_y_axis = 1; bin_on_y_axis <= mHistTime2Ch->GetNbinsY(); bin_on_y_axis++) {
657-
if (std::abs(mHistTime2Ch->GetYaxis()->GetBinLowEdge(bin_on_y_axis)) < mTimeGate) {
658-
events_in_range += mHistTime2Ch->GetBinContent(channel, bin_on_y_axis);
659-
}
660-
events_per_channel += mHistTime2Ch->GetBinContent(channel, bin_on_y_axis);
655+
if (std::abs(mHistTime2Ch->GetYaxis()->GetBinLowEdge(bin_on_y_axis)) < mTimeGate) {
656+
events_in_range += mHistTime2Ch->GetBinContent(channel, bin_on_y_axis);
657+
}
658+
events_per_channel += mHistTime2Ch->GetBinContent(channel, bin_on_y_axis);
661659
}
662-
mHistGateTimeRatio2Ch->SetBinContent(channel, (float) events_in_range / (float) events_per_channel);
660+
mHistGateTimeRatio2Ch->SetBinContent(channel, (float)events_in_range / (float)events_per_channel);
663661
}
664662

665663
// one has to set num. of entries manually because

Modules/FIT/FV0/src/GenericCheck.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ void GenericCheck::beautify(std::shared_ptr<MonitorObject> mo, Quality checkResu
241241
h->GetListOfFunctions()->Add(msg);
242242

243243
// add threshold lines
244-
if(mCheckMinThresholdY.isActive()) {
244+
if (mCheckMinThresholdY.isActive()) {
245245
Double_t xMin = h->GetXaxis()->GetXmin();
246246
Double_t xMax = h->GetXaxis()->GetXmax();
247247
auto* lineMinError = new TLine(xMin, mCheckMinThresholdY.getThresholdError(), xMax, mCheckMinThresholdY.getThresholdError());

Modules/FIT/FV0/src/TriggersSwVsTcmCheck.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,15 @@ namespace o2::quality_control_modules::fv0
3636
constexpr int kBinSwOnly = 1;
3737
constexpr int kBinTcmOnly = 2;
3838

39-
void TriggersSwVsTcmCheck::configure() {
39+
void TriggersSwVsTcmCheck::configure()
40+
{
4041
if (auto param = mCustomParameters.find("ccdbUrl"); param != mCustomParameters.end()) {
4142
setCcdbUrl(param->second);
4243
ILOG(Debug, Support) << "configure() : using deadChannelMap from CCDB, configured url = " << param->second << ENDM;
4344
} else {
4445
setCcdbUrl("o2-ccdb.internal");
4546
ILOG(Debug, Support) << "configure() : using deadChannelMap from CCDB, default url = "
46-
<< "o2-ccdb.internal" << ENDM;
47+
<< "o2-ccdb.internal" << ENDM;
4748
}
4849

4950
mPositionMsgBox = { 0.15, 0.75, 0.85, 0.9 };
@@ -82,10 +83,9 @@ Quality TriggersSwVsTcmCheck::check(std::map<std::string, std::shared_ptr<Monito
8283
if ((bool)(histogram->GetBinContent(binId, kBinSwOnly)) || (bool)(histogram->GetBinContent(binId, kBinTcmOnly))) {
8384
mNumErrors++;
8485
if (result.isBetterThan(Quality::Bad)) {
85-
result.set(Quality::Bad);
86+
result.set(Quality::Bad);
8687
}
87-
result.addReason(FlagReasonFactory::Unknown(),
88-
"Only SW or TCM trigger was activated");
88+
result.addReason(FlagReasonFactory::Unknown(), "Only SW or TCM trigger was activated");
8989
}
9090
}
9191
}

0 commit comments

Comments
 (0)