#include <TGCCablePPToSLB.h>
|
enum | CableType {
NoCableType =-1,
InASD,
ASDToPP,
InPP,
PPToSLB,
InSLB,
SLBToHPB,
HPBToSL,
SLBToSSW,
SSWToROD,
MaxCableType
} |
|
Definition at line 18 of file TGCCablePPToSLB.h.
◆ CableType
Enumerator |
---|
NoCableType | |
InASD | |
ASDToPP | |
InPP | |
PPToSLB | |
InSLB | |
SLBToHPB | |
HPBToSL | |
SLBToSSW | |
SSWToROD | |
MaxCableType | |
Definition at line 18 of file TGCCable.h.
◆ TGCCablePPToSLB() [1/2]
MuonTGC_Cabling::TGCCablePPToSLB::TGCCablePPToSLB |
( |
const std::string & |
filename | ) |
|
Definition at line 16 of file TGCCablePPToSLB.cxx.
20 new TGCDatabasePPToSL(
filename,
"PP EWT");
22 new TGCDatabasePPToSL(
filename,
"PP EWD");
24 new TGCDatabasePPToSL(
filename,
"PP EST");
26 new TGCDatabasePPToSL(
filename,
"PP ESD");
28 new TGCDatabasePPToSL(
filename,
"PP EWI");
30 new TGCDatabasePPToSL(
filename,
"PP ESI");
32 new TGCDatabasePPToSL(
filename,
"PP FWT");
34 new TGCDatabasePPToSL(
filename,
"PP FWD");
36 new TGCDatabasePPToSL(
filename,
"PP FST");
38 new TGCDatabasePPToSL(
filename,
"PP FSD");
40 new TGCDatabasePPToSL(
filename,
"PP FWI");
42 new TGCDatabasePPToSL(
filename,
"PP FSI");
◆ ~TGCCablePPToSLB()
MuonTGC_Cabling::TGCCablePPToSLB::~TGCCablePPToSLB |
( |
void |
| ) |
|
|
virtual |
◆ TGCCablePPToSLB() [2/2]
MuonTGC_Cabling::TGCCablePPToSLB::TGCCablePPToSLB |
( |
void |
| ) |
|
|
inlineprivate |
◆ getCableType()
CableType MuonTGC_Cabling::TGCCable::getCableType |
( |
void |
| ) |
const |
|
inlineinherited |
◆ getChannel()
◆ getChannelIn()
Reimplemented from MuonTGC_Cabling::TGCCable.
Definition at line 83 of file TGCCablePPToSLB.cxx.
85 if(orChannel)
return nullptr;
86 if(slbin->isValid()==
false)
return nullptr;
87 TGCChannelPPOut* ppout =
nullptr;
90 const TGCChannelSLBIn* slbIn =
nullptr;
92 slbIn =
dynamic_cast<const TGCChannelSLBIn*
>(slbin);
99 TGCModuleId* slb = slbIn->getModule();
100 if(!slb)
return nullptr;
105 if(!mapId)
return nullptr;
108 int port = mapId->connector(0);
109 TGCModuleId* pp = mapId->popModuleId(0);
111 if(!pp)
return nullptr;
126 channel = lengthOfSLB+slbIn->getChannelInSLB();
130 channel = slbIn->getChannelInSLB();
136 channel = lengthOfSLB+slbIn->getChannelInSLB();
140 channel = slbIn->getChannelInSLB();
142 ppout =
new TGCChannelPPOut(pp->getSideType(),
◆ getChannelOut()
Reimplemented from MuonTGC_Cabling::TGCCable.
Definition at line 155 of file TGCCablePPToSLB.cxx.
157 if(orChannel)
return nullptr;
158 if(ppout->isValid()==
false)
return nullptr;
160 const int ppoutBlock = ppout->getBlock();
162 TGCChannelSLBIn* slbin =
nullptr;
165 TGCModuleId* pp = ppout->getModule();
166 if(!pp)
return nullptr;
171 if(!mapId)
return nullptr;
174 TGCModuleId* slb =
nullptr;
175 const int size = mapId->size();
177 if(mapId->connector(
i)==ppoutBlock/2){
178 slb = mapId->popModuleId(
i);
183 if(!slb)
return nullptr;
187 int channelInSLB = -1;
191 if(ppout->getChannel()<lengthOfSLB){
193 channelInSLB = ppout->getChannel();
196 channelInSLB = ppout->getChannel()-lengthOfSLB;
201 if(ppout->getChannel()<lengthOfSLB){
203 channelInSLB = ppout->getChannel();
206 channelInSLB = ppout->getChannel()-lengthOfSLB;
211 cellType,channelInSLB);
212 slbin =
new TGCChannelSLBIn(slb->getSideType(),
213 slb->getModuleType(),
214 slb->getRegionType(),
◆ getModule()
◆ getModuleIn()
Reimplemented from MuonTGC_Cabling::TGCCable.
Definition at line 223 of file TGCCablePPToSLB.cxx.
224 if(slb->isValid()==
false)
return nullptr;
226 const int slbId = slb->getId();
228 TGCDatabase* databaseP =
m_database[slb->getRegionType()][slb->getModuleType()];
229 TGCModuleMap* mapId =
nullptr;
231 for(
int i=0;
i<MaxEntry;
i++){
232 if(databaseP->getEntry(
i,1)==slbId){
233 int id = databaseP->getEntry(
i,0);
234 TGCModulePP* pp =
new TGCModulePP(slb->getSideType(),
235 slb->getModuleType(),
236 slb->getRegionType(),
240 mapId =
new TGCModuleMap();
244 if(databaseP->getEntry(
i,2)==slbId) {
245 int id = databaseP->getEntry(
i,0);
246 TGCModulePP* pp =
new TGCModulePP(slb->getSideType(),
247 slb->getModuleType(),
248 slb->getRegionType(),
252 mapId =
new TGCModuleMap();
◆ getModuleOut()
Reimplemented from MuonTGC_Cabling::TGCCable.
Definition at line 261 of file TGCCablePPToSLB.cxx.
262 if(pp->isValid()==
false)
return nullptr;
264 const int ppId = pp->getId();
266 TGCDatabase* databaseP =
m_database[pp->getRegionType()][pp->getModuleType()];
267 TGCModuleMap* mapId =
nullptr;
269 for(
int i=0;
i<MaxEntry;
i++){
270 if(databaseP->getEntry(
i,0)==ppId)
273 TGCModuleSLB* slb=
nullptr;
274 mapId =
new TGCModuleMap();
276 id = databaseP->getEntry(
i,1);
278 slb =
new TGCModuleSLB(pp->getSideType(),
284 mapId->insert(0,slb);
287 id = databaseP->getEntry(
i,2);
289 slb =
new TGCModuleSLB(pp->getSideType(),
295 mapId->insert(1,slb);
◆ m_database
◆ m_type
The documentation for this class was generated from the following files: