#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 18 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")) {
16}
std::unique_ptr< TGCDatabase > m_database
TGCCable(CableType type=NoCableType)
◆ TGCCableSSWToROD() [2/3]
| MuonTGC_Cabling::TGCCableSSWToROD::TGCCableSSWToROD |
( |
const TGCCableSSWToROD & | right | ) |
|
Definition at line 18 of file TGCCableSSWToROD.cxx.
20 if (auto mypointer = dynamic_cast<TGCDatabaseSLBToROD*>(right.m_database.get())) {
21 m_database = std::make_unique<TGCDatabaseSLBToROD>(*mypointer);
22 } else {
24 }
25}
◆ ~TGCCableSSWToROD()
| virtual MuonTGC_Cabling::TGCCableSSWToROD::~TGCCableSSWToROD |
( |
| ) |
|
|
virtualdefault |
◆ TGCCableSSWToROD() [3/3]
| MuonTGC_Cabling::TGCCableSSWToROD::TGCCableSSWToROD |
( |
| ) |
|
|
inlineprivate |
◆ getCableType()
| CableType MuonTGC_Cabling::TGCCable::getCableType |
( |
void | | ) |
const |
|
inlineinherited |
◆ getChannelIn()
|
|
inlineprotectedvirtualinherited |
◆ getChannelOut()
|
|
inlineprotectedvirtualinherited |
◆ getModule()
Definition at line 38 of file TGCCableSSWToROD.cxx.
38 {
39 if(moduleId){
44 }
45 return nullptr;
46}
virtual TGCModuleMap * getModuleIn(const TGCModuleId *rod) const
virtual TGCModuleMap * getModuleOut(const TGCModuleId *ssw) const
◆ getModuleIn()
Reimplemented from MuonTGC_Cabling::TGCCable.
Definition at line 48 of file TGCCableSSWToROD.cxx.
48 {
49 if(!
rod->isValid())
return nullptr;
50
52 const int rodReadoutSector =
rod->getReadoutSector();
53
54 TGCModuleMap* mapId = nullptr;
55 const int MaxEntry =
m_database->getMaxEntry();
56 for(
int i=0;
i<MaxEntry;
i++){
59 TGCModuleSSW* ssw = new TGCModuleSSW(rodSideType,
60 rodReadoutSector,
61 id);
62 if(mapId==nullptr) mapId = new TGCModuleMap();
63 mapId->insert(block,ssw);
64 }
65 return mapId;
66}
◆ getModuleOut()
Reimplemented from MuonTGC_Cabling::TGCCable.
Definition at line 68 of file TGCCableSSWToROD.cxx.
68 {
69 if(!ssw->isValid()) return nullptr;
70
71 const int sswId = ssw->getId();
72
73 TGCModuleMap* mapId = nullptr;
74 const int MaxEntry =
m_database->getMaxEntry();
75 for(
int i=0;
i<MaxEntry;
i++){
78 TGCModuleROD*
rod =
new TGCModuleROD(ssw->getSideType(),
79 ssw->getReadoutSector());
80 mapId = new TGCModuleMap();
81 mapId->insert(block,rod);
82 break;
83 }
84 }
85 return mapId;
86}
◆ operator=()
Definition at line 27 of file TGCCableSSWToROD.cxx.
27 {
28 if (this != &right) {
29 if (auto mypointer = dynamic_cast<TGCDatabaseSLBToROD*>(right.m_database.get())) {
30 m_database = std::make_unique<TGCDatabaseSLBToROD>(*mypointer);
31 } else {
33 }
34 }
35 return *this;
36}
◆ 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: