ATLAS Offline Software
Loading...
Searching...
No Matches
MuonTrackSteeringStrategy.h File Reference
#include <bitset>
#include <iostream>
#include <string>
#include <vector>
#include "GaudiKernel/MsgStream.h"
#include "MuonStationIndex/MuonStationIndex.h"
Include dependency graph for MuonTrackSteeringStrategy.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Muon::MuonTrackSteeringStrategy

Namespaces

namespace  Muon
 NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.

Functions

std::ostream & operator<< (std::ostream &sl, const Muon::MuonTrackSteeringStrategy &mtss)
MsgStream & operator<< (MsgStream &sl, const Muon::MuonTrackSteeringStrategy &mtss)

Function Documentation

◆ operator<<() [1/2]

MsgStream & operator<< ( MsgStream & sl,
const Muon::MuonTrackSteeringStrategy & mtss )
inline

Definition at line 155 of file MuonTrackSteeringStrategy.h.

155 {
156 sl << "MuonTrackSteeringStrategy " << mtss.getName() << " with options: " << mtss.allOptions() << " with seeds";
157 if (mtss.seeds().size()) {
158 for (unsigned int i = 0; i < mtss.seeds().size(); ++i) { sl << " " << mtss.seeds()[i]; }
159 } else
160 sl << " <none>";
161 sl << " and chambers are: " << std::endl;
162 for (unsigned int i = 0; i < mtss.getAll().size(); ++i) {
163 sl << "\t Step " << i << " : ( ";
164 for (unsigned int j = 0; j < mtss.getCh(i).size() - 1; ++j) {
165 sl << Muon::MuonStationIndex::chName(mtss.getCh(i)[j]) << " , ";
166 }
167 if (mtss.getCh(i).size()) {
168 sl << Muon::MuonStationIndex::chName(mtss.getCh(i)[mtss.getCh(i).size() - 1]);
169 }
170 sl << " ) " << std::endl;
171 }
172 return sl;
173}
const std::bitset< Last > & allOptions() const
const std::vector< MuonStationIndex::ChIndex > & getCh(const unsigned int) const
const std::vector< std::vector< MuonStationIndex::ChIndex > > & getAll() const
const std::vector< unsigned int > & seeds() const
const std::string & chName(ChIndex index)
convert ChIndex into a string

◆ operator<<() [2/2]

std::ostream & operator<< ( std::ostream & sl,
const Muon::MuonTrackSteeringStrategy & mtss )
inline

Definition at line 135 of file MuonTrackSteeringStrategy.h.

135 {
136 sl << "MuonTrackSteeringStrategy " << mtss.getName() << " with options: " << mtss.allOptions() << " with seeds";
137 if (mtss.seeds().size()) {
138 for (unsigned int i = 0; i < mtss.seeds().size(); ++i) { sl << " " << mtss.seeds()[i]; }
139 } else
140 sl << " <none>";
141 sl << " and chambers are: " << std::endl;
142 for (unsigned int i = 0; i < mtss.getAll().size(); ++i) {
143 sl << "\t Step " << i << " : ( ";
144 for (unsigned int j = 0; j < mtss.getCh(i).size() - 1; ++j) {
145 sl << Muon::MuonStationIndex::chName(mtss.getCh(i)[j]) << " , ";
146 }
147 if (mtss.getCh(i).size()) {
148 sl << Muon::MuonStationIndex::chName(mtss.getCh(i)[mtss.getCh(i).size() - 1]);
149 }
150 sl << " ) " << std::endl;
151 }
152 return sl;
153}