diff --git a/PWGJE/Core/JetFinder.cxx b/PWGJE/Core/JetFinder.cxx index 0434e5cfa4a..075c92bbbfe 100644 --- a/PWGJE/Core/JetFinder.cxx +++ b/PWGJE/Core/JetFinder.cxx @@ -60,7 +60,7 @@ void JetFinder::setParams() /// \param inputParticles vector of input particles/tracks /// \param jets veector of jets to be filled /// \return ClusterSequenceArea object needed to access constituents -fastjet::ClusterSequenceArea JetFinder::findJets(std::vector& inputParticles, std::vector& jets) // ideally find a way of passing the cluster sequence as a reeference +fastjet::ClusterSequenceArea JetFinder::findJets(std::vector const& inputParticles, std::vector& jets) // ideally find a way of passing the cluster sequence as a reference { setParams(); jets.clear(); diff --git a/PWGJE/Core/JetFinder.h b/PWGJE/Core/JetFinder.h index 90b9a981f6a..7f281d3de03 100644 --- a/PWGJE/Core/JetFinder.h +++ b/PWGJE/Core/JetFinder.h @@ -46,7 +46,7 @@ class JetFinder /// \param inputParticles vector of input particles/tracks /// \param jets veector of jets to be filled /// \return ClusterSequenceArea object needed to access constituents - // fastjet::ClusterSequenceArea findJets(std::vector &inputParticles, std::vector &jets); + // fastjet::ClusterSequenceArea findJets(std::vector const& inputParticles, std::vector& jets); float phiMin = -1. * M_PI; float phiMax = 2. * M_PI; @@ -92,7 +92,7 @@ class JetFinder /// \param inputParticles vector of input particles/tracks /// \param jets veector of jets to be filled /// \return ClusterSequenceArea object needed to access constituents - fastjet::ClusterSequenceArea findJets(std::vector& inputParticles, std::vector& jets); // ideally find a way of passing the cluster sequence as a reeference + fastjet::ClusterSequenceArea findJets(std::vector const& inputParticles, std::vector& jets); // ideally find a way of passing the cluster sequence as a reference private: ClassDefNV(JetFinder, 1); diff --git a/PWGJE/Core/JetFindingUtilities.h b/PWGJE/Core/JetFindingUtilities.h index bf5698e7d22..d770380e9e3 100644 --- a/PWGJE/Core/JetFindingUtilities.h +++ b/PWGJE/Core/JetFindingUtilities.h @@ -284,7 +284,7 @@ bool analyseV0s(std::vector& inputParticles, T const& v0s, f * @param doHFJetFinding set whether only jets containing a HF candidate are saved */ template -void findJets(JetFinder& jetFinder, std::vector& inputParticles, float jetPtMin, float jetPtMax, std::vector jetRadius, float jetAreaFractionMin, T const& collision, U& jetsTable, V& constituentsTable, const std::shared_ptr& thnSparseJet, bool fillThnSparse, bool doCandidateJetFinding = false) +void findJets(JetFinder& jetFinder, std::vector const& inputParticles, float jetPtMin, float jetPtMax, std::vector jetRadius, float jetAreaFractionMin, T const& collision, U& jetsTable, V& constituentsTable, const std::shared_ptr& thnSparseJet, bool fillThnSparse, bool doCandidateJetFinding = false) { auto jetRValues = static_cast>(std::move(jetRadius)); jetFinder.jetPtMin = jetPtMin;