ATLAS Offline Software
BLinePar.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 std::ostream& operator<<(std::ostream& ostr, const BLinePar& par) {
7  using Parameter = BLinePar::Parameter;
8  ostr<<"Muon B-Line deformation AMDB id (name,eta,phi,job)=(";
9  ostr<<par.AmdbStation()<<",";
10  ostr<<par.AmdbEta()<<",";
11  ostr<<par.AmdbPhi()<<",";
12  ostr<<par.AmdbJob()<<"), ";
13  ostr<<" tube bow in plane bz="<<par.getParameter(Parameter::bz)<<",";
14  ostr<<" tube bow out of plane bp="<<par.getParameter(Parameter::bp)<<",";
15  ostr<<" bn="<<par.getParameter(Parameter::bn)<<",";
16  ostr<<" cross plate sage out of plane sp="<<par.getParameter(Parameter::sp)<<",";
17  ostr<<" sn="<<par.getParameter(Parameter::sn)<<",";
18  ostr<<" twist tw="<<par.getParameter(Parameter::tw)<<",";
19  ostr<<" parallelogram pg="<<par.getParameter(Parameter::pg)<<",";
20  ostr<<" trapezoid tz="<<par.getParameter(Parameter::tr)<<",";
21  ostr<<" global expansion eg="<<par.getParameter(Parameter::eg)<<",";
22  ostr<<" local expansion ep="<<par.getParameter(Parameter::ep)<<",";
23  ostr<<" en="<<par.getParameter(Parameter::en);
24  return ostr;
25 }
26 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) {
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 }
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
BLinePar::Parameter::eg
@ eg
BLinePar::Parameter::ep
@ ep
BLinePar::Parameter::tw
@ tw
BLinePar::setParameters
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
Definition: BLinePar.cxx:26
fitman.bz
bz
Definition: fitman.py:412
BLinePar::Parameter::bz
@ bz
operator<<
std::ostream & operator<<(std::ostream &ostr, const BLinePar &par)
Definition: BLinePar.cxx:6
BLinePar
Definition: BLinePar.h:14
BLinePar::Parameter::bp
@ bp
ParticleGun_EoverP_Config.pg
pg
Definition: ParticleGun_EoverP_Config.py:61
createCoolChannelIdFile.par
par
Definition: createCoolChannelIdFile.py:29
PlotCalibFromCool.en
en
Definition: PlotCalibFromCool.py:399
BLinePar::Parameter
Parameter
Definition: BLinePar.h:21
BLinePar.h
BLinePar::Parameter::en
@ en
BLinePar::Parameter::pg
@ pg
BLinePar::Parameter::sn
@ sn