#include <TGCCableInPP.h>
|  | 
| enum | CableType { NoCableType =-1, 
InASD, 
ASDToPP, 
InPP,
 PPToSLB, 
InSLB, 
SLBToHPB, 
HPBToSL,
 SLBToSSW, 
SSWToROD, 
MaxCableType
 }
 | 
|  | 
Definition at line 21 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()
  
  | 
        
          | virtual MuonTGC_Cabling::TGCCableInPP::~TGCCableInPP | ( |  | ) |  |  | virtualdefault | 
 
 
◆ 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 43 of file TGCCableInPP.cxx.
   45   if(ppout->isValid()==
false) 
return nullptr;
 
   50   TGCDatabase* databaseP[2];
 
   51   databaseP[0] = 
m_database[ppout->getRegionType()][moduleType].get();
 
   61   int id=-1, block=-1, 
channel=-1;
 
   64   for(
int idatabaseP=0; idatabaseP<ndatabaseP; idatabaseP++) {
 
   74       {ppout->getId(), ppout->getBlock(), ppout->getChannel()};
 
   75     int i = databaseP[idatabaseP]->getIndexDBIn(indexIn);
 
   80       id = databaseP[idatabaseP]->getEntry(
i,3);
 
   81       block = databaseP[idatabaseP]->getEntry(
i,4);
 
   82       channel = databaseP[idatabaseP]->getEntry(
i,5);
 
   83       if(
id==-1 && block==-1 && 
channel==-1) 
continue;
 
   88       if(databaseP[idatabaseP]->getEntrySize(
i)==9) {
 
   89         id = databaseP[idatabaseP]->getEntry(
i,6);
 
   90         block = databaseP[idatabaseP]->getEntry(
i,7);
 
   91         channel = databaseP[idatabaseP]->getEntry(
i,8);
 
   97   if(!
found) 
return nullptr;
 
   99   TGCChannelPPIn* ppin = 
 
  100     new TGCChannelPPIn(ppout->getSideType(),
 
  102                ppout->getRegionType(),
 
 
 
 
◆ getChannelOut()
Reimplemented from MuonTGC_Cabling::TGCCable.
Definition at line 111 of file TGCCableInPP.cxx.
  113   if(ppin->isValid()==
false) 
return nullptr;
 
  115   const int ppinChannel = ppin->getChannel();
 
  116   const int ppinBlock = ppin->getBlock();
 
  117   const int ppinId = ppin->getId();
 
  119   TGCDatabase* databaseP =
 
  120     m_database[ppin->getRegionType()][ppin->getModuleType()].get();
 
  122   TGCChannelPPOut* ppout = 
nullptr;
 
  123   const int MaxEntry = databaseP->getMaxEntry();
 
  124   for(
int i=0; 
i<MaxEntry; 
i++){
 
  125     bool cond1 = (databaseP->getEntry(
i,5)==ppinChannel)&& 
 
  126       (databaseP->getEntry(
i,4)==ppinBlock)&&
 
  127       (databaseP->getEntry(
i,3)==ppinId);
 
  129     bool cond2 = (databaseP->getEntrySize(
i)==9)&&
 
  130       (databaseP->getEntry(
i,8)==ppinChannel)&&
 
  131       (databaseP->getEntry(
i,7)==ppinBlock)&&
 
  132       (databaseP->getEntry(
i,6)==ppinId);
 
  135       int id = databaseP->getEntry(
i,0);
 
  136       int block = databaseP->getEntry(
i,1);
 
  137       int channel = databaseP->getEntry(
i,2);
 
  140       int channelInSLB = -1;
 
  143       if(block==0||block==2){
 
  153       if(channelInSLB<adjacentOfD||channelInSLB>=lengthOfD-adjacentOfD)
 
  159       channelInSLB = 
channel-lengthOfD;
 
  160       if(channelInSLB<adjacentOfC||channelInSLB>=lengthOfC-adjacentOfC)
 
  164       if(block==1||block==3){
 
  174       if(channelInSLB<adjacentOfB||channelInSLB>=lengthOfB-adjacentOfB)
 
  180       channelInSLB = 
channel-lengthOfB;
 
  181       if(channelInSLB<adjacentOfA||channelInSLB>=lengthOfA-adjacentOfA)
 
  193     ppout = 
new TGCChannelPPOut(ppin->getSideType(),
 
  194                     ppin->getModuleType(),
 
  195                     ppin->getRegionType(),
 
 
 
 
◆ getModuleIn()
  
  |  | inlineprotectedvirtualinherited | 
 
 
◆ getModuleOut()
  
  |  | inlineprotectedvirtualinherited | 
 
 
◆ m_database
◆ m_type
The documentation for this class was generated from the following files: