ATLAS Offline Software
MuonFixedLongId.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 namespace MuonCalib {
8 
10  if (other.is_mdt()) {
11  set_mdt();
12  setStationName(static_cast<StationName>(other.stationName()));
13  setStationEta(other.eta());
14  setStationPhi(other.phi());
15  setMdtMultilayer(other.mdtMultilayer());
16  setMdtTubeLayer(other.mdtTubeLayer());
17  setMdtTube(other.mdtTube());
18  } else if (other.is_rpc()) {
19  set_rpc();
20  setStationName(static_cast<StationName>(other.stationName()));
21  setStationEta(other.eta());
22  setStationPhi(other.phi());
23  setRpcDoubletR(other.rpcDoubletR());
24  setRpcDoubletZ(other.rpcDoubletZ());
25  setRpcDoubletPhi(other.rpcDoubletPhi());
26  setRpcGasGap(other.rpcGasGap());
27  setRpcMeasuresPhi(other.rpcMeasuresPhi());
28  setRpcStrip(other.rpcStrip());
29  } else if (other.is_csc()) {
30  set_csc();
31  setStationName(static_cast<StationName>(other.stationName()));
32  setStationEta(other.eta());
33  setStationPhi(other.phi());
34  setCscChamberLayer(other.cscChamberLayer());
35  setCscWireLayer(other.cscWireLayer());
36  setCscMeasuresPhi(other.cscMeasuresPhi());
37  setCscStrip(other.cscStrip());
38  } else if (other.is_tgc()) {
39  set_tgc();
40  setStationName(static_cast<StationName>(other.stationName()));
41  setStationEta(other.eta());
42  setStationPhi(other.phi());
43  setTgcGasGap(other.tgcGasGap());
44  setTgcIsStrip(other.tgcIsStrip());
45  setTgcChannel(other.tgcChannel());
46  }
47 }
48 
49 std::ostream& MuonFixedLongId::dump(std::ostream& os) const {
50  os << technology() << ": stnEta " << eta() << ", stnPhi " << phi() << " "
51  << technologyString() << ": " << stationNameString() ;
52  if( is_mdt() ){
53  os << ", mdtMultiLayer " << mdtMultilayer() << ", mdtTubeLayer "
54  << mdtTubeLayer() << ", mdtTube " << mdtTube() ;
55  } else if( is_rpc() ) {
56  os << ", rpcDoubletR " << rpcDoubletR() << ", rpcDoubletZ "
57  << rpcDoubletZ() << ", rpcDoubletPhi " << rpcDoubletPhi() << ", rpcGasGap " << rpcGasGap() << ", rpcMeasuresPhi "
58  << rpcMeasuresPhi() << ", rpcStrip " << rpcStrip() ;
59  } else if( is_tgc() ) {
60  os << ", tgcGasGap " << tgcGasGap() << ", tgcIsStrip "
61  << tgcIsStrip() << ", tgcChannel " << tgcChannel() ;
62  } else if( is_csc() ) {
63  os << ", cscChamberLayer " << cscChamberLayer() << ", cscWireLayer "
64  << cscWireLayer() << ", cscMeasuresPhi " << cscMeasuresPhi() << ", cscStrip " << cscStrip() ;
65  } else if ( is_mmg() ) {
66  os << ", mmgMultilayer " << mmgMultilayer() << ", mmgGasGap " << mmgGasGap() << ", mmgStrip " << mmgStrip();
67  } else if ( is_stg() ) {
68  os << ", stgMultilayer " << stgMultilayer() << ", stgGasGap " << stgGasGap()
69  << ", stgChannelType " << stgChannelType() << ", stgChannel " << stgChannel();
70  } else
71  os << "Invalid MuonFixedLongId" ;
72 
73  return os;
74 }
75 
77  // 1 2 3 4 5 6 7 8 9 10 11 12 13
78  "BIL", "BIS", "BML", "BMS", "BOL", "BOS", "BEE", "BIR", "BMF", "BOF", "BOG", "BME", "BIM",
79  //14 15 16 17 18 19 20 21 22 23 24
80  "EIC", "EIL", "EEL", "EES", "EMC", "EML", "EMS", "EOC", "EOL", "EOS", "EIS",
81  //25 26 27 28 29 30 31 32 33 34 35
82  "T1F", "T1E", "T2F", "T2E", "T3F", "T3E", "T4F", "T4E", "CSS", "CSL", "BMG",
83  //36 37 38 39
84  "MMS", "MML", "STS", "STL"
85 };
86 
88  "MDT", "CSC", "TGC", "RPC", "MMG", "STG"
89 };
90 
91 } // end of namespace MuonCalib
MuonCalib::MuonFixedLongId::mmgMultilayer
int mmgMultilayer() const
Mmg specific:
Definition: MuonFixedLongId.h:1451
MuonCalib::MuonFixedLongId::phi
int phi() const
Definition: MuonFixedLongId.h:935
MuonCalib::MuonFixedLongId::is_tgc
bool is_tgc() const
Definition: MuonFixedLongId.h:778
MuonCalib::MuonFixedLongId::is_mdt
bool is_mdt() const
Definition: MuonFixedLongId.h:774
MuonCalib::MuonFixedLongId::mmgStrip
int mmgStrip() const
Mmg specific:
Definition: MuonFixedLongId.h:1489
MuonCalib::MuonFixedLongId::initFromFixedId
void initFromFixedId(MuonFixedId other)
for backward compatibility
Definition: MuonFixedLongId.cxx:9
MuonCalib::MuonFixedLongId::setTgcIsStrip
bool setTgcIsStrip(int num)
Tgc specific: set is_strip to num.
Definition: MuonFixedLongId.h:1399
MuonCalib::MuonFixedLongId::kNumberOfTechnologies
static const int kNumberOfTechnologies
Definition: MuonFixedLongId.h:615
MuonCalib::MuonFixedLongId::technologyString
std::string_view technologyString() const
Definition: MuonFixedLongId.h:856
MuonCalib::MuonFixedLongId::set_csc
void set_csc()
set identifier to CSC technology type
Definition: MuonFixedLongId.h:802
MuonCalib::MuonFixedLongId::setStationName
bool setStationName(StationName num)
set station name to num in the fixed identifier
Definition: MuonFixedLongId.h:874
MuonCalib::MuonFixedLongId::StationName
StationName
an enum with the station names
Definition: MuonFixedLongId.h:64
MuonCalib::MuonFixedLongId::setRpcDoubletZ
bool setRpcDoubletZ(int num)
Rpc specific: set doublet_Z to num.
Definition: MuonFixedLongId.h:1265
MuonCalib::MuonFixedLongId::mdtTubeLayer
int mdtTubeLayer() const
Mdt specific:
Definition: MuonFixedLongId.h:1048
MuonCalib::MuonFixedLongId::rpcMeasuresPhi
int rpcMeasuresPhi() const
Rpc specific:
Definition: MuonFixedLongId.h:1339
MuonCalib::MuonFixedLongId::setStationPhi
bool setStationPhi(int num)
set station phi to num in the fixed identifier
Definition: MuonFixedLongId.h:927
MuonCalib::MuonFixedLongId::is_mmg
bool is_mmg() const
Definition: MuonFixedLongId.h:790
MuonCalib::MuonFixedLongId::mmgGasGap
int mmgGasGap() const
Mmg specific:
Definition: MuonFixedLongId.h:1470
MuonCalib::MuonFixedLongId::is_stg
bool is_stg() const
Definition: MuonFixedLongId.h:794
MuonCalib::MuonFixedLongId::tgcGasGap
int tgcGasGap() const
Tgc specific:
Definition: MuonFixedLongId.h:1385
MuonCalib::MuonFixedLongId::setStationEta
bool setStationEta(int num)
set station eta to num in the fixed identifier
Definition: MuonFixedLongId.h:904
MuonCalib::MuonFixedLongId::rpcGasGap
int rpcGasGap() const
Rpc specific:
Definition: MuonFixedLongId.h:1317
MuonCalib::MuonFixedLongId::mdtTube
int mdtTube() const
Mdt specific:
Definition: MuonFixedLongId.h:1006
MuonCalib::MuonFixedLongId::setMdtTube
bool setMdtTube(int num)
Mdt specific: set tube to num.
Definition: MuonFixedLongId.h:998
MuonCalib::MuonFixedLongId::tgcChannel
int tgcChannel() const
Tgc specific:
Definition: MuonFixedLongId.h:1430
MuonCalib::MuonFixedLongId::setMdtMultilayer
bool setMdtMultilayer(int num)
Mdt specific: set multilayer to num.
Definition: MuonFixedLongId.h:1062
MuonCalib::MuonFixedLongId::setMdtTubeLayer
bool setMdtTubeLayer(int num)
Mdt specific: set layer to num.
Definition: MuonFixedLongId.h:1040
MuonCalib::MuonFixedLongId::stgMultilayer
int stgMultilayer() const
Stg specific:
Definition: MuonFixedLongId.h:1516
MuonCalib::MuonFixedLongId::set_tgc
void set_tgc()
set identifier to TGC technology type
Definition: MuonFixedLongId.h:806
MuonCalib::MuonFixedLongId::setCscMeasuresPhi
bool setCscMeasuresPhi(int num)
Csc specific: set measures_phi to num.
Definition: MuonFixedLongId.h:1166
MuonCalib::MuonFixedLongId::stationNameString
std::string_view stationNameString() const
Definition: MuonFixedLongId.h:886
MuonCalib::MuonFixedLongId::cscWireLayer
int cscWireLayer() const
Csc specific:
Definition: MuonFixedLongId.h:1152
MuonCalib::MuonFixedLongId::stgChannelType
StgChannelType stgChannelType() const
Stg specific:
Definition: MuonFixedLongId.h:1554
MuonFixedLongId.h
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::MuonFixedLongId::eta
int eta() const
Definition: MuonFixedLongId.h:912
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
MuonCalib::MuonFixedLongId::kStationNameStrings
static const char kStationNameStrings[kNumberOfStationNames][4]
Definition: MuonFixedLongId.h:631
MuonCalib::MuonFixedLongId::is_csc
bool is_csc() const
Definition: MuonFixedLongId.h:782
MuonCalib::MuonFixedLongId::cscStrip
int cscStrip() const
Csc specific:
Definition: MuonFixedLongId.h:1196
MuonCalib::MuonFixedLongId::technology
Technology technology() const
Definition: MuonFixedLongId.h:852
MuonCalib::MuonFixedId
Definition: MuonFixedId.h:50
MuonCalib::MuonFixedLongId::stgChannel
int stgChannel() const
Stg specific:
Definition: MuonFixedLongId.h:1573
MuonCalib::MuonFixedLongId::rpcDoubletZ
int rpcDoubletZ() const
Rpc specific:
Definition: MuonFixedLongId.h:1273
MuonCalib::MuonFixedLongId::rpcDoubletPhi
int rpcDoubletPhi() const
Rpc specific:
Definition: MuonFixedLongId.h:1295
MuonCalib::MuonFixedLongId::rpcDoubletR
int rpcDoubletR() const
Rpc specific:
Definition: MuonFixedLongId.h:1251
MuonCalib::MuonFixedLongId::stgGasGap
int stgGasGap() const
Stg specific:
Definition: MuonFixedLongId.h:1535
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
MuonCalib::MuonFixedLongId::set_rpc
void set_rpc()
set identifier to RPC technology type
Definition: MuonFixedLongId.h:810
MuonCalib::MuonFixedLongId::setRpcMeasuresPhi
bool setRpcMeasuresPhi(int num)
Rpc specific: set measures_phi to num.
Definition: MuonFixedLongId.h:1331
MuonCalib::MuonFixedLongId::mdtMultilayer
int mdtMultilayer() const
Mdt specific:
Definition: MuonFixedLongId.h:1070
MuonCalib::MuonFixedLongId::cscMeasuresPhi
int cscMeasuresPhi() const
Csc specific:
Definition: MuonFixedLongId.h:1174
MuonCalib::MuonFixedLongId::setTgcChannel
bool setTgcChannel(int num)
Tgc specific: set channel to num.
Definition: MuonFixedLongId.h:1422
MuonCalib::MuonFixedLongId::setCscWireLayer
bool setCscWireLayer(int num)
Csc specific: set wire layer to num.
Definition: MuonFixedLongId.h:1144
MuonCalib::MuonFixedLongId::setCscChamberLayer
bool setCscChamberLayer(int num)
Csc specific: set chamber layer to num.
Definition: MuonFixedLongId.h:1121
MuonCalib::MuonFixedLongId::rpcStrip
int rpcStrip() const
Rpc specific:
Definition: MuonFixedLongId.h:1361
MuonCalib::MuonFixedLongId::dump
std::ostream & dump(std::ostream &os) const
dump all the information corresponding to the identifier
Definition: MuonFixedLongId.cxx:49
MuonCalib::MuonFixedLongId::tgcIsStrip
int tgcIsStrip() const
Tgc specific:
Definition: MuonFixedLongId.h:1407
MuonCalib::MuonFixedLongId::setRpcGasGap
bool setRpcGasGap(int num)
Rpc specific: set gas_gap to num.
Definition: MuonFixedLongId.h:1309
MuonCalib::MuonFixedLongId::set_mdt
void set_mdt()
set identifier to MDT technology type
Definition: MuonFixedLongId.h:798
MuonCalib::MuonFixedLongId::kNumberOfStationNames
static const int kNumberOfStationNames
Definition: MuonFixedLongId.h:630
MuonCalib::MuonFixedLongId::setCscStrip
bool setCscStrip(int num)
Csc specific: set strip to num.
Definition: MuonFixedLongId.h:1188
MuonCalib::MuonFixedLongId::setRpcDoubletR
bool setRpcDoubletR(int num)
Rpc specific: set doublet_R to num.
Definition: MuonFixedLongId.h:1243
MuonCalib::MuonFixedLongId::setRpcStrip
bool setRpcStrip(int num)
Rpc specific: set strip to num.
Definition: MuonFixedLongId.h:1353
MuonCalib::MuonFixedLongId::setRpcDoubletPhi
bool setRpcDoubletPhi(int num)
Rpc specific: set doublet_Phi to num.
Definition: MuonFixedLongId.h:1287
MuonCalib::MuonFixedLongId::is_rpc
bool is_rpc() const
Definition: MuonFixedLongId.h:786
MuonCalib::MuonFixedLongId::setTgcGasGap
bool setTgcGasGap(int num)
Tgc specific: set gas_gap to num.
Definition: MuonFixedLongId.h:1377
MuonCalib::MuonFixedLongId::kTechnologyStrings
static const char kTechnologyStrings[kNumberOfTechnologies][4]
Definition: MuonFixedLongId.h:616
MuonCalib::MuonFixedLongId::cscChamberLayer
int cscChamberLayer() const
Csc specific:
Definition: MuonFixedLongId.h:1129