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
12 changes: 4 additions & 8 deletions PWGLF/Tasks/Nuspex/spectraTOF.cxx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.

Check failure on line 1 in PWGLF/Tasks/Nuspex/spectraTOF.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/workflow-file]

Name of a workflow file must match the name of the main struct in it (without the PWG prefix). (Class implementation files should be in "Core" directories.)
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
Expand Down Expand Up @@ -265,7 +265,7 @@
LOG(info) << "\tminITSnClusters=" << minITSnClusters.value;
LOG(info) << "\tminTPCNClsFound=" << minTPCNClsFound.value;
LOG(info) << "\tmaxChi2PerClusterITS=" << maxChi2PerClusterITS.value;
LOG(info) << "\tmaxDcaZ=" << maxDcaZ;
LOG(info) << "\tmaxDcaZ=" << maxDcaZ.value;
LOG(info) << "\tmakeTHnSparseChoice=" << makeTHnSparseChoice.value;

customTrackCuts = getGlobalTrackSelectionRun3ITSMatch(itsPattern.value);
Expand All @@ -280,7 +280,7 @@
customTrackCuts.SetMinNClustersTPC(minTPCNClsFound.value);
customTrackCuts.SetMinNCrossedRowsOverFindableClustersTPC(minNCrossedRowsOverFindableClustersTPC.value);
customTrackCuts.SetMaxDcaXYPtDep([](float /*pt*/) { return 10000.f; }); // No DCAxy cut will be used, this is done via the member function of the task
customTrackCuts.SetMaxDcaZ(maxDcaZ);
customTrackCuts.SetMaxDcaZ(maxDcaZ.value);
customTrackCuts.print();
}
// Histograms
Expand Down Expand Up @@ -1532,7 +1532,7 @@
continue;
}
// trackwoCut++;
if (std::abs(track.dcaXY()) > 0.05) { // Skipping tracks that don't pass the standard cuts

Check failure on line 1535 in PWGLF/Tasks/Nuspex/spectraTOF.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.
return;
}

Expand Down Expand Up @@ -1888,11 +1888,7 @@
}
break;
case MultCodes::kCentralityFT0C: // Centrality FT0C
if constexpr (!isMC) {
return collision.centFT0C();
} else {
return 50.f; // Not implemented yet
}
return collision.centFT0C();
break;
case MultCodes::kCentralityFT0M: // Centrality FT0M
return collision.centFT0M();
Expand All @@ -1903,7 +1899,7 @@
}
}

using GenMCCollisions = soa::Join<aod::McCollisions, aod::McCentFT0Ms, aod::MultsExtraMC>;
using GenMCCollisions = soa::Join<aod::McCollisions, aod::McCentFT0Ms, aod::McCentFT0Cs, aod::MultsExtraMC>;
float getMultiplicityMC(const GenMCCollisions::iterator& collision) { return getMultiplicity<GenMCCollisions::iterator, true>(collision); }

template <std::size_t id>
Expand Down Expand Up @@ -2662,7 +2658,7 @@
continue;
}
}
if (evselOptions.cfgINELCut.value == 2) {

Check failure on line 2661 in PWGLF/Tasks/Nuspex/spectraTOF.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 (!o2::pwglf::isINELgt1mc(particlesInCollision, pdgDB)) {
continue;
}
Expand Down
Loading