ATLAS Offline Software
Loading...
Searching...
No Matches
FTF::SpacePointShifter Class Reference

#include <SpacePointConversionUtils.h>

Collaboration diagram for FTF::SpacePointShifter:

Public Member Functions

 SpacePointShifter (double dx, double dy)
void operator() (TrigSiSpacePointBase &sp)

Protected Attributes

double m_shift_x
double m_shift_y

Detailed Description

Definition at line 200 of file SpacePointConversionUtils.h.

Constructor & Destructor Documentation

◆ SpacePointShifter()

FTF::SpacePointShifter::SpacePointShifter ( double dx,
double dy )
inline

Member Function Documentation

◆ operator()()

void FTF::SpacePointShifter::operator() ( TrigSiSpacePointBase & sp)
inline

Definition at line 203 of file SpacePointConversionUtils.h.

203 {
204 double xs = sp.x() - m_shift_x;
205 double ys = sp.y() - m_shift_y;
206 double Phi = atan2(ys,xs);
207 double r = std::sqrt(xs*xs+ys*ys);
208 sp.phi(Phi);
209 sp.r(r);
210 sp.x(xs);
211 sp.y(ys);
212 }
static Double_t sp
@ Phi
Definition RPCdef.h:8
int r
Definition globals.cxx:22

Member Data Documentation

◆ m_shift_x

double FTF::SpacePointShifter::m_shift_x
protected

Definition at line 214 of file SpacePointConversionUtils.h.

◆ m_shift_y

double FTF::SpacePointShifter::m_shift_y
protected

Definition at line 214 of file SpacePointConversionUtils.h.


The documentation for this class was generated from the following file: