@@ -36,8 +36,8 @@ namespace o2::upgrade
3636// / \param productionVertex where the particle was produced
3737// / \param o2track the address of the resulting TrackParCov
3838void 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
4949template <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
8282template <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
9696template <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