#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 19 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 | ) |
|
Definition at line 14 of file TGCCableSLBToSSW.cxx.
18 new TGCDatabaseSLBToROD(
filename,
"SLB EWT");
20 new TGCDatabaseSLBToROD(
filename,
"SLB EWD");
22 new TGCDatabaseSLBToROD(
filename,
"SLB EST");
24 new TGCDatabaseSLBToROD(
filename,
"SLB ESD");
26 new TGCDatabaseSLBToROD(
filename,
"SLB EWI");
28 new TGCDatabaseSLBToROD(
filename,
"SLB ESI");
30 new TGCDatabaseSLBToROD(
filename,
"SLB ESL");
33 new TGCDatabaseSLBToROD(
filename,
"SLB FWT");
35 new TGCDatabaseSLBToROD(
filename,
"SLB FWD");
37 new TGCDatabaseSLBToROD(
filename,
"SLB FST");
39 new TGCDatabaseSLBToROD(
filename,
"SLB FSD");
41 new TGCDatabaseSLBToROD(
filename,
"SLB FWI");
43 new TGCDatabaseSLBToROD(
filename,
"SLB FSI");
45 new TGCDatabaseSLBToROD(
filename,
"SLB FSL");
◆ ~TGCCableSLBToSSW()
MuonTGC_Cabling::TGCCableSLBToSSW::~TGCCableSLBToSSW |
( |
void |
| ) |
|
|
virtual |
◆ TGCCableSLBToSSW() [2/2]
MuonTGC_Cabling::TGCCableSLBToSSW::TGCCableSLBToSSW |
( |
void |
| ) |
|
|
inlineprivate |
◆ getCableType()
CableType MuonTGC_Cabling::TGCCable::getCableType |
( |
void |
| ) |
const |
|
inlineinherited |
◆ getChannelIn()
|
inlineprotectedvirtualinherited |
◆ getChannelOut()
|
inlineprotectedvirtualinherited |
◆ getModule()
◆ getModuleIn()
Reimplemented from MuonTGC_Cabling::TGCCable.
Definition at line 78 of file TGCCableSLBToSSW.cxx.
79 if(ssw->isValid()==
false)
return nullptr;
81 const int sswId = ssw->getId();
94 TGCModuleMap* mapId =
nullptr;
96 const int MaxEntry = databaseP[
type]->getMaxEntry();
97 for(
int i=0;
i<MaxEntry;
i++){
99 if(databaseP[
type]->getEntry(
i,4) == sswId) {
100 int sector = databaseP[
type]->getEntry(
i,0);
108 int sswSector = ssw->getReadoutSector();
110 if(sswSector %3 != 1)
continue;
113 sector += sswSector*2;
114 int id = databaseP[
type]->getEntry(
i,1);
115 int block = databaseP[
type]->getEntry(
i,5);
116 int sbLoc = databaseP[
type]->getEntry(
i,2);
117 int slbAddr = databaseP[
type]->getEntry(
i,3);
118 for(
int ip= 0;
ip<3 ;
ip++){
119 int psector = sector +
ip*2;
120 int pblock = block +
ip*4;
121 int psbLoc = sbLoc +
ip*4;
122 int pslbAddr = slbAddr +
ip*2;
123 TGCModuleSLB* slb =
new TGCModuleSLB(ssw->getSideType(),
131 if(mapId==
nullptr) mapId =
new TGCModuleMap();
132 mapId->insert(pblock,slb);
148 int id = databaseP[
type]->getEntry(
i,1);
149 int sbLoc = databaseP[
type]->getEntry(
i,2);
150 int slbAddr = databaseP[
type]->getEntry(
i,3);
151 int block = databaseP[
type]->getEntry(
i,5);
152 TGCModuleSLB* slb =
new TGCModuleSLB(ssw->getSideType(),
160 if(mapId==
nullptr) mapId =
new TGCModuleMap();
161 mapId->insert(block,slb);
◆ getModuleOut()
Reimplemented from MuonTGC_Cabling::TGCCable.
Definition at line 172 of file TGCCableSLBToSSW.cxx.
173 if(slb->isValid()==
false)
return nullptr;
175 const int slbId = slb->getId();
176 const int sector = slb->getSectorInReadout();
177 int readoutSector = slb->getReadoutSector();
179 TGCModuleMap* mapId =
nullptr;
181 TGCDatabase* databaseP =
m_database[slb->getRegionType()][slb->getModuleType()];
186 for(
int i=0;
i<MaxEntry;
i++){
187 if(databaseP->getEntry(
i,0)==sector &&
188 databaseP->getEntry(
i,1)==slbId) {
190 int sswSectorRO = readoutSector - (readoutSector%3) + 1;
191 int id = databaseP->getEntry(
i,4);
192 int block = databaseP->getEntry(
i,5) + 4*(readoutSector%3);
194 TGCModuleSSW* ssw =
new TGCModuleSSW(slb->getSideType(),
197 mapId =
new TGCModuleMap();
198 mapId->insert(block,ssw);
204 for(
int i=0;
i<MaxEntry;
i++){
205 if(databaseP->getEntry(
i,0)==sector&&
206 databaseP->getEntry(
i,1)==slbId) {
208 int id = databaseP->getEntry(
i,4);
209 int block = databaseP->getEntry(
i,5);
210 TGCModuleSSW* ssw =
new TGCModuleSSW(slb->getSideType(),
213 mapId =
new TGCModuleMap();
214 mapId->insert(block,ssw);
◆ m_database
◆ m_type
The documentation for this class was generated from the following files: