#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 | ) |
|
◆ ~TGCCablePPToSLB()
virtual MuonTGC_Cabling::TGCCablePPToSLB::~TGCCablePPToSLB |
( |
| ) |
|
|
virtualdefault |
◆ 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 54 of file TGCCablePPToSLB.cxx.
56 if(orChannel)
return nullptr;
57 if(slbin->isValid()==
false)
return nullptr;
58 TGCChannelPPOut* ppout =
nullptr;
61 const TGCChannelSLBIn* slbIn =
nullptr;
63 slbIn =
dynamic_cast<const TGCChannelSLBIn*
>(slbin);
70 TGCModuleId* slb = slbIn->getModule();
71 if(!slb)
return nullptr;
76 if(!mapId)
return nullptr;
79 int port = mapId->connector(0);
80 TGCModuleId* pp = mapId->popModuleId(0);
82 if(!pp)
return nullptr;
97 channel = lengthOfSLB+slbIn->getChannelInSLB();
101 channel = slbIn->getChannelInSLB();
107 channel = lengthOfSLB+slbIn->getChannelInSLB();
111 channel = slbIn->getChannelInSLB();
113 ppout =
new TGCChannelPPOut(pp->getSideType(),
◆ getChannelOut()
Reimplemented from MuonTGC_Cabling::TGCCable.
Definition at line 126 of file TGCCablePPToSLB.cxx.
128 if(orChannel)
return nullptr;
129 if(ppout->isValid()==
false)
return nullptr;
131 const int ppoutBlock = ppout->getBlock();
133 TGCChannelSLBIn* slbin =
nullptr;
136 TGCModuleId* pp = ppout->getModule();
137 if(!pp)
return nullptr;
142 if(!mapId)
return nullptr;
145 TGCModuleId* slb =
nullptr;
146 const int size = mapId->size();
148 if(mapId->connector(
i)==ppoutBlock/2){
149 slb = mapId->popModuleId(
i);
154 if(!slb)
return nullptr;
158 int channelInSLB = -1;
162 if(ppout->getChannel()<lengthOfSLB){
164 channelInSLB = ppout->getChannel();
167 channelInSLB = ppout->getChannel()-lengthOfSLB;
172 if(ppout->getChannel()<lengthOfSLB){
174 channelInSLB = ppout->getChannel();
177 channelInSLB = ppout->getChannel()-lengthOfSLB;
182 cellType,channelInSLB);
183 slbin =
new TGCChannelSLBIn(slb->getSideType(),
184 slb->getModuleType(),
185 slb->getRegionType(),
◆ getModule()
◆ getModuleIn()
Reimplemented from MuonTGC_Cabling::TGCCable.
Definition at line 194 of file TGCCablePPToSLB.cxx.
195 if(slb->isValid()==
false)
return nullptr;
197 const int slbId = slb->getId();
199 TGCDatabase* databaseP =
m_database[slb->getRegionType()][slb->getModuleType()].get();
200 TGCModuleMap* mapId =
nullptr;
201 const int MaxEntry = databaseP->getMaxEntry();
202 for(
int i=0;
i<MaxEntry;
i++){
203 if(databaseP->getEntry(
i,1)==slbId){
204 int id = databaseP->getEntry(
i,0);
205 TGCModulePP* pp =
new TGCModulePP(slb->getSideType(),
206 slb->getModuleType(),
207 slb->getRegionType(),
211 mapId =
new TGCModuleMap();
215 if(databaseP->getEntry(
i,2)==slbId) {
216 int id = databaseP->getEntry(
i,0);
217 TGCModulePP* pp =
new TGCModulePP(slb->getSideType(),
218 slb->getModuleType(),
219 slb->getRegionType(),
223 mapId =
new TGCModuleMap();
◆ getModuleOut()
Reimplemented from MuonTGC_Cabling::TGCCable.
Definition at line 232 of file TGCCablePPToSLB.cxx.
233 if(pp->isValid()==
false)
return nullptr;
235 const int ppId = pp->getId();
237 TGCDatabase* databaseP =
m_database[pp->getRegionType()][pp->getModuleType()].get();
238 TGCModuleMap* mapId =
nullptr;
239 const int MaxEntry = databaseP->getMaxEntry();
240 for(
int i=0;
i<MaxEntry;
i++){
241 if(databaseP->getEntry(
i,0)==ppId) {
243 TGCModuleSLB* slb=
nullptr;
244 mapId =
new TGCModuleMap();
246 id = databaseP->getEntry(
i,1);
248 slb =
new TGCModuleSLB(pp->getSideType(),
254 mapId->insert(0,slb);
257 id = databaseP->getEntry(
i,2);
259 slb =
new TGCModuleSLB(pp->getSideType(),
265 mapId->insert(1,slb);
◆ m_database
◆ m_type
The documentation for this class was generated from the following files: