#include <TGCCableSSWToROD.h>
|
| enum | CableType {
NoCableType = -1
, InASD
, ASDToPP
, InPP
,
PPToSLB
, InSLB
, SLBToHPB
, HPBToSL
,
SLBToSSW
, SSWToROD
, MaxCableType
} |
Definition at line 17 of file TGCCableSSWToROD.h.
◆ CableType
| Enumerator |
|---|
| NoCableType | |
| InASD | |
| ASDToPP | |
| InPP | |
| PPToSLB | |
| InSLB | |
| SLBToHPB | |
| HPBToSL | |
| SLBToSSW | |
| SSWToROD | |
| MaxCableType | |
Definition at line 16 of file TGCCable.h.
◆ TGCCableSSWToROD() [1/3]
| MuonTGC_Cabling::TGCCableSSWToROD::TGCCableSSWToROD |
( |
const std::string & | filename | ) |
|
Definition at line 13 of file TGCCableSSWToROD.cxx.
15 m_database(std::make_unique<TGCDatabaseSLBToROD>(filename,
"SSW ALL")) {}
std::unique_ptr< TGCDatabase > m_database
TGCCable(CableType type=NoCableType)
◆ TGCCableSSWToROD() [2/3]
| MuonTGC_Cabling::TGCCableSSWToROD::TGCCableSSWToROD |
( |
const TGCCableSSWToROD & | right | ) |
|
Definition at line 17 of file TGCCableSSWToROD.cxx.
19 if (auto mypointer =
20 dynamic_cast<TGCDatabaseSLBToROD*>(right.m_database.get())) {
21 m_database = std::make_unique<TGCDatabaseSLBToROD>(*mypointer);
22 } else {
24 }
25}
◆ ~TGCCableSSWToROD()
| MuonTGC_Cabling::TGCCableSSWToROD::~TGCCableSSWToROD |
( |
| ) |
|
|
virtualdefault |
◆ TGCCableSSWToROD() [3/3]
| MuonTGC_Cabling::TGCCableSSWToROD::TGCCableSSWToROD |
( |
| ) |
|
|
privatedelete |
◆ getCableType()
| CableType MuonTGC_Cabling::TGCCable::getCableType |
( |
| ) |
const |
|
inlineinherited |
◆ getModule()
Definition at line 41 of file TGCCableSSWToROD.cxx.
41 {
42
45 }
48 }
49
50 return TGCModuleMap{};
51}
TGCModuleMap getModuleOut(const TGCModuleId &ssw) const
TGCModuleMap getModuleIn(const TGCModuleId &rod) const
◆ getModuleIn()
Definition at line 53 of file TGCCableSSWToROD.cxx.
53 {
55 return TGCModuleMap{};
56 }
57
59 const int rodReadoutSector =
rod.getReadoutSector();
60
61 TGCModuleMap mapId{};
62 const int MaxEntry =
m_database->getMaxEntry();
63 for (
int i = 0;
i < MaxEntry;
i++) {
66 auto ssw =
67 std::make_unique<TGCModuleSSW>(rodSideType, rodReadoutSector, id);
68 mapId.insert(block, std::move(ssw));
69 }
70 return mapId;
71}
◆ getModuleOut()
Definition at line 73 of file TGCCableSSWToROD.cxx.
73 {
74 if (!ssw.isValid()) {
75 return TGCModuleMap{};
76 }
77
78 const int sswId = ssw.getId();
79
80 TGCModuleMap mapId{};
81 const int MaxEntry =
m_database->getMaxEntry();
82 for (
int i = 0;
i < MaxEntry;
i++) {
85 auto rod = std::make_unique<TGCModuleROD>(ssw.getSideType(),
86 ssw.getReadoutSector());
87
88 mapId.insert(block, std::move(rod));
89 break;
90 }
91 }
92 return mapId;
93}
◆ operator=()
Definition at line 27 of file TGCCableSSWToROD.cxx.
27 {
28 if (this != &right) {
29 if (auto mypointer =
30 dynamic_cast<TGCDatabaseSLBToROD*>(right.m_database.get())) {
31 m_database = std::make_unique<TGCDatabaseSLBToROD>(*mypointer);
32 } else {
34 }
35 }
36 return *this;
37}
◆ m_database
| std::unique_ptr<TGCDatabase> MuonTGC_Cabling::TGCCableSSWToROD::m_database {nullptr} |
|
private |
◆ m_type
The documentation for this class was generated from the following files: