#include <TGCCableSLBToSSW.h>
|
enum | { SL = TGCId::MaxModuleType,
MaxModuleType = TGCId::MaxModuleType + 1
} |
|
enum | CableType {
NoCableType =-1,
InASD,
ASDToPP,
InPP,
PPToSLB,
InSLB,
SLBToHPB,
HPBToSL,
SLBToSSW,
SSWToROD,
MaxCableType
} |
|
Definition at line 18 of file TGCCableSLBToSSW.h.
◆ anonymous enum
◆ CableType
Enumerator |
---|
NoCableType | |
InASD | |
ASDToPP | |
InPP | |
PPToSLB | |
InSLB | |
SLBToHPB | |
HPBToSL | |
SLBToSSW | |
SSWToROD | |
MaxCableType | |
Definition at line 18 of file TGCCable.h.
◆ TGCCableSLBToSSW() [1/2]
MuonTGC_Cabling::TGCCableSLBToSSW::TGCCableSLBToSSW |
( |
const std::string & |
filename | ) |
|
◆ ~TGCCableSLBToSSW()
virtual MuonTGC_Cabling::TGCCableSLBToSSW::~TGCCableSLBToSSW |
( |
| ) |
|
|
virtualdefault |
◆ TGCCableSLBToSSW() [2/2]
MuonTGC_Cabling::TGCCableSLBToSSW::TGCCableSLBToSSW |
( |
| ) |
|
|
inlineprivate |
◆ getCableType()
CableType MuonTGC_Cabling::TGCCable::getCableType |
( |
void |
| ) |
const |
|
inlineinherited |
◆ getChannelIn()
|
inlineprotectedvirtualinherited |
◆ getChannelOut()
|
inlineprotectedvirtualinherited |
◆ getModule()
◆ getModuleIn()
Reimplemented from MuonTGC_Cabling::TGCCable.
Definition at line 43 of file TGCCableSLBToSSW.cxx.
44 if(ssw->isValid()==
false)
return nullptr;
46 const int sswId = ssw->getId();
59 TGCModuleMap* mapId =
nullptr;
61 const int MaxEntry = databaseP[
type]->getMaxEntry();
62 for(
int i=0;
i<MaxEntry;
i++){
64 if(databaseP[
type]->getEntry(
i,4) == sswId) {
65 int sector = databaseP[
type]->getEntry(
i,0);
73 int sswSector = ssw->getReadoutSector();
75 if(sswSector %3 != 1)
continue;
78 sector += sswSector*2;
79 int id = databaseP[
type]->getEntry(
i,1);
80 int block = databaseP[
type]->getEntry(
i,5);
81 int sbLoc = databaseP[
type]->getEntry(
i,2);
82 int slbAddr = databaseP[
type]->getEntry(
i,3);
83 for(
int ip= 0;
ip<3 ;
ip++){
84 int psector = sector +
ip*2;
85 int pblock = block +
ip*4;
86 int psbLoc = sbLoc +
ip*4;
87 int pslbAddr = slbAddr +
ip*2;
88 TGCModuleSLB* slb =
new TGCModuleSLB(ssw->getSideType(),
96 if(mapId==
nullptr) mapId =
new TGCModuleMap();
97 mapId->insert(pblock,slb);
113 int id = databaseP[
type]->getEntry(
i,1);
114 int sbLoc = databaseP[
type]->getEntry(
i,2);
115 int slbAddr = databaseP[
type]->getEntry(
i,3);
116 int block = databaseP[
type]->getEntry(
i,5);
117 TGCModuleSLB* slb =
new TGCModuleSLB(ssw->getSideType(),
125 if(mapId==
nullptr) mapId =
new TGCModuleMap();
126 mapId->insert(block,slb);
◆ getModuleOut()
Reimplemented from MuonTGC_Cabling::TGCCable.
Definition at line 137 of file TGCCableSLBToSSW.cxx.
138 if(slb->isValid()==
false)
return nullptr;
140 const int slbId = slb->getId();
141 const int sector = slb->getSectorInReadout();
142 int readoutSector = slb->getReadoutSector();
144 TGCModuleMap* mapId =
nullptr;
146 TGCDatabase* databaseP =
m_database[slb->getRegionType()][slb->getModuleType()].get();
147 const int MaxEntry = databaseP->getMaxEntry();
151 for(
int i=0;
i<MaxEntry;
i++){
152 if(databaseP->getEntry(
i,0)==sector &&
153 databaseP->getEntry(
i,1)==slbId) {
155 int sswSectorRO = readoutSector - (readoutSector%3) + 1;
156 int id = databaseP->getEntry(
i,4);
157 int block = databaseP->getEntry(
i,5) + 4*(readoutSector%3);
159 TGCModuleSSW* ssw =
new TGCModuleSSW(slb->getSideType(),
162 mapId =
new TGCModuleMap();
163 mapId->insert(block,ssw);
169 for(
int i=0;
i<MaxEntry;
i++){
170 if(databaseP->getEntry(
i,0)==sector&&
171 databaseP->getEntry(
i,1)==slbId) {
173 int id = databaseP->getEntry(
i,4);
174 int block = databaseP->getEntry(
i,5);
175 TGCModuleSSW* ssw =
new TGCModuleSSW(slb->getSideType(),
178 mapId =
new TGCModuleMap();
179 mapId->insert(block,ssw);
◆ m_database
◆ m_type
The documentation for this class was generated from the following files: