Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PWGCF/GenericFramework/Tasks/flowGenericFramework.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@
return -1;

// Select particle with the lowest nsigma
for (int i = 0; i < 3; ++i) {

Check warning on line 425 in PWGCF/GenericFramework/Tasks/flowGenericFramework.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
if (std::abs(nSigmaToUse[i]) < nsigma) {
pid = i;
nsigma = std::abs(nSigmaToUse[i]);
Expand Down Expand Up @@ -497,7 +497,7 @@
if (collision.numContrib() > 1) {
vtxz = collision.posZ();
float zRes = std::sqrt(collision.covZZ());
if (zRes > 0.25 && collision.numContrib() < 20)

Check warning on line 500 in PWGCF/GenericFramework/Tasks/flowGenericFramework.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
vtxz = -999;
}
// auto multV0A = collision.multFV0A();
Expand Down Expand Up @@ -854,7 +854,7 @@
}

Filter collisionFilter = nabs(aod::collision::posZ) < cfgVtxZ;
Filter trackFilter = nabs(aod::track::eta) < cfgEta && aod::track::pt > cfgPtmin&& aod::track::pt < cfgPtmax && ((requireGlobalTrackInFilter()) || (aod::track::isGlobalTrackSDD == (uint8_t)true)) && nabs(aod::track::dcaXY) < cfgDCAxy&& nabs(aod::track::dcaZ) < cfgDCAz;
Filter trackFilter = nabs(aod::track::eta) < cfgEta && aod::track::pt > cfgPtmin&& aod::track::pt < cfgPtmax && ((requireGlobalTrackInFilter()) || (aod::track::isGlobalTrackSDD == (uint8_t) true)) && nabs(aod::track::dcaXY) < cfgDCAxy&& nabs(aod::track::dcaZ) < cfgDCAz;
using GFWTracks = soa::Filtered<soa::Join<aod::Tracks, aod::TracksExtra, aod::TrackSelection, aod::TracksDCA, aod::pidTOFPi, aod::pidTPCPi, aod::pidTOFKa, aod::pidTPCKa, aod::pidTOFPr, aod::pidTPCPr>>;

void processData(soa::Filtered<soa::Join<aod::Collisions, aod::EvSels, aod::Mults, aod::CentFT0Cs>>::iterator const& collision, aod::BCsWithTimestamps const&, GFWTracks const& tracks)
Expand Down Expand Up @@ -886,7 +886,7 @@
registry.fill(HIST("eventQA/eventSel"), 1.5);
if (cfgRunByRun)
th1sList[run][hEventSel]->Fill(1.5);
if (cfgOccupancySelection != -999) {

Check warning on line 889 in PWGCF/GenericFramework/Tasks/flowGenericFramework.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
int occupancy = collision.trackOccupancyInTimeRange();
if (occupancy < 0 || occupancy > cfgOccupancySelection)
return;
Expand All @@ -901,7 +901,7 @@
return;
if (cfgFillQA)
fillEventQA<kAfter>(collision, tracks);
auto field = (cfgMagField == 99999) ? getMagneticField(bc.timestamp()) : cfgMagField;

Check warning on line 904 in PWGCF/GenericFramework/Tasks/flowGenericFramework.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
processCollision<kReco>(collision, tracks, centrality, field, run);
}
PROCESS_SWITCH(FlowGenericFramework, processData, "Process analysis for non-derived data", true);
Expand All @@ -927,7 +927,7 @@

if (!cfgFillWeights)
loadCorrections(bc);
auto field = (cfgMagField == 99999) ? getMagneticField(bc.timestamp()) : cfgMagField;

Check warning on line 930 in PWGCF/GenericFramework/Tasks/flowGenericFramework.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
processCollision<kReco>(collision, tracks, centrality, field, run);
}
PROCESS_SWITCH(FlowGenericFramework, processMCReco, "Process analysis for MC reconstructed events", false);
Expand Down Expand Up @@ -959,7 +959,7 @@
const auto centrality = collision.centRun2V0M();
if (!cfgFillWeights)
loadCorrections(bc);
auto field = (cfgMagField == 99999) ? getMagneticField(bc.timestamp()) : cfgMagField;

Check warning on line 962 in PWGCF/GenericFramework/Tasks/flowGenericFramework.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
processCollision<kReco>(collision, tracks, centrality, field, run);
}
PROCESS_SWITCH(FlowGenericFramework, processRun2, "Process analysis for Run 2 converted data", false);
Expand Down
Loading