ATLAS Offline Software
Public Member Functions | Protected Attributes | List of all members
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

Definition at line 202 of file SpacePointConversionUtils.h.

202 : m_shift_x(dx), m_shift_y(dy) {};

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  }

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:
TrigSiSpacePointBase::phi
void phi(const double phi)
Definition: TrigSiSpacePointBase.h:52
beamspotman.r
def r
Definition: beamspotman.py:676
TrigSiSpacePointBase::x
void x(const double x)
Definition: TrigSiSpacePointBase.h:54
Phi
@ Phi
Definition: RPCdef.h:8
FTF::SpacePointShifter::m_shift_x
double m_shift_x
Definition: SpacePointConversionUtils.h:214
TrigSiSpacePointBase::r
void r(const double r)
Definition: TrigSiSpacePointBase.h:51
TrigSiSpacePointBase::y
void y(const double y)
Definition: TrigSiSpacePointBase.h:55
FTF::SpacePointShifter::m_shift_y
double m_shift_y
Definition: SpacePointConversionUtils.h:214
makeTRTBarrelCans.dy
tuple dy
Definition: makeTRTBarrelCans.py:21
makeTRTBarrelCans.dx
tuple dx
Definition: makeTRTBarrelCans.py:20