File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
DataFormats/Reconstruction/include/ReconstructionDataFormats Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,8 @@ class TrackParametrization
165165 GPUd () value_t getTgl () const ;
166166 GPUhd () value_t getQ2Pt () const ;
167167 GPUd () value_t getCharge2Pt () const ;
168+ GPUd () value_t getR2 () const ;
169+ GPUd () value_t getR () const ;
168170 GPUd () int getAbsCharge () const ;
169171 GPUd () PID getPID () const ;
170172 GPUd () void setPID (const PID pid, bool passCharge = false );
@@ -378,6 +380,20 @@ GPUdi() auto TrackParametrization<value_T>::getCharge2Pt() const -> value_t
378380 return mAbsCharge ? mP [kQ2Pt ] : 0 .f ;
379381}
380382
383+ // ____________________________________________________________
384+ template <typename value_T>
385+ GPUdi () auto TrackParametrization<value_T>::getR2() const -> value_t
386+ {
387+ return mX * mX + mP [kY ] * mP [kY ];
388+ }
389+
390+ // ____________________________________________________________
391+ template <typename value_T>
392+ GPUdi () auto TrackParametrization<value_T>::getR() const -> value_t
393+ {
394+ return gpu::CAMath::Sqrt (getR2 ());
395+ }
396+
381397// ____________________________________________________________
382398template <typename value_T>
383399GPUdi () int TrackParametrization<value_T>::getAbsCharge() const
You can’t perform that action at this time.
0 commit comments