#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 |
( |
void | | ) |
const |
|
inlineinherited |
◆ getChannelIn()
|
|
inlineprotectedvirtualinherited |
◆ getChannelOut()
|
|
inlineprotectedvirtualinherited |
◆ getModule()
Definition at line 41 of file TGCCableSSWToROD.cxx.
41 {
42 if (moduleId) {
45 }
48 }
49 }
50 return nullptr;
51}
virtual TGCModuleMap * getModuleIn(const TGCModuleId *rod) const
virtual TGCModuleMap * getModuleOut(const TGCModuleId *ssw) const
◆ getModuleIn()
Reimplemented from MuonTGC_Cabling::TGCCable.
Definition at line 53 of file TGCCableSSWToROD.cxx.
53 {
54 if (!
rod->isValid()) {
55 return nullptr;
56 }
57
59 const int rodReadoutSector =
rod->getReadoutSector();
60
61 TGCModuleMap* mapId = nullptr;
62 const int MaxEntry =
m_database->getMaxEntry();
63 for (
int i = 0;
i < MaxEntry;
i++) {
66 TGCModuleSSW* ssw = new TGCModuleSSW(rodSideType, rodReadoutSector, id);
67 if (mapId == nullptr) {
68 mapId = new TGCModuleMap();
69 }
70 mapId->insert(block, ssw);
71 }
72 return mapId;
73}
◆ getModuleOut()
Reimplemented from MuonTGC_Cabling::TGCCable.
Definition at line 75 of file TGCCableSSWToROD.cxx.
75 {
76 if (!ssw->isValid()) {
77 return nullptr;
78 }
79
80 const int sswId = ssw->getId();
81
82 TGCModuleMap* mapId = nullptr;
83 const int MaxEntry =
m_database->getMaxEntry();
84 for (
int i = 0;
i < MaxEntry;
i++) {
88 new TGCModuleROD(ssw->getSideType(), ssw->getReadoutSector());
89 mapId = new TGCModuleMap();
90 mapId->insert(block, rod);
91 break;
92 }
93 }
94 return mapId;
95}
◆ 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: