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

PWGJE: Fix compilation warnings: unused-parameter #5669

Merged
merged 3 commits into from
Apr 18, 2024

Conversation

vkucera
Copy link
Collaborator

@vkucera vkucera commented Apr 17, 2024

No description provided.

@vkucera vkucera marked this pull request as ready for review April 17, 2024 13:35
@@ -115,7 +115,7 @@ struct JetTaggerHFTask {
}
PROCESS_SWITCH(JetTaggerHFTask, processMCD, "Fill tagging decision for mcd jets", false);

void processTraining(JetCollision const& collision, JetTableMCD const& mcdjets, JetTagTracksMCD const& tracks)
void processTraining(JetCollision const& /*collision*/, JetTableMCD const& /*mcdjets*/, JetTagTracksMCD const& /*tracks*/)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these can be removed fully instead of commented out

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I kept them because the function body is empty so I guess, you will need the parameters when you implement it.

@@ -78,7 +78,7 @@ struct RhoEstimatorTask {
}
PROCESS_SWITCH(RhoEstimatorTask, processChargedCollisions, "Fill rho tables for collisions using charged tracks", true);

void processD0Collisions(JetCollision const& collision, soa::Filtered<JetTracks> const& tracks, CandidatesD0Data const& candidates)
void processD0Collisions(JetCollision const& /*collision*/, soa::Filtered<JetTracks> const& tracks, CandidatesD0Data const& candidates)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these can be removed fully instead of commented out

@@ -91,7 +91,7 @@ struct RhoEstimatorTask {
}
PROCESS_SWITCH(RhoEstimatorTask, processD0Collisions, "Fill rho tables for collisions with D0 candidates", false);

void processLcCollisions(JetCollision const& collision, soa::Filtered<JetTracks> const& tracks, CandidatesLcData const& candidates)
void processLcCollisions(JetCollision const& /*collision*/, soa::Filtered<JetTracks> const& tracks, CandidatesLcData const& candidates)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these can be removed fully instead of commented out

@@ -104,7 +104,7 @@ struct RhoEstimatorTask {
}
PROCESS_SWITCH(RhoEstimatorTask, processLcCollisions, "Fill rho tables for collisions with Lc candidates", false);

void processBplusCollisions(JetCollision const& collision, soa::Filtered<JetTracks> const& tracks, CandidatesBplusData const& candidates)
void processBplusCollisions(JetCollision const& /*collision*/, soa::Filtered<JetTracks> const& tracks, CandidatesBplusData const& candidates)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these can be removed fully instead of commented out

@@ -544,7 +544,7 @@ struct JetTriggerQA {
}

template <typename JetCollection>
std::pair<std::vector<typename JetCollection::iterator>, std::vector<typename JetCollection::iterator>> fillJetQA(const JetCollection& jets, JetTracks const& tracks, selectedClusters const& clusters, std::bitset<EMCALHardwareTrigger::TRG_NTriggers> hwtrg, const std::bitset<TriggerType_t::kNTriggers>& triggerstatus)
std::pair<std::vector<typename JetCollection::iterator>, std::vector<typename JetCollection::iterator>> fillJetQA(const JetCollection& jets, JetTracks const& /*tracks*/, selectedClusters const& /*clusters*/, std::bitset<EMCALHardwareTrigger::TRG_NTriggers> /*hwtrg*/, const std::bitset<TriggerType_t::kNTriggers>& triggerstatus)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these can be removed fully instead of commented out

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure? This is not a process function.

@@ -494,7 +494,7 @@ struct JetTaggerHFQA {
}

template <typename T, typename U>
void fillHistogramJPData(T const& collision, U const& jets)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here please comment out instead of remove

@@ -512,7 +512,7 @@ struct JetTaggerHFQA {
}

template <typename T, typename U>
void fillHistogramJPMCD(T const& collision, U const& mcdjets)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here please comment out instead of remove

@@ -512,7 +512,7 @@ struct JetTaggerHFQA {
}

template <typename T, typename U>
void fillHistogramJPMCD(T const& collision, U const& mcdjets)
void fillHistogramJPMCD(T const&, U const& mcdjets)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here please comment out instead of remove

@nzardosh nzardosh self-requested a review April 18, 2024 17:19
@vkucera vkucera enabled auto-merge (squash) April 18, 2024 19:32
Copy link
Collaborator

@alibuild alibuild left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approving on behalf of @vkucera.

@vkucera vkucera merged commit 33de974 into AliceO2Group:master Apr 18, 2024
11 of 12 checks passed
@vkucera vkucera deleted the unused-PWGJE branch April 18, 2024 20:02
christianreckziegel pushed a commit to christianreckziegel/O2Physics that referenced this pull request May 2, 2024
hahassan7 pushed a commit to hahassan7/O2Physics that referenced this pull request May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants