|
ATLAS Offline Software
|
Go to the documentation of this file.
17 std::string stName =
"UnKnown";
46 std::ostringstream sout;
47 if (!
id.
isValid())
return " Invalid Identifier";
48 sout <<
id.technologyString() <<
" " <<
id.stationNameString() <<
" eta " << std::setw(2) <<
id.eta() <<
" phi " << std::setw(2)
54 std::ostringstream sout;
55 if (!
id.
isValid())
return " Invalid Identifier";
57 if (
id.is_rpc()) sout <<
" doubR " <<
id.rpcDoubletR();
63 std::ostringstream sout;
64 if (!
id.
isValid())
return " Invalid Identifier";
67 sout <<
" doubZ " <<
id.rpcDoubletZ() <<
" doubPhi " <<
id.rpcDoubletPhi();
69 sout <<
" ml " <<
id.mdtMultilayer();
74 if (!
id.
isValid())
return " Invalid Identifier";
76 std::ostringstream sout;
78 bool measuresPhi =
false;
80 sout <<
" gap " <<
id.rpcGasGap();
81 measuresPhi =
id.rpcMeasuresPhi();
82 }
else if (
id.is_tgc()) {
83 sout <<
" gap " <<
id.tgcGasGap();
84 measuresPhi =
id.tgcIsStrip();
85 }
else if (
id.is_csc()) {
86 sout <<
" lay " <<
id.cscWireLayer();
87 measuresPhi =
id.cscMeasuresPhi();
89 sout <<
" lay " <<
id.mdtTubeLayer() <<
" tube " << std::setw(2) <<
id.mdtTube();
92 if (measuresPhi && includeMeasuresPhi) sout <<
" measuresPhi";
98 std::string st =
id.stationNumberToFixedStationString(
id.
stationName());
99 std::ostringstream secondPart;
100 bool measuresPhi =
false;
101 bool addSecondPart =
false;
102 std::ostringstream station;
103 station << st <<
"_" <<
id.phi() <<
"_" <<
id.eta();
105 int doublet = 2 * (
id.rpcDoubletZ() - 1) + (
id.rpcDoubletPhi() - 1);
108 addSecondPart =
true;
109 secondPart <<
"_d_" << doublet;
111 }
else if (
id.is_tgc()) {
112 if (
id.tgcIsStrip()) measuresPhi =
true;
113 addSecondPart =
true;
114 secondPart <<
"_gg_" <<
id.tgcGasGap();
116 }
else if (
id.is_csc()) {
117 if (
id.cscMeasuresPhi()) measuresPhi =
true;
118 addSecondPart =
true;
119 secondPart <<
"_wl_" <<
id.cscWireLayer();
121 std::string rst = station.str();
122 if (addSecondPart) { rst += secondPart.str(); }
123 if (includeMeasuresPhi) {
133 std::ostringstream sout;
134 if (!
id.
isValid())
return " Invalid Identifier";
138 sout <<
" strip " << std::setw(2) <<
id.rpcStrip();
139 else if (
id.is_tgc())
140 sout <<
" strip " << std::setw(2) <<
id.tgcChannel();
141 else if (
id.is_csc())
142 sout <<
" strip " << std::setw(2) <<
id.cscStrip();
144 if (measuresPhi) sout <<
" measuresPhi";
std::string stationIdentifier(const MuonFixedId &id) const
prints station Identifier for the give id MDT: station name (BMS)/eta/phi RPC: name of associated MDT...
StationIndex
enum defining station layers
std::string fullIdentifier(const MuonFixedId &id) const
prints full Identifier for the give id
std::string gasGapIdentifier(const MuonFixedId &id, bool includeMeasuresPhi=false) const
prints gas gap Identifier for the give id MDT: same as tube identifier RPC: station name/eta/phi/doub...
bool isValid(const T &p)
Av: we implement here an ATLAS-sepcific convention: all particles which are 99xxxxx are fine.
bool measuresPhi(const MuonFixedId &id) const
returns whether this is a phi measurement
std::string moduleIdentifier(const MuonFixedId &id) const
prints layer Identifier for the give id MDT: station name/eta/phi/ml/lay RPC: station name/eta/phi/do...
MuonFixedIdManipulator m_manipulator
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
std::string stationLayerIdentifier(const MuonFixedId &id) const
prints a station layer identifier for the give identifier
StationIndex stationLayerIndex(const MuonFixedId &id) const
returns station layer index for a give identifier
std::string gasGapIdentifierForMap(const MuonFixedId &id, bool includeMeasuresPhi=false) const
print gapGap Id to be used in map
std::string chamberIdentifier(const MuonFixedId &id) const
prints chamber Identifier for the give id.