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

#include <BLinePar.h>

Inheritance diagram for BLinePar:
Collaboration diagram for BLinePar:

Public Types

enum class  Parameter {
  bz =0 , bp , bn , sp ,
  sn , tw , pg , tr ,
  eg , ep , en , numPars
}

Public Member Functions

 BLinePar ()=default
virtual ~BLinePar () override=default
void setParameters (float bz, float bp, float bn, float sp, float sn, float tw, float pg, float tr, float eg, float ep, float en)
 Cast the parameter to an unsigned int.
float getParameter (const Parameter p) const
 Returns a given parameter.
 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

Static Public Attributes

static constexpr double expansionScale = 1.e-3

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 14 of file BLinePar.h.

Member Enumeration Documentation

◆ Parameter

enum class BLinePar::Parameter
strong
Enumerator
bz 
bp 
bn 
sp 
sn 
tw 
pg 
tr 
eg 
ep 
en 
numPars 

Definition at line 21 of file BLinePar.h.

21 {
22 bz=0, // tube bow in plane,
23 bp, // tube bow out of plane,
24 bn, // tube bow out of plane
25 sp, // cross plate sag out of plane
26 sn, // cross plate sag out of plane
27 tw, // twist
28 pg, // parallelogram
29 tr, // trapezoid
30 eg, // global expansion
31 ep, // local expansion
32 en, // local expansion
33 numPars
34 };
static Double_t sp

Constructor & Destructor Documentation

◆ BLinePar()

BLinePar::BLinePar ( )
default

◆ ~BLinePar()

virtual BLinePar::~BLinePar ( )
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

◆ getParameter()

float BLinePar::getParameter ( const Parameter p) const
inline

Returns a given parameter.

Definition at line 40 of file BLinePar.h.

40 {
41 return m_payload[static_cast<unsigned int>(p)];
42 }
std::array< float, static_cast< unsigned int >(Parameter::numPars)> m_payload
Definition BLinePar.h:52

◆ identify()

const Identifier & MuonAlignmentPar::identify ( ) const
inherited

Definition at line 11 of file MuonAlignmentPar.cxx.

11{return m_id; }

◆ operator bool()

BLinePar::operator bool ( ) const
inline

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

Definition at line 44 of file BLinePar.h.

44 {
45 return std::find_if(m_payload.begin(),
46 m_payload.end(),[](const float par){
47 return std::abs(par) > std::numeric_limits<float>::epsilon();
48 }) != m_payload.end();
49 }

◆ 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 BLinePar::setParameters ( float bz,
float bp,
float bn,
float sp,
float sn,
float tw,
float pg,
float tr,
float eg,
float ep,
float en )

Cast the parameter to an unsigned int.

Definition at line 26 of file BLinePar.cxx.

26 {
27 m_payload[static_cast<unsigned int>(Parameter::bz)] = bz;
28 m_payload[static_cast<unsigned int>(Parameter::bp)] = bp;
29 m_payload[static_cast<unsigned int>(Parameter::bn)] = bn;
30 m_payload[static_cast<unsigned int>(Parameter::sp)] = sp;
31 m_payload[static_cast<unsigned int>(Parameter::sn)] = sn;
32 m_payload[static_cast<unsigned int>(Parameter::tw)] = tw;
33 m_payload[static_cast<unsigned int>(Parameter::pg)] = pg;
34 m_payload[static_cast<unsigned int>(Parameter::tr)] = tr;
35 m_payload[static_cast<unsigned int>(Parameter::eg)] = eg;
36 m_payload[static_cast<unsigned int>(Parameter::ep)] = ep;
37 m_payload[static_cast<unsigned int>(Parameter::en)] = en;
38}

Member Data Documentation

◆ expansionScale

double BLinePar::expansionScale = 1.e-3
staticconstexpr

Definition at line 35 of file BLinePar.h.

◆ 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)> BLinePar::m_payload {}
private

Definition at line 52 of file BLinePar.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: