Skip to content

Commit b9a3646

Browse files
committed
fix megalinter error
1 parent 81411da commit b9a3646

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

‎PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ struct DndetaMFTPbPb {
862862
template <typename C, bool isMC = false>
863863
float getMult(C const& collision)
864864
{
865-
float val = -999.0;
865+
float val = CInvalid;
866866
switch (gConf.multEstimator.value) {
867867
case MultE::CnoMult:
868868
return val;
@@ -887,6 +887,14 @@ struct DndetaMFTPbPb {
887887
return collision.multMCNParticlesEta08();
888888
}
889889
break;
890+
case MultE::CmultMFT:
891+
if constexpr (!isMC) {
892+
return collision.centMFT();
893+
} else {
894+
return CInvalid;
895+
// return collision.multMCMFT(); // FIXME: uncomment when MC MFT mult is in available mcCentralityModule.cxx or in aod::MultMCExtras
896+
}
897+
break;
890898
default:
891899
LOGF(fatal, "No valid multiplicity estimator: %s", gConf.multEstimator.value);
892900
return val;
@@ -3075,7 +3083,7 @@ struct DndetaMFTPbPb {
30753083
aod::McParticles const& particles)
30763084
{
30773085
LOGP(debug, "MC col {} has {} reco cols", mcCollision.globalIndex(), collisions.size());
3078-
auto multMC = CInvalid;
3086+
float multMC{};
30793087
auto perCollMCsample = mcSample->sliceByCached(aod::mcparticle::mcCollisionId, mcCollision.globalIndex(), cache);
30803088
auto multMCNParticlesEtaMFT = countPart(perCollMCsample);
30813089
if (gConf.useMultMCatMidRapidity) {

0 commit comments

Comments
 (0)