Skip to content

Commit a0332c7

Browse files
authored
[PWGJE] Jet finding: Pass input particles as const (#18424)
1 parent 5fa37b5 commit a0332c7

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎PWGJE/Core/JetFinder.cxx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void JetFinder::setParams()
6060
/// \param inputParticles vector of input particles/tracks
6161
/// \param jets veector of jets to be filled
6262
/// \return ClusterSequenceArea object needed to access constituents
63-
fastjet::ClusterSequenceArea JetFinder::findJets(std::vector<fastjet::PseudoJet>& inputParticles, std::vector<fastjet::PseudoJet>& jets) // ideally find a way of passing the cluster sequence as a reeference
63+
fastjet::ClusterSequenceArea JetFinder::findJets(std::vector<fastjet::PseudoJet> const& inputParticles, std::vector<fastjet::PseudoJet>& jets) // ideally find a way of passing the cluster sequence as a reference
6464
{
6565
setParams();
6666
jets.clear();

‎PWGJE/Core/JetFinder.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class JetFinder
4646
/// \param inputParticles vector of input particles/tracks
4747
/// \param jets veector of jets to be filled
4848
/// \return ClusterSequenceArea object needed to access constituents
49-
// fastjet::ClusterSequenceArea findJets(std::vector<fastjet::PseudoJet> &inputParticles, std::vector<fastjet::PseudoJet> &jets);
49+
// fastjet::ClusterSequenceArea findJets(std::vector<fastjet::PseudoJet> const& inputParticles, std::vector<fastjet::PseudoJet>& jets);
5050

5151
float phiMin = -1. * M_PI;
5252
float phiMax = 2. * M_PI;
@@ -92,7 +92,7 @@ class JetFinder
9292
/// \param inputParticles vector of input particles/tracks
9393
/// \param jets veector of jets to be filled
9494
/// \return ClusterSequenceArea object needed to access constituents
95-
fastjet::ClusterSequenceArea findJets(std::vector<fastjet::PseudoJet>& inputParticles, std::vector<fastjet::PseudoJet>& jets); // ideally find a way of passing the cluster sequence as a reeference
95+
fastjet::ClusterSequenceArea findJets(std::vector<fastjet::PseudoJet> const& inputParticles, std::vector<fastjet::PseudoJet>& jets); // ideally find a way of passing the cluster sequence as a reference
9696

9797
private:
9898
ClassDefNV(JetFinder, 1);

‎PWGJE/Core/JetFindingUtilities.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ bool analyseV0s(std::vector<fastjet::PseudoJet>& inputParticles, T const& v0s, f
284284
* @param doHFJetFinding set whether only jets containing a HF candidate are saved
285285
*/
286286
template <typename T, typename U, typename V>
287-
void findJets(JetFinder& jetFinder, std::vector<fastjet::PseudoJet>& inputParticles, float jetPtMin, float jetPtMax, std::vector<double> jetRadius, float jetAreaFractionMin, T const& collision, U& jetsTable, V& constituentsTable, const std::shared_ptr<THn>& thnSparseJet, bool fillThnSparse, bool doCandidateJetFinding = false)
287+
void findJets(JetFinder& jetFinder, std::vector<fastjet::PseudoJet> const& inputParticles, float jetPtMin, float jetPtMax, std::vector<double> jetRadius, float jetAreaFractionMin, T const& collision, U& jetsTable, V& constituentsTable, const std::shared_ptr<THn>& thnSparseJet, bool fillThnSparse, bool doCandidateJetFinding = false)
288288
{
289289
auto jetRValues = static_cast<std::vector<double>>(std::move(jetRadius));
290290
jetFinder.jetPtMin = jetPtMin;

0 commit comments

Comments
 (0)