Skip to content

Commit 30cb801

Browse files
committed
Fix casts
Fixes C-style, redundant, wrong, and dangerous casts (found by Clang-Tidy and cpplint). - Remove redundant casts. (`readability-redundant-casting`) - Remove `const_cast`. (`cppcoreguidelines-pro-type-const-cast`) - Replace C-style casts with `static_cast`. (`google-readability-casting`, cpplint: `readability/casting`) - Replace unsafe C-style casts with `dynamic_cast`. (`cppcoreguidelines-pro-type-cstyle-cast`) - Replace `static_cast` in downcasts with `dynamic_cast`. (`cppcoreguidelines-pro-type-static-cast-downcast`) - Replace `reinterpret_cast` with `static_cast` or `dynamic_cast`. (`cppcoreguidelines-pro-type-reinterpret-cast`) - Replace two-step casting through `void*` with `reinterpret_cast`. (`bugprone-casting-through-void`)
1 parent 7900bb8 commit 30cb801

14 files changed

Lines changed: 70 additions & 68 deletions

‎PWGMM/Lumi/Tasks/lumiStability.cxx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ struct LumiStabilityTask {
104104
const AxisSpec axisTime{1000, -10, 40};
105105
const AxisSpec axisTimeFDD{1000, -20, 100};
106106
const AxisSpec axisCountsTime{2, -0.5, 1.5};
107-
const AxisSpec axisOrbits{static_cast<int>(nOrbits / nOrbitsPerTF), 0., static_cast<double>(nOrbits), ""};
107+
const AxisSpec axisOrbits{(nOrbits / nOrbitsPerTF), 0., static_cast<double>(nOrbits), ""};
108108
const AxisSpec axisTimeRate{static_cast<int>(static_cast<double>(43200) / (nOrbitsPerTF * 89e-6)), 0., 43200, ""}; // t in seconds. Histo for 12 hrs. Each bin contain one time frame (128/32 orbits for 2022/2023).
109109
const AxisSpec timeAxis{1200, 0., 1200., "#bf{t-t_{SOF} (min)}"};
110110

‎PWGMM/Lumi/macros/merger.C‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ void merger()
5555
tin->Branch("fVertexChi2", &fVertexChi2, "fVertexChi2/D");
5656
tin->Branch("fNContrib", &fNContrib, "fNContrib/I");
5757

58-
while (TDirectoryFile* dir = (TDirectoryFile*)next()) {
59-
tadd = (TTree*)fin->Get(Form("%s/O2eventinfo", dir->GetName()));
58+
while (TDirectoryFile* dir = dynamic_cast<TDirectoryFile*>(next())) {
59+
tadd = dynamic_cast<TTree*>(fin->Get(Form("%s/O2eventinfo", dir->GetName())));
6060

6161
tadd->SetBranchAddress("fTimeStamp", &fTimeStamp);
6262

‎PWGMM/Lumi/macros/non_fac.C‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void chi2(Int_t& npar, Double_t* gin, Double_t& f, Double_t* par, Int_t flag)
5050
TMatrixD sigma(2, 2);
5151
double results = 0.;
5252

53-
tin = (TTree*)fin->Get("EventInfo_merged");
53+
tin = dynamic_cast<TTree*>(fin->Get("EventInfo_merged"));
5454

5555
tin->SetBranchAddress("fTimeStamp", &fTimeStamp);
5656

@@ -132,7 +132,7 @@ void non_fac()
132132
new TH1D(Form("hPreDistPos_%d_%d", i, 2), "", 1000, -100, 100);
133133
}
134134

135-
tin = (TTree*)fin->Get("EventInfo_merged");
135+
tin = dynamic_cast<TTree*>(fin->Get("EventInfo_merged"));
136136

137137
tin->SetBranchAddress("fTimeStamp", &fTimeStamp);
138138

‎PWGMM/Mult/TableProducer/ambiguousTrackPropagation.cxx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ struct AmbiguousTrackPropagation {
161161
runNumber = bc.runNumber();
162162

163163
if (doprocessMFT || doprocessMFTReassoc || doprocessMFTReassoc3D) {
164-
o2::field::MagneticField* field = static_cast<o2::field::MagneticField*>(TGeoGlobalMagField::Instance()->GetField());
164+
o2::field::MagneticField* field = dynamic_cast<o2::field::MagneticField*>(TGeoGlobalMagField::Instance()->GetField());
165165
bZ = field->getBz(CcenterMFT);
166166
LOG(info) << "The field at the center of the MFT is bZ = " << bZ;
167167
}
@@ -215,7 +215,7 @@ struct AmbiguousTrackPropagation {
215215
if ((track.trackCutFlag() & CtrackSelectionITS) != CtrackSelectionITS) {
216216
continue;
217217
}
218-
if ((track.detectorMap() & (uint8_t)o2::aod::track::TPC) == (uint8_t)o2::aod::track::TPC) {
218+
if ((track.detectorMap() & static_cast<uint8_t>(o2::aod::track::TPC)) == static_cast<uint8_t>(o2::aod::track::TPC)) {
219219
if ((track.trackCutFlag() & CtrackSelectionTPC) != CtrackSelectionTPC) {
220220
continue;
221221
}

‎PWGMM/Mult/TableProducer/reducer.cxx‎

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,15 @@ struct Reducer {
9999
// p[6] - normalization
100100
// alpha = p[1]^2 / ( 1 + p[1]^2), relative weight, 0 < alpha < 1
101101

102-
return params->get((int)0, 6) *
103-
(params->get((int)0, 1) * params->get((int)0, 1) / (1. + params->get((int)0, 1) * params->get((int)0, 1)) * // alpha
104-
// v1 +
105-
1. / (x * TMath::Beta(x, (1. + params->get((int)0, 3) * params->get((int)0, 3)))) * TMath::Power((params->get((int)0, 2) * params->get((int)0, 2)) / ((1. + params->get((int)0, 3) * params->get((int)0, 3)) + (params->get((int)0, 2) * params->get((int)0, 2))), x) * TMath::Power((1. + params->get((int)0, 3) * params->get((int)0, 3)) / ((1. + params->get((int)0, 3) * params->get((int)0, 3)) + (params->get((int)0, 2) * params->get((int)0, 2))), (1. + params->get((int)0, 3) * params->get((int)0, 3))) +
106-
1. / (1 + params->get((int)0, 1) * params->get((int)0, 1)) * // 1 - alpha
107-
// v2 );
108-
1. / (x * TMath::Beta(x, (1. + params->get((int)0, 5) * params->get((int)0, 5)))) * TMath::Power((params->get((int)0, 4) * params->get((int)0, 4)) / ((1. + params->get((int)0, 5) * params->get((int)0, 5)) + (params->get((int)0, 4) * params->get((int)0, 4))), x) * TMath::Power((1. + params->get((int)0, 5) * params->get((int)0, 5)) / ((1. + params->get((int)0, 5) * params->get((int)0, 5)) + (params->get((int)0, 4) * params->get((int)0, 4))), (1. + params->get((int)0, 5) * params->get((int)0, 5))));
102+
// NOLINTBEGIN(readability-redundant-casting)
103+
return params->get(static_cast<int>(0), 6) *
104+
(params->get(static_cast<int>(0), 1) * params->get(static_cast<int>(0), 1) / (1. + params->get(static_cast<int>(0), 1) * params->get(static_cast<int>(0), 1)) * // alpha
105+
// v1 +
106+
1. / (x * TMath::Beta(x, (1. + params->get(static_cast<int>(0), 3) * params->get(static_cast<int>(0), 3)))) * TMath::Power((params->get(static_cast<int>(0), 2) * params->get(static_cast<int>(0), 2)) / ((1. + params->get(static_cast<int>(0), 3) * params->get(static_cast<int>(0), 3)) + (params->get(static_cast<int>(0), 2) * params->get(static_cast<int>(0), 2))), x) * TMath::Power((1. + params->get(static_cast<int>(0), 3) * params->get(static_cast<int>(0), 3)) / ((1. + params->get(static_cast<int>(0), 3) * params->get(static_cast<int>(0), 3)) + (params->get(static_cast<int>(0), 2) * params->get(static_cast<int>(0), 2))), (1. + params->get(static_cast<int>(0), 3) * params->get(static_cast<int>(0), 3))) +
107+
1. / (1 + params->get(static_cast<int>(0), 1) * params->get(static_cast<int>(0), 1)) * // 1 - alpha
108+
// v2 );
109+
1. / (x * TMath::Beta(x, (1. + params->get(static_cast<int>(0), 5) * params->get(static_cast<int>(0), 5)))) * TMath::Power((params->get(static_cast<int>(0), 4) * params->get(static_cast<int>(0), 4)) / ((1. + params->get(static_cast<int>(0), 5) * params->get(static_cast<int>(0), 5)) + (params->get(static_cast<int>(0), 4) * params->get(static_cast<int>(0), 4))), x) * TMath::Power((1. + params->get(static_cast<int>(0), 5) * params->get(static_cast<int>(0), 5)) / ((1. + params->get(static_cast<int>(0), 5) * params->get(static_cast<int>(0), 5)) + (params->get(static_cast<int>(0), 4) * params->get(static_cast<int>(0), 4))), (1. + params->get(static_cast<int>(0), 5) * params->get(static_cast<int>(0), 5))));
110+
// NOLINTEND(readability-redundant-casting)
109111
}
110112

111113
template <typename C>
@@ -121,8 +123,8 @@ struct Reducer {
121123
void init(InitContext const&)
122124
{
123125
randomgen.seed(rd());
124-
LOGP(debug, ">>> Starting with params: {}, {}, {}, {}, {}, {}, {}", params->get((int)0, int(0)), params->get((int)0, 1), params->get((int)0, 2),
125-
params->get((int)0, 3), params->get((int)0, 4), params->get((int)0, 5), params->get((int)0, 6));
126+
LOGP(debug, ">>> Starting with params: {}, {}, {}, {}, {}, {}, {}", params->get(static_cast<int>(0), static_cast<int>(0)), params->get(static_cast<int>(0), 1), params->get(static_cast<int>(0), 2),
127+
params->get(static_cast<int>(0), 3), params->get(static_cast<int>(0), 4), params->get(static_cast<int>(0), 5), params->get(static_cast<int>(0), 6));
126128
etabins = static_cast<std::vector<double>>(etaBins);
127129
phibins = static_cast<std::vector<double>>(phiBins);
128130
binned.resize((etabins.size() - 1) * (phibins.size() - 1));
@@ -147,11 +149,11 @@ struct Reducer {
147149
{
148150
weights.clear();
149151
weights.resize(mccollisions.size());
150-
std::fill(weights.begin(), weights.end(), (float)-1.);
152+
std::fill(weights.begin(), weights.end(), static_cast<float>(-1.));
151153
auto i = 0;
152154
LOGP(debug, ">>> {} MC collisions for BC", mccollisions.size());
153155
for (auto& mcc : mccollisions) {
154-
auto value = (mcc.multMCNParticlesEta10() == 0) ? params->get((int)0, (int)0) : NormalizedDoubleNBD((double)mcc.multMCNParticlesEta10());
156+
auto value = (mcc.multMCNParticlesEta10() == 0) ? params->get(static_cast<int>(0), static_cast<int>(0)) : NormalizedDoubleNBD(static_cast<double>(mcc.multMCNParticlesEta10())); // // NOLINT(readability-redundant-casting)
155157
LOGP(debug, ">>> {} value for reduction (threshold {})", value, (float)reductionFactor);
156158
if (value < reductionFactor) {
157159
// if the fraction of events at this multiplicity is less than reduction factor, keep the event as is

‎PWGMM/Mult/Tasks/dndeta-hi.cxx‎

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ struct MultiplicityCounter {
367367
}
368368
for (auto itrigc = 1u; itrigc < kTrigend; itrigc++) {
369369
if (btrigc[itrigc])
370-
registry.fill(HIST("hreczvtx"), Double_t(kDATA), Double_t(itrigc), z, cent);
370+
registry.fill(HIST("hreczvtx"), static_cast<Double_t>(kDATA), static_cast<Double_t>(itrigc), z, cent);
371371
}
372372

373373
for (auto& track : pertracks) {
@@ -378,8 +378,8 @@ struct MultiplicityCounter {
378378

379379
for (auto itrigc = 1u; itrigc < kTrigend; itrigc++) {
380380
if (btrigc[itrigc]) {
381-
registry.fill(HIST("hphieta"), Double_t(kDATA), Double_t(itrigc), track.phi(), track.eta(), cent);
382-
registry.fill(HIST("hrecdndeta"), Double_t(kDATA), Double_t(itrigc), z, track.eta(), cent, Double_t(kParDATA), track.phi());
381+
registry.fill(HIST("hphieta"), static_cast<Double_t>(kDATA), static_cast<Double_t>(itrigc), track.phi(), track.eta(), cent);
382+
registry.fill(HIST("hrecdndeta"), static_cast<Double_t>(kDATA), static_cast<Double_t>(itrigc), z, track.eta(), cent, static_cast<Double_t>(kParDATA), track.phi());
383383
}
384384
}
385385
}
@@ -472,7 +472,7 @@ struct MultiplicityCounter {
472472
}
473473
for (auto ievtc = 1u; ievtc < kECend; ievtc++) {
474474
if (bevtc[ievtc])
475-
registry.fill(HIST("hgenzvtx"), Double_t(ievtc), genz, cent);
475+
registry.fill(HIST("hgenzvtx"), static_cast<Double_t>(ievtc), genz, cent);
476476
}
477477
Int_t pid = 0;
478478
std::vector<Double_t> particleetas;
@@ -502,14 +502,14 @@ struct MultiplicityCounter {
502502
if (std::abs(p->Charge()) >= 3) {
503503
for (auto ievtc = 1u; ievtc < kECend; ievtc++) {
504504
if (bevtc[ievtc]) {
505-
registry.fill(HIST("hgendndeta"), Double_t(ievtc), genz, particle.eta(), cent, Double_t(pid), kNoPtVar, particle.phi());
505+
registry.fill(HIST("hgendndeta"), static_cast<Double_t>(ievtc), genz, particle.eta(), cent, static_cast<Double_t>(pid), kNoPtVar, particle.phi());
506506
if (particle.pt() < 0.1) {
507-
registry.fill(HIST("hgendndeta"), Double_t(ievtc), genz, particle.eta(), cent, Double_t(pid), kPtUp, particle.phi(), -10.0 * particle.pt() + 2);
508-
registry.fill(HIST("hgendndeta"), Double_t(ievtc), genz, particle.eta(), cent, Double_t(pid), kPtDw, particle.phi(), 5.0 * particle.pt() + 0.5);
507+
registry.fill(HIST("hgendndeta"), static_cast<Double_t>(ievtc), genz, particle.eta(), cent, static_cast<Double_t>(pid), kPtUp, particle.phi(), -10.0 * particle.pt() + 2);
508+
registry.fill(HIST("hgendndeta"), static_cast<Double_t>(ievtc), genz, particle.eta(), cent, static_cast<Double_t>(pid), kPtDw, particle.phi(), 5.0 * particle.pt() + 0.5);
509509

510510
} else {
511-
registry.fill(HIST("hgendndeta"), Double_t(ievtc), genz, particle.eta(), cent, Double_t(pid), kPtUp, particle.phi());
512-
registry.fill(HIST("hgendndeta"), Double_t(ievtc), genz, particle.eta(), cent, Double_t(pid), kPtDw, particle.phi());
511+
registry.fill(HIST("hgendndeta"), static_cast<Double_t>(ievtc), genz, particle.eta(), cent, static_cast<Double_t>(pid), kPtUp, particle.phi());
512+
registry.fill(HIST("hgendndeta"), static_cast<Double_t>(ievtc), genz, particle.eta(), cent, static_cast<Double_t>(pid), kPtDw, particle.phi());
513513
}
514514
}
515515
}
@@ -596,7 +596,7 @@ struct MultiplicityCounter {
596596
for (auto ievtc = 1u; ievtc < kECend; ievtc++) {
597597
for (auto itrigc = 1u; itrigc < kTrigend; itrigc++) {
598598
if (bevtc[ievtc] && btrigc[itrigc]) {
599-
registry.fill(HIST("hreczvtx"), Double_t(ievtc), Double_t(itrigc), z, cent);
599+
registry.fill(HIST("hreczvtx"), static_cast<Double_t>(ievtc), static_cast<Double_t>(itrigc), z, cent);
600600
}
601601
}
602602
}
@@ -641,8 +641,8 @@ struct MultiplicityCounter {
641641
for (auto ievtc = 1u; ievtc < kECend; ievtc++) {
642642
for (auto itrigc = 1u; itrigc < kTrigend; itrigc++) {
643643
if (bevtc[ievtc] && btrigc[itrigc]) {
644-
registry.fill(HIST("hrecdndeta"), Double_t(ievtc), Double_t(itrigc), z, particle.eta(), cent, Double_t(pid), particle.phi());
645-
registry.fill(HIST("hphieta"), Double_t(ievtc), Double_t(itrigc), track.phi(), track.eta(), cent);
644+
registry.fill(HIST("hrecdndeta"), static_cast<Double_t>(ievtc), static_cast<Double_t>(itrigc), z, particle.eta(), cent, static_cast<Double_t>(pid), particle.phi());
645+
registry.fill(HIST("hphieta"), static_cast<Double_t>(ievtc), static_cast<Double_t>(itrigc), track.phi(), track.eta(), cent);
646646
}
647647
}
648648
}
@@ -651,7 +651,7 @@ struct MultiplicityCounter {
651651
for (auto ievtc = 1u; ievtc < kECend; ievtc++) {
652652
for (auto itrigc = 1u; itrigc < kTrigend; itrigc++) {
653653
if (bevtc[ievtc] && btrigc[itrigc]) {
654-
registry.fill(HIST("hrecdndeta"), Double_t(ievtc), Double_t(itrigc), z, track.eta(), cent, Double_t(kBkg), track.phi());
654+
registry.fill(HIST("hrecdndeta"), static_cast<Double_t>(ievtc), static_cast<Double_t>(itrigc), z, track.eta(), cent, static_cast<Double_t>(kBkg), track.phi());
655655
}
656656
}
657657
}
@@ -710,7 +710,7 @@ struct MultiplicityCounter {
710710
}
711711
for (auto ievtc = 1u; ievtc < kECend; ievtc++) {
712712
if (bevtc[ievtc])
713-
registry.fill(HIST("hgenzvtx"), Double_t(ievtc), genz, -1.0);
713+
registry.fill(HIST("hgenzvtx"), static_cast<Double_t>(ievtc), genz, -1.0);
714714
}
715715
Int_t pid = 0;
716716
for (auto& particle : mcParticles) {
@@ -739,14 +739,14 @@ struct MultiplicityCounter {
739739
if (std::abs(p->Charge()) >= 3) {
740740
for (auto ievtc = 1u; ievtc < kECend; ievtc++) {
741741
if (bevtc[ievtc]) {
742-
registry.fill(HIST("hgendndeta"), Double_t(ievtc), genz, particle.eta(), -1.0, Double_t(pid), kNoPtVar, particle.phi());
742+
registry.fill(HIST("hgendndeta"), static_cast<Double_t>(ievtc), genz, particle.eta(), -1.0, static_cast<Double_t>(pid), kNoPtVar, particle.phi());
743743
if (particle.pt() < 0.1) {
744-
registry.fill(HIST("hgendndeta"), Double_t(ievtc), genz, particle.eta(), -1.0, Double_t(pid), kPtUp, particle.phi(), 2.0);
745-
registry.fill(HIST("hgendndeta"), Double_t(ievtc), genz, particle.eta(), -1.0, Double_t(pid), kPtDw, particle.phi(), 0.5);
744+
registry.fill(HIST("hgendndeta"), static_cast<Double_t>(ievtc), genz, particle.eta(), -1.0, static_cast<Double_t>(pid), kPtUp, particle.phi(), 2.0);
745+
registry.fill(HIST("hgendndeta"), static_cast<Double_t>(ievtc), genz, particle.eta(), -1.0, static_cast<Double_t>(pid), kPtDw, particle.phi(), 0.5);
746746

747747
} else {
748-
registry.fill(HIST("hgendndeta"), Double_t(ievtc), genz, particle.eta(), -1.0, Double_t(pid), kPtUp, particle.phi());
749-
registry.fill(HIST("hgendndeta"), Double_t(ievtc), genz, particle.eta(), -1.0, Double_t(pid), kPtDw, particle.phi());
748+
registry.fill(HIST("hgendndeta"), static_cast<Double_t>(ievtc), genz, particle.eta(), -1.0, static_cast<Double_t>(pid), kPtUp, particle.phi());
749+
registry.fill(HIST("hgendndeta"), static_cast<Double_t>(ievtc), genz, particle.eta(), -1.0, static_cast<Double_t>(pid), kPtDw, particle.phi());
750750
}
751751
}
752752
}
@@ -797,9 +797,9 @@ struct MultiplicityCounter {
797797

798798
if (fabs(v0.eta()) < 0.5)
799799
registry.fill(HIST("hv0k0s"), v0.mK0Short());
800-
registry.fill(HIST("hv0mass"), cent, Double_t(kK0short), v0.eta(), Double_t(v0.mK0Short()));
801-
registry.fill(HIST("hv0mass"), cent, Double_t(kLambda), v0.eta(), Double_t(v0.mLambda()));
802-
registry.fill(HIST("hv0mass"), cent, Double_t(kAntilambda), v0.eta(), Double_t(v0.mAntiLambda()));
800+
registry.fill(HIST("hv0mass"), cent, static_cast<Double_t>(kK0short), v0.eta(), static_cast<Double_t>(v0.mK0Short()));
801+
registry.fill(HIST("hv0mass"), cent, static_cast<Double_t>(kLambda), v0.eta(), static_cast<Double_t>(v0.mLambda()));
802+
registry.fill(HIST("hv0mass"), cent, static_cast<Double_t>(kAntilambda), v0.eta(), static_cast<Double_t>(v0.mAntiLambda()));
803803
}
804804
}
805805
}
@@ -840,9 +840,9 @@ struct MultiplicityCounter {
840840
abs(pTrack.eta()) < etadau &&
841841
abs(nTrack.eta()) < etadau) {
842842

843-
registry.fill(HIST("hv0mass"), cent, Double_t(kK0short), v0.eta(), Double_t(v0.mK0Short()));
844-
registry.fill(HIST("hv0mass"), cent, Double_t(kLambda), v0.eta(), Double_t(v0.mLambda()));
845-
registry.fill(HIST("hv0mass"), cent, Double_t(kAntilambda), v0.eta(), Double_t(v0.mAntiLambda()));
843+
registry.fill(HIST("hv0mass"), cent, static_cast<Double_t>(kK0short), v0.eta(), static_cast<Double_t>(v0.mK0Short()));
844+
registry.fill(HIST("hv0mass"), cent, static_cast<Double_t>(kLambda), v0.eta(), static_cast<Double_t>(v0.mLambda()));
845+
registry.fill(HIST("hv0mass"), cent, static_cast<Double_t>(kAntilambda), v0.eta(), static_cast<Double_t>(v0.mAntiLambda()));
846846
}
847847
}
848848
}

‎PWGMM/Mult/Tasks/dndeta-mft.cxx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,8 @@ struct PseudorapidityDensityMFT {
362362

363363
expressions::Filter trackSelectionCentral =
364364
((aod::track::trackCutFlag & trackSelectionITS) == trackSelectionITS) &&
365-
ifnode((aod::track::v001::detectorMap & (uint8_t)o2::aod::track::TPC) ==
366-
(uint8_t)o2::aod::track::TPC,
365+
ifnode((aod::track::v001::detectorMap & static_cast<uint8_t>(o2::aod::track::TPC)) ==
366+
static_cast<uint8_t>(o2::aod::track::TPC),
367367
(aod::track::trackCutFlag & trackSelectionTPC) ==
368368
trackSelectionTPC,
369369
true) &&
@@ -552,8 +552,8 @@ struct PseudorapidityDensityMFT {
552552
using Particles = soa::Filtered<aod::McParticles>;
553553
expressions::Filter primaries =
554554
(aod::mcparticle::flags &
555-
(uint8_t)o2::aod::mcparticle::enums::PhysicalPrimary) ==
556-
(uint8_t)o2::aod::mcparticle::enums::PhysicalPrimary;
555+
static_cast<uint8_t>(o2::aod::mcparticle::enums::PhysicalPrimary)) ==
556+
static_cast<uint8_t>(o2::aod::mcparticle::enums::PhysicalPrimary);
557557
Partition<Particles> mcSample = nabs(aod::mcparticle::eta) < 1.1f;
558558
Partition<Particles> mcSampleCentral =
559559
nabs(aod::mcparticle::eta) < estimatorEta;

0 commit comments

Comments
 (0)