Skip to content

Commit

Permalink
Fixing o2-linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
prchakra authored Jan 24, 2025
1 parent ab62024 commit 0ff78c8
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ struct femtoUniversePairTaskTrackTrack3DMultKtExtended {

/// Histogramming same event
if ((ContType == 1 || ContType == 2) && fillQA) {
for (auto& part : groupPartsOne) {
for (const auto& part : groupPartsOne) {
if (!IsParticleNSigma((int8_t)1, part.p(), trackCuts.getNsigmaTPC(part, o2::track::PID::Proton), trackCuts.getNsigmaTOF(part, o2::track::PID::Proton), trackCuts.getNsigmaTPC(part, o2::track::PID::Pion), trackCuts.getNsigmaTOF(part, o2::track::PID::Pion), trackCuts.getNsigmaTPC(part, o2::track::PID::Kaon), trackCuts.getNsigmaTOF(part, o2::track::PID::Kaon))) {
continue;
}
Expand All @@ -453,7 +453,7 @@ struct femtoUniversePairTaskTrackTrack3DMultKtExtended {
}

if ((ContType == 1 || ContType == 3) && fillQA) {
for (auto& part : groupPartsTwo) {
for (const auto& part : groupPartsTwo) {
if (!IsParticleNSigma((int8_t)2, part.p(), trackCuts.getNsigmaTPC(part, o2::track::PID::Proton), trackCuts.getNsigmaTOF(part, o2::track::PID::Proton), trackCuts.getNsigmaTPC(part, o2::track::PID::Pion), trackCuts.getNsigmaTOF(part, o2::track::PID::Pion), trackCuts.getNsigmaTPC(part, o2::track::PID::Kaon), trackCuts.getNsigmaTOF(part, o2::track::PID::Kaon))) {
continue;
}
Expand All @@ -464,7 +464,7 @@ struct femtoUniversePairTaskTrackTrack3DMultKtExtended {
if (ContType == 1) {

/// Now build the combinations for non-identical particle pairs
for (auto& [p1, p2] : combinations(CombinationsFullIndexPolicy(groupPartsOne, groupPartsTwo))) {
for (const auto& [p1, p2] : combinations(CombinationsFullIndexPolicy(groupPartsOne, groupPartsTwo))) {

if (!IsParticleNSigma((int8_t)1, p1.p(), trackCuts.getNsigmaTPC(p1, o2::track::PID::Proton), trackCuts.getNsigmaTOF(p1, o2::track::PID::Proton), trackCuts.getNsigmaTPC(p1, o2::track::PID::Pion), trackCuts.getNsigmaTOF(p1, o2::track::PID::Pion), trackCuts.getNsigmaTPC(p1, o2::track::PID::Kaon), trackCuts.getNsigmaTOF(p1, o2::track::PID::Kaon))) {
continue;
Expand Down Expand Up @@ -497,7 +497,7 @@ struct femtoUniversePairTaskTrackTrack3DMultKtExtended {
} else {
/// Now build the combinations for identical particles pairs
double rand;
for (auto& [p1, p2] : combinations(CombinationsStrictlyUpperIndexPolicy(groupPartsOne, groupPartsOne))) {
for (const auto& [p1, p2] : combinations(CombinationsStrictlyUpperIndexPolicy(groupPartsOne, groupPartsOne))) {

if (!IsParticleNSigma((int8_t)2, p1.p(), trackCuts.getNsigmaTPC(p1, o2::track::PID::Proton), trackCuts.getNsigmaTOF(p1, o2::track::PID::Proton), trackCuts.getNsigmaTPC(p1, o2::track::PID::Pion), trackCuts.getNsigmaTOF(p1, o2::track::PID::Pion), trackCuts.getNsigmaTPC(p1, o2::track::PID::Kaon), trackCuts.getNsigmaTOF(p1, o2::track::PID::Kaon))) {
continue;
Expand Down Expand Up @@ -645,7 +645,7 @@ struct femtoUniversePairTaskTrackTrack3DMultKtExtended {
void doMixedEvent(PartitionType groupPartsOne, PartitionType groupPartsTwo, PartType parts, float magFieldTesla, int multCol, int ContType)
{

for (auto& [p1, p2] : combinations(CombinationsFullIndexPolicy(groupPartsOne, groupPartsTwo))) {
for (const auto& [p1, p2] : combinations(CombinationsFullIndexPolicy(groupPartsOne, groupPartsTwo))) {

if (!IsParticleNSigma((int8_t)2, p1.p(), trackCuts.getNsigmaTPC(p1, o2::track::PID::Proton), trackCuts.getNsigmaTOF(p1, o2::track::PID::Proton), trackCuts.getNsigmaTPC(p1, o2::track::PID::Pion), trackCuts.getNsigmaTOF(p1, o2::track::PID::Pion), trackCuts.getNsigmaTPC(p1, o2::track::PID::Kaon), trackCuts.getNsigmaTOF(p1, o2::track::PID::Kaon))) {
continue;
Expand Down Expand Up @@ -741,7 +741,7 @@ struct femtoUniversePairTaskTrackTrack3DMultKtExtended {
{
randgen = new TRandom2(0);

for (auto& [collision1, collision2] : soa::selfCombinations(colBinningCent, ConfNEventsMix, -1, cols, cols)) {
for (const auto& [collision1, collision2] : soa::selfCombinations(colBinningCent, ConfNEventsMix, -1, cols, cols)) {

const int multiplicityCol = collision1.multV0M();
MixQaRegistry.fill(HIST("MixingQA/hMECollisionBins"), colBinningCent.getBin({collision1.posZ(), multiplicityCol}));
Expand Down Expand Up @@ -783,7 +783,7 @@ struct femtoUniversePairTaskTrackTrack3DMultKtExtended {
{
randgen = new TRandom2(0);

for (auto& [collision1, collision2] : soa::selfCombinations(colBinningCent, ConfNEventsMix, -1, cols, cols)) {
for (const auto& [collision1, collision2] : soa::selfCombinations(colBinningCent, ConfNEventsMix, -1, cols, cols)) {

const int multiplicityCol = collision1.multV0M();
MixQaRegistry.fill(HIST("MixingQA/hMECollisionBins"), colBinningCent.getBin({collision1.posZ(), multiplicityCol}));
Expand Down Expand Up @@ -825,7 +825,7 @@ struct femtoUniversePairTaskTrackTrack3DMultKtExtended {
{
randgen = new TRandom2(0);

for (auto& [collision1, collision2] : soa::selfCombinations(colBinningNtr, ConfNEventsMix, -1, cols, cols)) {
for (const auto& [collision1, collision2] : soa::selfCombinations(colBinningNtr, ConfNEventsMix, -1, cols, cols)) {

const int multiplicityCol = collision1.multNtr();
MixQaRegistry.fill(HIST("MixingQA/hMECollisionBins"), colBinningNtr.getBin({collision1.posZ(), multiplicityCol}));
Expand Down Expand Up @@ -867,7 +867,7 @@ struct femtoUniversePairTaskTrackTrack3DMultKtExtended {
{
randgen = new TRandom2(0);

for (auto& [collision1, collision2] : soa::selfCombinations(colBinningCent, ConfNEventsMix, -1, cols, cols)) {
for (const auto& [collision1, collision2] : soa::selfCombinations(colBinningCent, ConfNEventsMix, -1, cols, cols)) {

const int multiplicityCol = collision1.multNtr();
MixQaRegistry.fill(HIST("MixingQA/hMECollisionBins"), colBinningNtr.getBin({collision1.posZ(), multiplicityCol}));
Expand Down Expand Up @@ -908,4 +908,4 @@ WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
adaptAnalysisTask<femtoUniversePairTaskTrackTrack3DMultKtExtended>(cfgc),
};
return workflow;
}
}

0 comments on commit 0ff78c8

Please sign in to comment.