ATLAS Offline Software
Loading...
Searching...
No Matches
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>
8std::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}
17std::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}
23std::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}
std::ostream & operator<<(std::ostream &ostr, const MdtCablingOffData &obj)
Split the offline part of the cabling apart to use it later for sorting.
void fill(H5::Group &out_file, size_t iterations)