#include <TGCCableInPP.h>
|
enum | CableType {
NoCableType =-1,
InASD,
ASDToPP,
InPP,
PPToSLB,
InSLB,
SLBToHPB,
HPBToSL,
SLBToSSW,
SSWToROD,
MaxCableType
} |
|
Definition at line 19 of file TGCCableInPP.h.
◆ CableType
Enumerator |
---|
NoCableType | |
InASD | |
ASDToPP | |
InPP | |
PPToSLB | |
InSLB | |
SLBToHPB | |
HPBToSL | |
SLBToSSW | |
SSWToROD | |
MaxCableType | |
Definition at line 18 of file TGCCable.h.
◆ TGCCableInPP() [1/2]
MuonTGC_Cabling::TGCCableInPP::TGCCableInPP |
( |
const std::string & |
filename | ) |
|
◆ ~TGCCableInPP()
MuonTGC_Cabling::TGCCableInPP::~TGCCableInPP |
( |
void |
| ) |
|
|
virtual |
◆ TGCCableInPP() [2/2]
MuonTGC_Cabling::TGCCableInPP::TGCCableInPP |
( |
void |
| ) |
|
|
inlineprivate |
◆ getCableType()
CableType MuonTGC_Cabling::TGCCable::getCableType |
( |
void |
| ) |
const |
|
inlineinherited |
◆ getChannel()
◆ getChannelIn()
Reimplemented from MuonTGC_Cabling::TGCCable.
Definition at line 61 of file TGCCableInPP.cxx.
63 if(ppout->isValid()==
false)
return nullptr;
68 TGCDatabase* databaseP[2];
69 databaseP[0] =
m_database[ppout->getRegionType()][moduleType];
79 int id=-1, block=-1,
channel=-1;
82 for(
int idatabaseP=0; idatabaseP<ndatabaseP; idatabaseP++) {
92 {ppout->getId(), ppout->getBlock(), ppout->getChannel()};
93 int i = databaseP[idatabaseP]->getIndexDBIn(indexIn);
98 id = databaseP[idatabaseP]->getEntry(
i,3);
99 block = databaseP[idatabaseP]->getEntry(
i,4);
100 channel = databaseP[idatabaseP]->getEntry(
i,5);
101 if(
id==-1 && block==-1 &&
channel==-1)
continue;
106 if(databaseP[idatabaseP]->getEntrySize(
i)==9) {
107 id = databaseP[idatabaseP]->getEntry(
i,6);
108 block = databaseP[idatabaseP]->getEntry(
i,7);
109 channel = databaseP[idatabaseP]->getEntry(
i,8);
115 if(!
found)
return nullptr;
117 TGCChannelPPIn* ppin =
118 new TGCChannelPPIn(ppout->getSideType(),
120 ppout->getRegionType(),
◆ getChannelOut()
Reimplemented from MuonTGC_Cabling::TGCCable.
Definition at line 129 of file TGCCableInPP.cxx.
131 if(ppin->isValid()==
false)
return nullptr;
133 const int ppinChannel = ppin->getChannel();
134 const int ppinBlock = ppin->getBlock();
135 const int ppinId = ppin->getId();
137 TGCDatabase* databaseP =
138 m_database[ppin->getRegionType()][ppin->getModuleType()];
140 TGCChannelPPOut* ppout =
nullptr;
142 for(
int i=0;
i<MaxEntry;
i++){
143 bool cond1 = (databaseP->getEntry(
i,5)==ppinChannel)&&
144 (databaseP->getEntry(
i,4)==ppinBlock)&&
145 (databaseP->getEntry(
i,3)==ppinId);
147 bool cond2 = (databaseP->getEntrySize(
i)==9)&&
148 (databaseP->getEntry(
i,8)==ppinChannel)&&
149 (databaseP->getEntry(
i,7)==ppinBlock)&&
150 (databaseP->getEntry(
i,6)==ppinId);
153 int id = databaseP->getEntry(
i,0);
154 int block = databaseP->getEntry(
i,1);
155 int channel = databaseP->getEntry(
i,2);
158 int channelInSLB = -1;
161 if(block==0||block==2){
171 if(channelInSLB<adjacentOfD||channelInSLB>=lengthOfD-adjacentOfD)
177 channelInSLB =
channel-lengthOfD;
178 if(channelInSLB<adjacentOfC||channelInSLB>=lengthOfC-adjacentOfC)
182 if(block==1||block==3){
192 if(channelInSLB<adjacentOfB||channelInSLB>=lengthOfB-adjacentOfB)
198 channelInSLB =
channel-lengthOfB;
199 if(channelInSLB<adjacentOfA||channelInSLB>=lengthOfA-adjacentOfA)
211 ppout =
new TGCChannelPPOut(ppin->getSideType(),
212 ppin->getModuleType(),
213 ppin->getRegionType(),
◆ getModuleIn()
|
inlineprotectedvirtualinherited |
◆ getModuleOut()
|
inlineprotectedvirtualinherited |
◆ m_database
◆ m_type
The documentation for this class was generated from the following files: