ATLAS Offline Software
Loading...
Searching...
No Matches
ALinePar Class Reference

#include <ALinePar.h>

Inheritance diagram for ALinePar:
Collaboration diagram for ALinePar:

Public Types

enum class  Parameter {
  transS = 0 , transZ , transT , rotS ,
  rotZ , rotT , numPars
}
 amdb frame (s, z, t) = chamber frame (y, z, x) More...

Public Member Functions

 ALinePar ()=default
virtual ~ALinePar () override=default
void setParameters (float s, float z, float t, float rotS, float rotZ, float rotT)
float getParameter (const Parameter &p) const
Amg::Transform3D delta () const
 Returns the final transformations of the A lines.
 operator bool () const
 Returns true if at least one of the payload parameters is set.
void setIdentifier (const Identifier &id)
 Setters and getters for the Athena Identifier.
const Identifieridentify () const
bool operator< (const MuonAlignmentPar &other) const
 Odering operater using the Identifier.
void setAmdbId (const std::string &stName, int stEta, int stPhi, int stJob)
 AMDB identifiers. They're often not the same as the ATLAS ones (TGCs)
int AmdbJob () const
 Seems to correspond to the multilayer but sometimes also stEta.
int AmdbEta () const
 station Eta
int AmdbPhi () const
 station phi
const std::string & AmdbStation () const
 station Name

Private Attributes

std::array< float, static_cast< unsigned int >(Parameter::numPars)> m_payload {}
Identifier m_id {0}
std::string m_station {}
int m_eta {0}
int m_phi {0}
int m_job {0}

Detailed Description

Definition at line 15 of file ALinePar.h.

Member Enumeration Documentation

◆ Parameter

enum class ALinePar::Parameter
strong

amdb frame (s, z, t) = chamber frame (y, z, x)

Enumerator
transS 
transZ 

Translation along the s-axis.

transT 

Translation along the z-axis.

rotS 

Translation along the t-axis.

rotZ 

Rotation around the s-axis.

rotT 

Rotation around the z-axis.

numPars 

Rotation around the t-axis.

Definition at line 23 of file ALinePar.h.

23 {
24 transS = 0,
25 transZ,
26 transT,
27 rotS,
28 rotZ,
29 rotT,
30 numPars
31 };

Constructor & Destructor Documentation

◆ ALinePar()

ALinePar::ALinePar ( )
default

◆ ~ALinePar()

virtual ALinePar::~ALinePar ( )
overridevirtualdefault

Member Function Documentation

◆ AmdbEta()

int MuonAlignmentPar::AmdbEta ( ) const
inherited

station Eta

Definition at line 20 of file MuonAlignmentPar.cxx.

20{ return m_eta; }

◆ AmdbJob()

int MuonAlignmentPar::AmdbJob ( ) const
inherited

Seems to correspond to the multilayer but sometimes also stEta.

Definition at line 19 of file MuonAlignmentPar.cxx.

19{ return m_job; }

◆ AmdbPhi()

int MuonAlignmentPar::AmdbPhi ( ) const
inherited

station phi

Definition at line 21 of file MuonAlignmentPar.cxx.

21{ return m_phi;}

◆ AmdbStation()

const std::string & MuonAlignmentPar::AmdbStation ( ) const
inherited

station Name

Definition at line 22 of file MuonAlignmentPar.cxx.

22{return m_station;}
std::string m_station

◆ delta()

Amg::Transform3D ALinePar::delta ( ) const

Returns the final transformations of the A lines.

Definition at line 35 of file ALinePar.cxx.

35 {
42}
@ 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
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

◆ getParameter()

float ALinePar::getParameter ( const Parameter & p) const
inline

Definition at line 34 of file ALinePar.h.

34 {
35 return m_payload[static_cast<unsigned int>(p)];
36 }
std::array< float, static_cast< unsigned int >(Parameter::numPars)> m_payload
Definition ALinePar.h:52

◆ identify()

const Identifier & MuonAlignmentPar::identify ( ) const
inherited

Definition at line 11 of file MuonAlignmentPar.cxx.

11{return m_id; }

◆ operator bool()

ALinePar::operator bool ( ) const
inline

Returns true if at least one of the payload parameters is set.

Definition at line 41 of file ALinePar.h.

41 {
42 constexpr float validityCutOff = 1.e-5;
43 constexpr float rotWeight =1.e3;
44 return std::abs(getParameter(Parameter::transS)) + std::abs(getParameter(Parameter::transZ)) +
46 rotWeight * (std::abs(getParameter(Parameter::rotS)) +
47 std::abs(getParameter(Parameter::rotZ)) +
49 > validityCutOff;
50 }

◆ operator<()

bool MuonAlignmentPar::operator< ( const MuonAlignmentPar & other) const
inherited

Odering operater using the Identifier.

Definition at line 12 of file MuonAlignmentPar.cxx.

12{ return m_id < other.m_id; }

◆ setAmdbId()

void MuonAlignmentPar::setAmdbId ( const std::string & stName,
int stEta,
int stPhi,
int stJob )
inherited

AMDB identifiers. They're often not the same as the ATLAS ones (TGCs)

Definition at line 13 of file MuonAlignmentPar.cxx.

13 {
15 m_eta = stEta;
16 m_phi = stPhi;
17 m_job = stJob;
18}
const std::string & stName(StIndex index)
convert StIndex into a string

◆ setIdentifier()

void MuonAlignmentPar::setIdentifier ( const Identifier & id)
inherited

Setters and getters for the Athena Identifier.

Definition at line 10 of file MuonAlignmentPar.cxx.

◆ setParameters()

void ALinePar::setParameters ( float s,
float z,
float t,
float rotS,
float rotZ,
float rotT )

Definition at line 26 of file ALinePar.cxx.

26 {
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}
#define z

Member Data Documentation

◆ m_eta

int MuonAlignmentPar::m_eta {0}
privateinherited

Definition at line 40 of file MuonAlignmentPar.h.

40{0};

◆ m_id

Identifier MuonAlignmentPar::m_id {0}
privateinherited

Definition at line 38 of file MuonAlignmentPar.h.

38{0};

◆ m_job

int MuonAlignmentPar::m_job {0}
privateinherited

Definition at line 42 of file MuonAlignmentPar.h.

42{0};

◆ m_payload

std::array<float, static_cast<unsigned int>(Parameter::numPars)> ALinePar::m_payload {}
private

Definition at line 52 of file ALinePar.h.

52{};

◆ m_phi

int MuonAlignmentPar::m_phi {0}
privateinherited

Definition at line 41 of file MuonAlignmentPar.h.

41{0};

◆ m_station

std::string MuonAlignmentPar::m_station {}
privateinherited

Definition at line 39 of file MuonAlignmentPar.h.

39{};

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