diff --git a/PhysicsTools/BPHNano/plugins/helper.h b/PhysicsTools/BPHNano/plugins/helper.h index ace4c05ebef..2c89507253d 100644 --- a/PhysicsTools/BPHNano/plugins/helper.h +++ b/PhysicsTools/BPHNano/plugins/helper.h @@ -87,7 +87,7 @@ inline float CosA( ROOT::Math::LorentzVector>& Bp4) { math::XYZVector vperp(dist.x(), dist.y(), 0); math::XYZVector pperp(Bp4.Px(), Bp4.Py(), 0); - return std::move(vperp.Dot(pperp) / (vperp.R() * pperp.R())); + return vperp.Dot(pperp) / (vperp.R() * pperp.R()); } inline std::pair computeDCA(const reco::TransientTrack& trackTT,