Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PWGLF: Fix compilation warnings: unused-parameter #5654

Merged
merged 2 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
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
36 changes: 18 additions & 18 deletions PWGLF/DataModel/LFNucleiTables.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ DECLARE_SOA_COLUMN(RunNumber, runNumber, int);
DECLARE_SOA_COLUMN(CentFV0M, centFV0M, float);
DECLARE_SOA_COLUMN(CentFT0M, centFT0M, float);
DECLARE_SOA_DYNAMIC_COLUMN(Selection_Bit, selection_bit, //! Dummy
[](o2::aod::evsel::EventSelectionFlags v) -> bool { return true; });
[](o2::aod::evsel::EventSelectionFlags /*v*/) -> bool { return true; });
} // namespace fullEvent
DECLARE_SOA_TABLE(LfNuclEvents, "AOD", "LFNUCLEvent",
o2::soa::Index<>,
Expand Down Expand Up @@ -113,39 +113,39 @@ DECLARE_SOA_COLUMN(GetProcess, getProcess, int);
namespace dummy
{
DECLARE_SOA_DYNAMIC_COLUMN(TPCNSigmaPi, tpcNSigmaPi,
[](bool b) -> float { return 0.f; });
[](bool /*b*/) -> float { return 0.f; });
DECLARE_SOA_DYNAMIC_COLUMN(TPCNSigmaKa, tpcNSigmaKa,
[](bool b) -> float { return 0.f; });
[](bool /*b*/) -> float { return 0.f; });
DECLARE_SOA_DYNAMIC_COLUMN(TPCNSigmaPr, tpcNSigmaPr,
[](bool b) -> float { return 0.f; });
[](bool /*b*/) -> float { return 0.f; });
DECLARE_SOA_DYNAMIC_COLUMN(TPCNSigmaTr, tpcNSigmaTr,
[](bool b) -> float { return 0.f; });
[](bool /*b*/) -> float { return 0.f; });
DECLARE_SOA_DYNAMIC_COLUMN(TPCNSigmaAl, tpcNSigmaAl,
[](bool b) -> float { return 0.f; });
[](bool /*b*/) -> float { return 0.f; });
DECLARE_SOA_DYNAMIC_COLUMN(TOFNSigmaPi, tofNSigmaPi,
[](bool b) -> float { return 0.f; });
[](bool /*b*/) -> float { return 0.f; });
DECLARE_SOA_DYNAMIC_COLUMN(TOFNSigmaKa, tofNSigmaKa,
[](bool b) -> float { return 0.f; });
[](bool /*b*/) -> float { return 0.f; });
DECLARE_SOA_DYNAMIC_COLUMN(TOFNSigmaPr, tofNSigmaPr,
[](bool b) -> float { return 0.f; });
[](bool /*b*/) -> float { return 0.f; });
DECLARE_SOA_DYNAMIC_COLUMN(TOFNSigmaTr, tofNSigmaTr,
[](bool b) -> float { return 0.f; });
[](bool /*b*/) -> float { return 0.f; });
DECLARE_SOA_DYNAMIC_COLUMN(TOFNSigmaAl, tofNSigmaAl,
[](bool b) -> float { return 0.f; });
[](bool /*b*/) -> float { return 0.f; });
DECLARE_SOA_DYNAMIC_COLUMN(TPCExpSignalDiffPr, tpcExpSignalDiffPr,
[](bool b) -> float { return 0.f; });
[](bool /*b*/) -> float { return 0.f; });
DECLARE_SOA_DYNAMIC_COLUMN(TPCExpSignalDiffDe, tpcExpSignalDiffDe,
[](bool b) -> float { return 0.f; });
[](bool /*b*/) -> float { return 0.f; });
DECLARE_SOA_DYNAMIC_COLUMN(TPCExpSignalDiffHe, tpcExpSignalDiffHe,
[](bool b) -> float { return 0.f; });
[](bool /*b*/) -> float { return 0.f; });
DECLARE_SOA_DYNAMIC_COLUMN(TOFExpSignalDiffPr, tofExpSignalDiffPr,
[](bool b) -> float { return 0.f; });
[](bool /*b*/) -> float { return 0.f; });
DECLARE_SOA_DYNAMIC_COLUMN(TOFExpSignalDiffDe, tofExpSignalDiffDe,
[](bool b) -> float { return 0.f; });
[](bool /*b*/) -> float { return 0.f; });
DECLARE_SOA_DYNAMIC_COLUMN(TOFExpSignalDiffHe, tofExpSignalDiffHe,
[](bool b) -> float { return 0.f; });
[](bool /*b*/) -> float { return 0.f; });
DECLARE_SOA_DYNAMIC_COLUMN(TOFExpMom, tofExpMom,
[](bool b) -> float { return 0.f; });
[](bool /*b*/) -> float { return 0.f; });
} // namespace dummy

/*
Expand Down
42 changes: 21 additions & 21 deletions PWGLF/DataModel/spectraTOF.h
Original file line number Diff line number Diff line change
Expand Up @@ -315,29 +315,29 @@ DECLARE_SOA_COLUMN(CentFT0M, centFT0M, float);
DECLARE_SOA_COLUMN(Sel8, sel8, bool);
DECLARE_SOA_COLUMN(MultNTracksPVeta1, multNTracksPVeta1, int);
DECLARE_SOA_DYNAMIC_COLUMN(CentFV0A, centFV0A, //! Dummy
[](bool v) -> float { return 0.f; });
[](bool /*v*/) -> float { return 0.f; });
DECLARE_SOA_DYNAMIC_COLUMN(CentFT0A, centFT0A, //! Dummy
[](bool v) -> float { return 0.f; });
[](bool /*v*/) -> float { return 0.f; });
DECLARE_SOA_DYNAMIC_COLUMN(CentFT0C, centFT0C, //! Dummy
[](bool v) -> float { return 0.f; });
[](bool /*v*/) -> float { return 0.f; });
DECLARE_SOA_DYNAMIC_COLUMN(MultZeqFV0A, multZeqFV0A, //! Dummy
[](bool v) -> float { return 0.f; });
[](bool /*v*/) -> float { return 0.f; });
DECLARE_SOA_DYNAMIC_COLUMN(MultZeqFT0A, multZeqFT0A, //! Dummy
[](bool v) -> float { return 0.f; });
[](bool /*v*/) -> float { return 0.f; });
DECLARE_SOA_DYNAMIC_COLUMN(MultZeqFT0C, multZeqFT0C, //! Dummy
[](bool v) -> float { return 0.f; });
[](bool /*v*/) -> float { return 0.f; });
DECLARE_SOA_DYNAMIC_COLUMN(MultZeqFDDA, multZeqFDDA, //! Dummy
[](bool v) -> float { return 0.f; });
[](bool /*v*/) -> float { return 0.f; });
DECLARE_SOA_DYNAMIC_COLUMN(MultZeqFDDC, multZeqFDDC, //! Dummy
[](bool v) -> float { return 0.f; });
[](bool /*v*/) -> float { return 0.f; });
DECLARE_SOA_DYNAMIC_COLUMN(MultZeqNTracksPV, multZeqNTracksPV, //! Dummy
[](bool v) -> float { return 0.f; });
[](bool /*v*/) -> float { return 0.f; });
DECLARE_SOA_DYNAMIC_COLUMN(MultTracklets, multTracklets, //! Dummy
[](bool v) -> float { return 0.f; });
[](bool /*v*/) -> float { return 0.f; });
DECLARE_SOA_DYNAMIC_COLUMN(MultTPC, multTPC, //! Dummy
[](bool v) -> float { return 0.f; });
[](bool /*v*/) -> float { return 0.f; });
DECLARE_SOA_DYNAMIC_COLUMN(SelectionBit, selection_bit, //! Dummy
[](aod::evsel::EventSelectionFlags v) -> bool { return true; });
[](aod::evsel::EventSelectionFlags /*v*/) -> bool { return true; });

// Track info
DECLARE_SOA_INDEX_COLUMN(Collision, collision); //! Index to the collision
Expand Down Expand Up @@ -378,19 +378,19 @@ DECLARE_SOA_DYNAMIC_COLUMN(DCAz, dcaZ, //! Unpacked dcaz
DECLARE_SOA_DYNAMIC_COLUMN(Pt, pt, //! Absolute value of signed pT
[](float signedPt) -> float { return std::abs(signedPt); });
DECLARE_SOA_DYNAMIC_COLUMN(HasITS, hasITS, //! Dummy
[](float v) -> bool { return true; });
[](float /*v*/) -> bool { return true; });
DECLARE_SOA_DYNAMIC_COLUMN(HasTPC, hasTPC, //! Dummy
[](float v) -> bool { return true; });
[](float /*v*/) -> bool { return true; });
DECLARE_SOA_DYNAMIC_COLUMN(HasTOF, hasTOF, //! Flag to check if track has a TOF measurement
[](float tofSignal) -> bool { return tofSignal > 0; });
DECLARE_SOA_DYNAMIC_COLUMN(TRDSignal, trdSignal, //! Dummy
[](float v) -> float { return 0.f; });
[](float /*v*/) -> float { return 0.f; });
DECLARE_SOA_DYNAMIC_COLUMN(P, p, [](float signedpt, float eta) -> float { return std::abs(signedpt) * cosh(eta); });
DECLARE_SOA_DYNAMIC_COLUMN(TrackType, trackType, [](float v) -> uint8_t { return o2::aod::track::TrackTypeEnum::Track; });
DECLARE_SOA_DYNAMIC_COLUMN(TrackType, trackType, [](float /*v*/) -> uint8_t { return o2::aod::track::TrackTypeEnum::Track; });
DECLARE_SOA_COLUMN(IsGlobalTrack, isGlobalTrack, bool); // if a track passed the isGlobalTrack requirement
DECLARE_SOA_COLUMN(IsGlobalTrackWoDCA, isGlobalTrackWoDCA, bool); // if a track passed the isGlobalTrackWoDCA requirement
DECLARE_SOA_DYNAMIC_COLUMN(Flags, flags, [](float v) -> uint32_t { return 0; }); // Dummy
DECLARE_SOA_DYNAMIC_COLUMN(TRDPattern, trdPattern, [](float v) -> uint8_t { return 0; }); // Dummy
DECLARE_SOA_DYNAMIC_COLUMN(Flags, flags, [](float /*v*/) -> uint32_t { return 0; }); // Dummy
DECLARE_SOA_DYNAMIC_COLUMN(TRDPattern, trdPattern, [](float /*v*/) -> uint8_t { return 0; }); // Dummy
DECLARE_SOA_DYNAMIC_COLUMN(Rapidity, rapidity, //! Track rapidity, computed under the mass assumption given as input
[](float signedPt, float eta, float mass) -> float {
const auto pt = std::abs(signedPt);
Expand All @@ -399,9 +399,9 @@ DECLARE_SOA_DYNAMIC_COLUMN(Rapidity, rapidity,
const auto energy = sqrt(p * p + mass * mass);
return 0.5f * log((energy + pz) / (energy - pz));
});
DECLARE_SOA_DYNAMIC_COLUMN(IsInAcceptanceTrack, isInAcceptanceTrack, [](float v) -> bool { return false; }); // Dummy
DECLARE_SOA_DYNAMIC_COLUMN(IsQualityTrackITS, isQualityTrackITS, [](float v) -> bool { return false; }); // Dummy
DECLARE_SOA_DYNAMIC_COLUMN(IsQualityTrackTPC, isQualityTrackTPC, [](float v) -> bool { return false; }); // Dummy
DECLARE_SOA_DYNAMIC_COLUMN(IsInAcceptanceTrack, isInAcceptanceTrack, [](float /*v*/) -> bool { return false; }); // Dummy
DECLARE_SOA_DYNAMIC_COLUMN(IsQualityTrackITS, isQualityTrackITS, [](float /*v*/) -> bool { return false; }); // Dummy
DECLARE_SOA_DYNAMIC_COLUMN(IsQualityTrackTPC, isQualityTrackTPC, [](float /*v*/) -> bool { return false; }); // Dummy

} // namespace spectra

Expand Down
4 changes: 2 additions & 2 deletions PWGLF/TableProducer/Nuspex/LFTreeCreatorNuclei.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ struct LfTreeCreatorNuclei {
aod::pidTPCLfFullAl, aod::pidTOFFullAl>;

template <bool isMC, typename TrackType, typename CollisionType>
bool checkQuality(CollisionType const& collision, TrackType const& tracks)
bool checkQuality(CollisionType const& /*collision*/, TrackType const& tracks)
{
bool out = kFALSE;
for (auto& track : tracks) {
Expand Down Expand Up @@ -359,7 +359,7 @@ struct LfTreeCreatorNuclei {

void processMC(soa::Filtered<soa::Join<EventCandidates, aod::McCollisionLabels>> const& collisions,
soa::Filtered<soa::Join<TrackCandidates, aod::McTrackLabels>> const& tracks,
aod::BCs const&, aod::McCollisions const& mcCollisions, aod::McParticles const& mcParticles)
aod::BCs const&, aod::McCollisions const&, aod::McParticles const&)
{
for (const auto& collision : collisions) {

Expand Down
8 changes: 4 additions & 4 deletions PWGLF/TableProducer/Nuspex/decay3bodybuilder.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ struct decay3bodyBuilder {
o2::base::MatLayerCylSet* lut = nullptr;
o2::vertexing::DCAFitterN<3> fitter3body;

void init(InitContext& context)
void init(InitContext&)
{
mRunNumber = 0;
d_bz = 0;
Expand Down Expand Up @@ -193,7 +193,7 @@ struct decay3bodyBuilder {
//------------------------------------------------------------------
// 3body candidate builder
template <class TTrackClass, typename TCollisionTable, typename TTrackTable>
void buildVtx3BodyDataTable(TCollisionTable const& collision, TTrackTable const& tracks, aod::Decay3Bodys const& decay3bodys, int bachelorcharge = 1)
void buildVtx3BodyDataTable(TCollisionTable const& collision, TTrackTable const& /*tracks*/, aod::Decay3Bodys const& decay3bodys, int bachelorcharge = 1)
{

for (auto& vtx3body : decay3bodys) {
Expand Down Expand Up @@ -330,13 +330,13 @@ struct decay3bodyLabelBuilder {

Configurable<float> TpcPidNsigmaCut{"TpcPidNsigmaCut", 5, "TpcPidNsigmaCut"};

void processDoNotBuildLabels(aod::Collisions::iterator const& collision)
void processDoNotBuildLabels(aod::Collisions::iterator const&)
{
// dummy process function - should not be required in the future
}
PROCESS_SWITCH(decay3bodyLabelBuilder, processDoNotBuildLabels, "Do not produce MC label tables", true);

void processBuildLabels(aod::Decay3BodysLinked const& decay3bodys, aod::Vtx3BodyDatas const& vtx3bodydatas, MCLabeledTracksIU const&, aod::McParticles const& particlesMC)
void processBuildLabels(aod::Decay3BodysLinked const& decay3bodys, aod::Vtx3BodyDatas const& vtx3bodydatas, MCLabeledTracksIU const&, aod::McParticles const&)
{
std::vector<int> lIndices;
lIndices.reserve(vtx3bodydatas.size());
Expand Down
8 changes: 4 additions & 4 deletions PWGLF/TableProducer/Nuspex/hyhe4builder.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ struct hyhefourbuilder {
// Define o2 fitter, 3-prong, active memory (no need to redefine per event)
o2::vertexing::DCAFitterN<3> fitter;

void init(InitContext& context)
void init(InitContext&)
{
const AxisSpec axisMassHyHe4{1000, 3.5f, 4.5f, "Hyperhelium4 Mass Distribution (GeV/c^{2})"};
const AxisSpec axisNCandidates{100, 0.0f, 100.0f, "Number of 3-body candidates"};
Expand Down Expand Up @@ -400,7 +400,7 @@ struct hyHe4Preselector {
// tpc quality pre-selection
Configurable<int> dTPCNCrossedRows{"dTPCNCrossedRows", 50, "Minimum TPC crossed rows"};

void init(InitContext& context)
void init(InitContext&)
{
const AxisSpec hEventCounter{1, 0.0f, 1.0f, "Number of events"};
histos.add("hNEvents", "hNEvents", kTH1F, {hEventCounter});
Expand Down Expand Up @@ -470,7 +470,7 @@ struct hyHe4Preselector {
}
//*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*
/// This process function ensures that all 3 body candidates are built. It will simply tag everything as true.
void processBuildAll(aod::Collisions const& collisions, aod::Decay3Bodys const& d3bodys, aod::TracksExtra const&)
void processBuildAll(aod::Collisions const&, aod::Decay3Bodys const& d3bodys, aod::TracksExtra const&)
{
// int64_t eventCounter = 0;
for (const auto& d3body : d3bodys) {
Expand All @@ -483,7 +483,7 @@ struct hyHe4Preselector {
PROCESS_SWITCH(hyHe4Preselector, processBuildAll, "Switch to build all V0s", false);

//*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*
void processBuildMCAssociated(aod::Collisions const& collisions, aod::Decay3Bodys const& d3bodys, LabeledTracksExtra const&, aod::McParticles const& particlesMC)
void processBuildMCAssociated(aod::Collisions const&, aod::Decay3Bodys const& d3bodys, LabeledTracksExtra const&, aod::McParticles const&)
{
for (const auto& d3body : d3bodys) {
bool lIsInteresting = false;
Expand Down
4 changes: 2 additions & 2 deletions PWGLF/TableProducer/Nuspex/hyperKinkRecoTask.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ struct hyperKinkRecoTask {
return pools;
}

void fillCandidateData(CollisionsFull const& collisions, TracksFull const& tracks, o2::aod::AmbiguousTracks const& ambiTracks, aod::BCsWithTimestamps const& bcWtmp, std::array<std::vector<TrackCand>, 4> trackPool)
void fillCandidateData(CollisionsFull const& collisions, TracksFull const& tracks, o2::aod::AmbiguousTracks const&, aod::BCsWithTimestamps const&, std::array<std::vector<TrackCand>, 4> trackPool)
{
gsl::span<std::vector<TrackCand>> hyperPool{trackPool.data(), 2};
gsl::span<std::vector<TrackCand>> tritPool{trackPool.data() + 2, 2};
Expand Down Expand Up @@ -579,7 +579,7 @@ struct hyperKinkRecoTask {
}
}

void fillMCinfo(aod::McTrackLabels const& trackLabels, aod::McParticles const& particlesMC)
void fillMCinfo(aod::McTrackLabels const& trackLabels, aod::McParticles const&)
{

for (auto& kinkCand : mKinkCandidates) {
Expand Down
2 changes: 1 addition & 1 deletion PWGLF/TableProducer/Nuspex/hyperRecoTask.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ struct hyperRecoTask {
}
}

void fillMCinfo(aod::McTrackLabels const& trackLabels, aod::McParticles const& particlesMC)
void fillMCinfo(aod::McTrackLabels const& trackLabels, aod::McParticles const&)
{
for (auto& hypCand : hyperCandidates) {
auto mcLabPos = trackLabels.rawIteratorAt(hypCand.posTrackID);
Expand Down
18 changes: 9 additions & 9 deletions PWGLF/TableProducer/Nuspex/hypertriton3bodyfinder.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ struct trackprefilter {
Produces<aod::V0GoodTracks> v0GoodTracks;

// Fix: Add PID and pt cuts to tracks
void processDefault(aod::Collision const& collision,
void processDefault(aod::Collision const& /*collision*/,
FullTracksExtIU const& tracks)
{
for (auto& t0 : tracks) {
Expand Down Expand Up @@ -155,7 +155,7 @@ struct trackprefilter {
// process function for MC d3body check
// void processCheck(aod::Collision const& collision, aod::Decay3Bodys const& decay3bodys,
void processCheck(aod::Decay3Bodys const& decay3bodys,
MCLabeledTracksIU const& tracks, aod::McParticles const& particlesMC)
MCLabeledTracksIU const& /*tracks*/, aod::McParticles const& /*particlesMC*/)
{
for (auto& d3body : decay3bodys) {
registry.fill(HIST("h3bodyCounter"), 0.5);
Expand Down Expand Up @@ -368,7 +368,7 @@ struct hypertriton3bodyFinder {
o2::vertexing::DCAFitterN<2> fitter;
o2::vertexing::DCAFitterN<3> fitter3body;

void init(InitContext& context)
void init(InitContext&)
{
resetHistos();
mRunNumber = 0;
Expand Down Expand Up @@ -483,7 +483,7 @@ struct hypertriton3bodyFinder {
//------------------------------------------------------------------
// Check the info of good tracks
template <class TTrackClass, typename TGoodTrackTable>
void CheckGoodTracks(TGoodTrackTable const& dGoodtracks, aod::McParticles const& particlesMC)
void CheckGoodTracks(TGoodTrackTable const& dGoodtracks, aod::McParticles const& /*particlesMC*/)
{
for (auto& goodtrackid : dGoodtracks) {
auto goodtrack = goodtrackid.template goodTrack_as<TTrackClass>();
Expand Down Expand Up @@ -805,7 +805,7 @@ struct hypertriton3bodyFinder {
//------------------------------------------------------------------
// MC virtual lambda check
template <class TTrackClass, typename TCollisionTable, typename TV0DataTable>
void VirtualLambdaCheck(TCollisionTable const& dCollision, TV0DataTable const& fullV0s, int bin)
void VirtualLambdaCheck(TCollisionTable const& /*dCollision*/, TV0DataTable const& fullV0s, int bin)
{
for (auto& v0 : fullV0s) {
statisticsRegistry.virtLambdastats[bin]++;
Expand Down Expand Up @@ -940,13 +940,13 @@ struct hypertriton3bodyLabelBuilder {

Configurable<float> TpcPidNsigmaCut{"TpcPidNsigmaCut", 5, "TpcPidNsigmaCut"};

void processDoNotBuildLabels(aod::Collisions::iterator const& collision)
void processDoNotBuildLabels(aod::Collisions::iterator const&)
{
// dummy process function - should not be required in the future
}
PROCESS_SWITCH(hypertriton3bodyLabelBuilder, processDoNotBuildLabels, "Do not produce MC label tables", true);

void processBuildLabels(aod::Vtx3BodyDatas const& vtx3bodydatas, MCLabeledTracksIU const&, aod::McParticles const& particlesMC)
void processBuildLabels(aod::Vtx3BodyDatas const& vtx3bodydatas, MCLabeledTracksIU const&, aod::McParticles const& /*particlesMC*/)
{
std::vector<int> lIndices;
lIndices.reserve(vtx3bodydatas.size());
Expand Down Expand Up @@ -1065,13 +1065,13 @@ struct hypertriton3bodyComparewithDecay3body {
}
};

void processDoNotCompare(aod::Collisions::iterator const& collision)
void processDoNotCompare(aod::Collisions::iterator const&)
{
// dummy process function - should not be required in the future
}
PROCESS_SWITCH(hypertriton3bodyComparewithDecay3body, processDoNotCompare, "Do not do comparison", true);

void processDoComparison(aod::Decay3Bodys const& decay3bodytable, soa::Join<aod::Vtx3BodyDatas, aod::McVtx3BodyLabels> const& vtx3bodydatas, MCLabeledTracksIU const&, aod::McParticles const& particlesMC)
void processDoComparison(aod::Decay3Bodys const& decay3bodytable, soa::Join<aod::Vtx3BodyDatas, aod::McVtx3BodyLabels> const& vtx3bodydatas, MCLabeledTracksIU const&, aod::McParticles const& /*particlesMC*/)
{
std::vector<Indexdaughters> set_pair;
for (auto d3body : decay3bodytable) {
Expand Down
Loading
Loading