Skip to content

Commit 8eea70b

Browse files
committed
Fix readability/braces
1 parent abfc82b commit 8eea70b

14 files changed

Lines changed: 48 additions & 45 deletions

File tree

‎Common/DataModel/Centrality.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,18 +100,22 @@ using BCCentFT0C = BCCentFT0Cs::iterator;
100100

101101
template <typename T>
102102
concept HasRun2Centrality = requires(T&& t) {
103+
// NOLINTBEGIN(readability/braces)
103104
{ t.centRun2V0M() };
104105
{ t.centRun2CL0() };
105106
{ t.centRun2CL1() };
107+
// NOLINTEND(readability/braces)
106108
};
107109

108110
template <typename T>
109111
concept HasCentrality = requires(T&& t) {
112+
// NOLINTBEGIN(readability/braces)
110113
{ t.centFV0A() };
111114
{ t.centFT0M() };
112115
{ t.centFT0A() };
113116
{ t.centFT0C() };
114117
{ t.centNTPV() };
118+
// NOLINTEND(readability/braces)
115119
};
116120

117121
} // namespace o2::aod

‎DPG/Tasks/AOTEvent/detectorOccupancyQa.cxx‎

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,6 @@ struct DetectorOccupancyQaTask {
10871087
// July 2025: more for data vs MC:
10881088
if (track.hasTPC() && occupancy >= 0 && confAddBasicQAhistos) {
10891089
float pt = track.pt();
1090-
// pt 0.2-0.5
10911090
if (pt > 0.2 && pt < 0.5) {
10921091
if (nPV >= 10 && nPV < 400) {
10931092
histos.fill(HIST("QA_noTPCcuts/nPV_10_200/tpcNClsFindable_vs_occup_pt_02_05"), track.tpcNClsFindable(), occupancy);
@@ -1098,9 +1097,7 @@ struct DetectorOccupancyQaTask {
10981097
histos.fill(HIST("QA_noTPCcuts/nPV_above2000/tpcNClsFound_vs_occup_pt_02_05"), track.tpcNClsFound(), occupancy);
10991098
histos.fill(HIST("QA_noTPCcuts/nPV_above2000/tpcChi2NCl_vs_occup_pt_02_05"), track.tpcChi2NCl(), occupancy);
11001099
}
1101-
}
1102-
// pt 0.5-1.0
1103-
else if (pt > 0.5 && pt < 1.0) {
1100+
} else if (pt > 0.5 && pt < 1.0) {
11041101
if (nPV >= 10 && nPV < 400) {
11051102
histos.fill(HIST("QA_noTPCcuts/nPV_10_200/tpcNClsFindable_vs_occup_pt_05_10"), track.tpcNClsFindable(), occupancy);
11061103
histos.fill(HIST("QA_noTPCcuts/nPV_10_200/tpcNClsFound_vs_occup_pt_05_10"), track.tpcNClsFound(), occupancy);
@@ -1110,9 +1107,7 @@ struct DetectorOccupancyQaTask {
11101107
histos.fill(HIST("QA_noTPCcuts/nPV_above2000/tpcNClsFound_vs_occup_pt_05_10"), track.tpcNClsFound(), occupancy);
11111108
histos.fill(HIST("QA_noTPCcuts/nPV_above2000/tpcChi2NCl_vs_occup_pt_05_10"), track.tpcChi2NCl(), occupancy);
11121109
}
1113-
}
1114-
// pt > 1.0
1115-
else if (pt > 1.0) {
1110+
} else if (pt > 1.0) {
11161111
if (nPV >= 10 && nPV < 400) {
11171112
histos.fill(HIST("QA_noTPCcuts/nPV_10_200/tpcNClsFindable_vs_occup_pt_above1_0"), track.tpcNClsFindable(), occupancy);
11181113
histos.fill(HIST("QA_noTPCcuts/nPV_10_200/tpcNClsFound_vs_occup_pt_above1_0"), track.tpcNClsFound(), occupancy);
@@ -1383,8 +1378,8 @@ struct DetectorOccupancyQaTask {
13831378
int tpcNClsFound = track.tpcNClsFound();
13841379
int tpcNClsCrossedRows = track.tpcNClsCrossedRows();
13851380

1386-
if (sign > 0) // positive tracks
1387-
{
1381+
if (sign > 0) {
1382+
// positive tracks
13881383
histos.fill(HIST("track_distr_nITStrThisEv_10_200/kine_vs_weighted_occup/PV_hPt_pos"), pt, occupancy);
13891384
histos.fill(HIST("track_distr_nITStrThisEv_10_200/kine_vs_weighted_occup/PV_hEta_pos"), eta, occupancy);
13901385
histos.fill(HIST("track_distr_nITStrThisEv_10_200/kine_vs_weighted_occup/PV_hPhi_pos"), phi, occupancy, pt);
@@ -1401,8 +1396,8 @@ struct DetectorOccupancyQaTask {
14011396
histos.fill(HIST("track_distr_nITStrThisEv_10_200/kine_vs_weighted_occup/QA_tpcNClsFound_pos"), tpcNClsFound);
14021397
histos.fill(HIST("track_distr_nITStrThisEv_10_200/kine_vs_weighted_occup/QA_tpcNClsCrossedRows_pos"), tpcNClsCrossedRows);
14031398
}
1404-
} else // negative tracks
1405-
{
1399+
} else {
1400+
// negative tracks
14061401
histos.fill(HIST("track_distr_nITStrThisEv_10_200/kine_vs_weighted_occup/PV_hPt_neg"), pt, occupancy);
14071402
histos.fill(HIST("track_distr_nITStrThisEv_10_200/kine_vs_weighted_occup/PV_hEta_neg"), eta, occupancy);
14081403
histos.fill(HIST("track_distr_nITStrThisEv_10_200/kine_vs_weighted_occup/PV_hPhi_neg"), phi, occupancy, pt);
@@ -1449,8 +1444,8 @@ struct DetectorOccupancyQaTask {
14491444
} // end of TPC good global
14501445

14511446
// July 2025: for data vs MC kine distr comparison
1452-
if (sign > 0) // positive tracks
1453-
{
1447+
if (sign > 0) {
1448+
// positive tracks
14541449
histos.fill(HIST("track_distr_nITStrThisEv_above_2000/kine_vs_weighted_occup/PV_hPt_pos"), pt, occupancy);
14551450
histos.fill(HIST("track_distr_nITStrThisEv_above_2000/kine_vs_weighted_occup/PV_hEta_pos"), eta, occupancy);
14561451
histos.fill(HIST("track_distr_nITStrThisEv_above_2000/kine_vs_weighted_occup/PV_hPhi_pos"), phi, occupancy, pt);
@@ -1463,8 +1458,8 @@ struct DetectorOccupancyQaTask {
14631458
histos.fill(HIST("track_distr_nITStrThisEv_above_2000/kine_vs_weighted_occup/hPhi_posModifiedQA"), phi);
14641459
}
14651460
}
1466-
} else // negative tracks
1467-
{
1461+
} else {
1462+
// negative tracks
14681463
histos.fill(HIST("track_distr_nITStrThisEv_above_2000/kine_vs_weighted_occup/PV_hPt_neg"), pt, occupancy);
14691464
histos.fill(HIST("track_distr_nITStrThisEv_above_2000/kine_vs_weighted_occup/PV_hEta_neg"), eta, occupancy);
14701465
histos.fill(HIST("track_distr_nITStrThisEv_above_2000/kine_vs_weighted_occup/PV_hPhi_neg"), phi, occupancy, pt);

‎DPG/Tasks/AOTEvent/lightIonsEvSelQa.cxx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -991,9 +991,9 @@ struct LightIonsEvSelQa {
991991

992992
// vZ diff (FT0 vs by tracks)
993993
bool badVzDiff = 0;
994-
if (confUseDiffVzCutFromEvSel)
994+
if (confUseDiffVzCutFromEvSel) {
995995
badVzDiff = !col.selection_bit(kIsGoodZvtxFT0vsPV);
996-
else { // tune by hand
996+
} else { // tune by hand
997997
float meanDiff = 0.0; // cm
998998
// O-O
999999
if (lastRunNumber == 564356)

‎PWGCF/FemtoWorld/Core/FemtoWorldTrackSelection.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class FemtoWorldTrackSelection : public FemtoWorldObjectSelection<float, femtoWo
9696
dcaXYMax(-9999999.),
9797
dcaZMax(-9999999.),
9898
dcaMin(9999999.),
99-
nSigmaPIDMax(9999999.) {};
99+
nSigmaPIDMax(9999999.) {}
100100

101101
/// Initializes histograms for the task
102102
/// \tparam part Type of the particle for proper naming of the folders for QA

‎PWGCF/FemtoWorld/Core/FemtoWorldV0Selection.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class FemtoWorldV0Selection : public FemtoWorldObjectSelection<float, femtoWorld
8888
fInvMassUpLimit(1.3),
8989
fRejectKaon(false),
9090
fInvMassKaonLowLimit(0.48),
91-
fInvMassKaonUpLimit(0.515) {};
91+
fInvMassKaonUpLimit(0.515) {}
9292
/// Initializes histograms for the task
9393
template <o2::aod::femtoworldparticle::ParticleType part, o2::aod::femtoworldparticle::ParticleType daugh, typename cutContainerType>
9494
void init(o2::framework::HistogramRegistry* registry);

‎PWGCF/FemtoWorld/Tasks/femtoWorldPairTaskTrackTrack.cxx‎

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -214,32 +214,39 @@ struct femtoWorldPairTaskTrackTrack {
214214
if (mom > 0.5) {
215215
// if (TMath::Hypot( nsigmaTOFP, nsigmaTPCP )/TMath::Sqrt(2) < 3.0)
216216
if (mom < 2.0) {
217-
if (TMath::Hypot(nsigmaTOFK, nsigmaTPCK) < fNsigma)
217+
if (TMath::Hypot(nsigmaTOFK, nsigmaTPCK) < fNsigma) {
218218
return true;
219-
} else if (TMath::Hypot(nsigmaTOFK, nsigmaTPCK) < fNsigma2)
219+
}
220+
} else if (TMath::Hypot(nsigmaTOFK, nsigmaTPCK) < fNsigma2) {
220221
return true;
222+
}
221223
} else {
222-
if (TMath::Abs(nsigmaTPCK) < fNsigma)
224+
if (TMath::Abs(nsigmaTPCK) < fNsigma) {
223225
return true;
226+
}
224227
}
225228
} else {
226-
227229
if (mom < 0.4) {
228230
if (nsigmaTOFK < -999.) {
229-
if (TMath::Abs(nsigmaTPCK) < 2.0)
231+
if (TMath::Abs(nsigmaTPCK) < 2.0) {
230232
return true;
231-
} else if (TMath::Abs(nsigmaTOFK) < 3.0 && TMath::Abs(nsigmaTPCK) < 3.0)
233+
}
234+
} else if (TMath::Abs(nsigmaTOFK) < 3.0 && TMath::Abs(nsigmaTPCK) < 3.0) {
232235
return true;
236+
}
233237
} else if (mom >= 0.4 && mom <= 0.6) {
234238
if (nsigmaTOFK < -999.) {
235-
if (TMath::Abs(nsigmaTPCK) < 2.0)
239+
if (TMath::Abs(nsigmaTPCK) < 2.0) {
236240
return true;
237-
} else if (TMath::Abs(nsigmaTOFK) < 3.0 && TMath::Abs(nsigmaTPCK) < 3.0)
241+
}
242+
} else if (TMath::Abs(nsigmaTOFK) < 3.0 && TMath::Abs(nsigmaTPCK) < 3.0) {
238243
return true;
244+
}
239245
} else if (nsigmaTOFK < -999.) {
240246
return false;
241-
} else if (TMath::Abs(nsigmaTOFK) < 3.0 && TMath::Abs(nsigmaTPCK) < 3.0)
247+
} else if (TMath::Abs(nsigmaTOFK) < 3.0 && TMath::Abs(nsigmaTPCK) < 3.0) {
242248
return true;
249+
}
243250
}
244251
return false;
245252
}

‎PWGDQ/Macros/fit_library/CB2Pdf.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
class CB2Pdf : public RooAbsPdf
2626
{
2727
public:
28-
CB2Pdf(){};
28+
CB2Pdf() {}
2929
CB2Pdf(const char* name, const char* title,
3030
RooAbsReal& _x,
3131
RooAbsReal& _A,

‎PWGDQ/Macros/fit_library/ExpPdf.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
class ExpPdf : public RooAbsPdf
2626
{
2727
public:
28-
ExpPdf(){};
28+
ExpPdf() {}
2929
ExpPdf(const char* name, const char* title,
3030
RooAbsReal& _x,
3131
RooAbsReal& _A,

‎PWGDQ/Macros/fit_library/GausPdf.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
class GausPdf : public RooAbsPdf
2626
{
2727
public:
28-
GausPdf(){};
28+
GausPdf() {}
2929
GausPdf(const char* name, const char* title,
3030
RooAbsReal& _x,
3131
RooAbsReal& _A,

‎PWGDQ/Macros/fit_library/Pol4ExpPdf.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ TString nameParameters[] = {"p0", "p1", "p2", "p3", "p4", "p5", "N_bkg", "N_sig"
2828
class Pol4ExpPdf : public RooAbsPdf
2929
{
3030
public:
31-
Pol4ExpPdf(){};
31+
Pol4ExpPdf() {}
3232
Pol4ExpPdf(const char* name, const char* title,
3333
RooAbsReal& _x,
3434
RooAbsReal& _P0,

0 commit comments

Comments
 (0)