ATLAS Offline Software
MdtCablingData.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include <ostream>
7 #include <iomanip>
8 std::ostream& operator<<(std::ostream& ostr, const MdtCablingOffData& obj) {
9  auto fill = ostr.fill();
10  ostr << "stationIndex: " << std::setw(2)<<std::setfill('0')
11  << static_cast<int>(obj.stationIndex) << ", ";
12  ostr << "eta: " << std::setw(2) << static_cast<int>(obj.eta) << ", ";
13  ostr << "phi: " << static_cast<int>(obj.phi) << ", ";
14  ostr << "multilayer: " << static_cast<int>(obj.multilayer)<<std::setfill(fill);
15  return ostr;
16 }
17 std::ostream& operator<<(std::ostream& ostr, const MdtCablingOnData& obj) {
18  ostr << " subdetId: " << static_cast<int>(obj.subdetectorId) << ", ";
19  ostr << " mrod: " << static_cast<int>(obj.mrod) << ", ";
20  ostr << " csm: " << static_cast<int>(obj.csm);
21  return ostr;
22 }
23 std::ostream& operator<<(std::ostream& ostr, const MdtCablingData& obj) {
24  ostr << static_cast<const MdtCablingOffData&>(obj) << ", ";
25  ostr << "layer: " << static_cast<int>(obj.layer) << ", ";
26  ostr << "tube: " << static_cast<int>(obj.tube) << " ---- ";
27  ostr << static_cast<const MdtCablingOnData&>(obj) << ", ";
28  ostr << "tdc: " << static_cast<int>(obj.tdcId) << ", ";
29  ostr << "mezzType: " << static_cast<int>(obj.mezzanine_type) << ", ";
30  ostr << "tdcChannel: " << static_cast<int>(obj.channelId);
31  return ostr;
32 }
MdtCablingOnData
Definition: MdtCablingData.h:50
operator<<
std::ostream & operator<<(std::ostream &ostr, const MdtCablingOffData &obj)
Definition: MdtCablingData.cxx:8
MdtCablingData.h
MdtCablingOffData
Split the offline part of the cabling apart to use it later for sorting.
Definition: MdtCablingData.h:16
MdtCablingData
Definition: MdtCablingData.h:82
lumiFormat.fill
fill
Definition: lumiFormat.py:111
python.PyAthena.obj
obj
Definition: PyAthena.py:135