ATLAS Offline Software
Loading...
Searching...
No Matches
MdtAsBuiltPar.cxx File Reference
Include dependency graph for MdtAsBuiltPar.cxx:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &ostr, const MdtAsBuiltPar &par)

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream & ostr,
const MdtAsBuiltPar & par )

Definition at line 7 of file MdtAsBuiltPar.cxx.

7 {
8 ostr<<"MdtAsBuilt AMDB id (name,eta,phi,job)=(";
9 ostr<<par.AmdbStation()<<",";
10 ostr<<par.AmdbEta()<<",";
11 ostr<<par.AmdbPhi()<<",";
12 ostr<<par.AmdbJob()<<"), "<<std::endl;
13 using multilayer_t = MdtAsBuiltPar::multilayer_t;
14 using tubeSide_t = MdtAsBuiltPar::tubeSide_t;
15 for (const multilayer_t ml : {multilayer_t::ML1, multilayer_t::ML2}){
16 ostr<<" chamber multi-layer " << static_cast<unsigned int>(ml)<<",";
17 for (const tubeSide_t side : {tubeSide_t::POS, tubeSide_t::NEG}){
18 ostr << "(y0,z0,alpha,ypitch,zpitch,stagg) at ";
19 ostr << (side == tubeSide_t::POS ? "positive" : "negative")<<" side = {";
20 ostr << par.y0(ml, side) <<", ";
21 ostr << par.z0(ml, side) <<", ";
22 ostr << par.alpha(ml, side) <<", ";
23 ostr << par.ypitch(ml, side) <<", ";
24 ostr << par.zpitch(ml, side) <<", ";
25 ostr << par.stagg(ml, side) <<"}, ";
26 }
27 ostr<<std::endl;
28 }
29 return ostr;
30}
multilayer_t
MDT multi-layer index.
tubeSide_t
MDT tube side.