Skip to content

Commit a4f2057

Browse files
committed
More const
1 parent 39043de commit a4f2057

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

ALICE3/Core/TrackUtilities.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
#include <vector>
3030

3131
void o2::upgrade::convertTLorentzVectorToO2Track(const int charge,
32-
const TLorentzVector particle,
33-
const std::vector<double> productionVertex,
32+
const TLorentzVector& particle,
33+
const std::vector<double>& productionVertex,
3434
o2::track::TrackParCov& o2track)
3535
{
3636
std::array<float, 5> params;

ALICE3/Core/TrackUtilities.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ namespace o2::upgrade
3636
/// \param productionVertex where the particle was produced
3737
/// \param o2track the address of the resulting TrackParCov
3838
void convertTLorentzVectorToO2Track(const int charge,
39-
const TLorentzVector particle,
40-
const std::vector<double> productionVertex,
39+
const TLorentzVector& particle,
40+
const std::vector<double>& productionVertex,
4141
o2::track::TrackParCov& o2track);
4242

4343
/// Function to convert a TLorentzVector into a perfect Track
@@ -47,9 +47,9 @@ void convertTLorentzVectorToO2Track(const int charge,
4747
/// \param o2track the address of the resulting TrackParCov
4848
/// \param pdg the pdg service
4949
template <typename PdgService>
50-
void convertTLorentzVectorToO2Track(int pdgCode,
51-
TLorentzVector particle,
52-
std::vector<double> productionVertex,
50+
void convertTLorentzVectorToO2Track(const int pdgCode,
51+
const TLorentzVector& particle,
52+
const std::vector<double>& productionVertex,
5353
o2::track::TrackParCov& o2track,
5454
const PdgService& pdg)
5555
{
@@ -80,7 +80,7 @@ void convertOTFParticleToO2Track(const OTFParticle& particle,
8080
/// \param o2track the address of the resulting TrackParCov
8181
/// \param pdg the pdg service
8282
template <typename McParticleType, typename PdgService>
83-
void convertMCParticleToO2Track(McParticleType& particle,
83+
void convertMCParticleToO2Track(const McParticleType& particle,
8484
o2::track::TrackParCov& o2track,
8585
const PdgService& pdg)
8686
{
@@ -94,7 +94,7 @@ void convertMCParticleToO2Track(McParticleType& particle,
9494
/// \param o2track the address of the resulting TrackParCov
9595
/// \param pdg the pdg service
9696
template <typename McParticleType, typename PdgService>
97-
o2::track::TrackParCov convertMCParticleToO2Track(McParticleType& particle,
97+
o2::track::TrackParCov convertMCParticleToO2Track(const McParticleType& particle,
9898
const PdgService& pdg)
9999
{
100100
o2::track::TrackParCov o2track;

0 commit comments

Comments
 (0)