ATLAS Offline Software
Loading...
Searching...
No Matches
ALinePar.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
7#include "GaudiKernel/SystemOfUnits.h"
8
9std::ostream& operator<<(std::ostream& ostr, const ALinePar& par) {
10 using Parameter = ALinePar::Parameter;
11 ostr<<"ALine AMDB id (name,eta,phi,job)=(";
12 ostr<<par.AmdbStation()<<",";
13 ostr<<par.AmdbEta()<<",";
14 ostr<<par.AmdbPhi()<<",";
15 ostr<<par.AmdbJob()<<"), ";
16 ostr<<"translation (S/Y,Z,T/X)= (";
17 ostr<<par.getParameter(Parameter::transS)<<",";
18 ostr<<par.getParameter(Parameter::transZ)<<",";
19 ostr<<par.getParameter(Parameter::transT)<<"), ";
20 ostr<<"rotation angle";
21 ostr<<" around S="<<par.getParameter(Parameter::rotS)<<",";
22 ostr<<" around Z="<<par.getParameter(Parameter::rotZ)<<",";
23 ostr<<" around T="<<par.getParameter(Parameter::rotT)<<" ";
24 return ostr;
25}
26void ALinePar::setParameters(float s, float z, float t, float rotS, float rotZ, float rotT) {
27 m_payload[static_cast<unsigned int>(Parameter::transS)] = s;
28 m_payload[static_cast<unsigned int>(Parameter::transZ)] = z;
29 m_payload[static_cast<unsigned int>(Parameter::transT)] = t;
30 m_payload[static_cast<unsigned int>(Parameter::rotS) ] = rotS;
31 m_payload[static_cast<unsigned int>(Parameter::rotZ) ] = rotZ;
32 m_payload[static_cast<unsigned int>(Parameter::rotT) ] = rotT;
33}
34
std::ostream & operator<<(std::ostream &ostr, const ALinePar &par)
Definition ALinePar.cxx:9
#define z
Amg::Transform3D delta() const
Returns the final transformations of the A lines.
Definition ALinePar.cxx:35
void setParameters(float s, float z, float t, float rotS, float rotZ, float rotT)
Definition ALinePar.cxx:26
std::array< float, static_cast< unsigned int >(Parameter::numPars)> m_payload
Definition ALinePar.h:52
Parameter
amdb frame (s, z, t) = chamber frame (y, z, x)
Definition ALinePar.h:23
@ rotZ
Rotation around the s-axis.
Definition ALinePar.h:28
@ transT
Translation along the z-axis.
Definition ALinePar.h:26
@ rotS
Translation along the t-axis.
Definition ALinePar.h:27
@ rotT
Rotation around the z-axis.
Definition ALinePar.h:29
@ transZ
Translation along the s-axis.
Definition ALinePar.h:25
float getParameter(const Parameter &p) const
Definition ALinePar.h:34
Amg::Transform3D getRotateX3D(double angle)
get a rotation transformation around X-axis
Amg::Transform3D getTranslateZ3D(const double Z)
: Returns a shift transformation along the z-axis
Amg::Transform3D getTranslateY3D(const double Y)
: Returns a shift transformation along the y-axis
Amg::Transform3D getRotateZ3D(double angle)
get a rotation transformation around Z-axis
Eigen::Affine3d Transform3D
Amg::Transform3D getTranslateX3D(const double X)
: Returns a shift transformation along the x-axis
Amg::Transform3D getRotateY3D(double angle)
get a rotation transformation around Y-axis