ATLAS Offline Software
Public Types | Public Member Functions | Static Public Attributes | Private Attributes | List of all members
BLinePar Class Reference

#include <BLinePar.h>

Inheritance diagram for BLinePar:
Collaboration diagram for BLinePar:

Public Types

enum  Parameter {
  Parameter::bz =0, Parameter::bp, Parameter::bn, Parameter::sp,
  Parameter::sn, Parameter::tw, Parameter::pg, Parameter::tr,
  Parameter::eg, Parameter::ep, Parameter::en, Parameter::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
More...
 
float getParameter (const Parameter p) const
 Returns a given parameter. More...
 
 operator bool () const
 Returns true if at least one of the payload parameters is set. More...
 
void setIdentifier (const Identifier &id)
 Setters and getters for the Athena Identifier. More...
 
const Identifieridentify () const
 
bool operator< (const MuonAlignmentPar &other) const
 Odering operater using the Identifier. More...
 
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) More...
 
int AmdbJob () const
 Seems to correspond to the multilayer but sometimes also stEta. More...
 
int AmdbEta () const
 station Eta More...
 
int AmdbPhi () const
 station phi More...
 
const std::string & AmdbStation () const
 station Name More...
 

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 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  };

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;}

◆ 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  }

◆ 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  {
14  m_station = stName;
15  m_eta = stEta;
16  m_phi = stPhi;
17  m_job = stJob;
18 }

◆ setIdentifier()

void MuonAlignmentPar::setIdentifier ( const Identifier id)
inherited

Setters and getters for the Athena Identifier.

Definition at line 10 of file MuonAlignmentPar.cxx.

10 { m_id = id; }

◆ 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

constexpr 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.

◆ m_id

Identifier MuonAlignmentPar::m_id {0}
privateinherited

Definition at line 38 of file MuonAlignmentPar.h.

◆ m_job

int MuonAlignmentPar::m_job {0}
privateinherited

Definition at line 42 of file MuonAlignmentPar.h.

◆ m_payload

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

Definition at line 52 of file BLinePar.h.

◆ m_phi

int MuonAlignmentPar::m_phi {0}
privateinherited

Definition at line 41 of file MuonAlignmentPar.h.

◆ m_station

std::string MuonAlignmentPar::m_station {}
privateinherited

Definition at line 39 of file MuonAlignmentPar.h.


The documentation for this class was generated from the following files:
MuonAlignmentPar::m_eta
int m_eta
Definition: MuonAlignmentPar.h:40
python.changerun.bn
bn
Definition: changerun.py:79
BLinePar::Parameter::sp
@ sp
ParticleTest.eg
eg
Definition: ParticleTest.py:29
BLinePar::Parameter::tr
@ tr
BLinePar::Parameter::bn
@ bn
BLinePar::m_payload
std::array< float, static_cast< unsigned int >Parameter::numPars)> m_payload
Definition: BLinePar.h:52
MuonAlignmentPar::m_job
int m_job
Definition: MuonAlignmentPar.h:42
BLinePar::Parameter::eg
@ eg
MuonAlignmentPar::m_phi
int m_phi
Definition: MuonAlignmentPar.h:41
BLinePar::Parameter::ep
@ ep
BLinePar::Parameter::tw
@ tw
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
fitman.bz
bz
Definition: fitman.py:412
BLinePar::Parameter::bz
@ bz
BLinePar::Parameter::bp
@ bp
MuonAlignmentPar::m_station
std::string m_station
Definition: MuonAlignmentPar.h:39
ParticleGun_EoverP_Config.pg
pg
Definition: ParticleGun_EoverP_Config.py:61
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:227
createCoolChannelIdFile.par
par
Definition: createCoolChannelIdFile.py:29
PlotCalibFromCool.en
en
Definition: PlotCalibFromCool.py:399
BLinePar::Parameter::en
@ en
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
MuonAlignmentPar::m_id
Identifier m_id
Definition: MuonAlignmentPar.h:38
BLinePar::Parameter::pg
@ pg
BLinePar::Parameter::sn
@ sn