#include <MapperSTG.h>
|  | 
|  | MapperSTG () | 
|  | 
| virtual | ~MapperSTG () | 
|  | 
| uint16_t | nchannels (uint8_t channel_type, uint8_t sector_type, uint8_t feb_radius, uint8_t layer) const | 
|  | 
| uint16_t | channel_number (uint8_t channel_type, uint8_t sector_type, uint8_t feb_radius, uint8_t layer, uint16_t vmm, uint16_t vmm_chan) const | 
|  | 
| bool | vmm_info (uint8_t channel_type, uint8_t sector_type, uint8_t mod_radius, uint8_t layer, uint16_t channel_number, uint16_t &vmm, uint16_t &vmm_chan) const | 
|  | 
| bool | elink_info (uint8_t channel_type, uint8_t sector_type, uint8_t mod_radius, uint8_t layer, uint16_t channel_number, uint &elink) const | 
|  | 
| uint16_t | geoVmmToRocVmm (uint16_t geoVMM) const | 
|  | 
| uint16_t | AB_to_Athena_channel_number (uint8_t channel_type, uint8_t sector_type, uint8_t feb_radius, uint8_t layer, uint16_t channel_number) const | 
|  | 
| uint16_t | Athena_to_AB_channel_number (uint8_t channel_type, uint8_t sector_type, uint8_t feb_radius, uint8_t layer, uint16_t channel_number) const | 
|  | 
| uint16_t | NSWID_to_Athena_channel_number (uint8_t channel_type, uint8_t sector_type, uint8_t feb_radius, uint8_t layer, uint16_t channel_number, bool sideA) const | 
|  | 
| uint16_t | Athena_to_NSWID_channel_number (uint8_t channel_type, uint8_t sector_type, uint8_t feb_radius, uint8_t layer, uint16_t channel_number, bool sideA) const | 
|  | 
Definition at line 17 of file MapperSTG.h.
 
◆ MapperSTG()
  
  | 
        
          | Muon::nsw::MapperSTG::MapperSTG | ( |  | ) |  |  | inline | 
 
 
◆ ~MapperSTG()
  
  | 
        
          | virtual Muon::nsw::MapperSTG::~MapperSTG | ( |  | ) |  |  | inlinevirtual | 
 
 
◆ AB_to_Athena_channel_number()
      
        
          | uint16_t Muon::nsw::MapperSTG::AB_to_Athena_channel_number | ( | uint8_t | channel_type, | 
        
          |  |  | uint8_t | sector_type, | 
        
          |  |  | uint8_t | feb_radius, | 
        
          |  |  | uint8_t | layer, | 
        
          |  |  | uint16_t | channel_number | 
        
          |  | ) |  | const | 
      
 
Definition at line 119 of file MapperSTG.cxx.
  129     bool isPivot = (sector_type == 0)^(
layer < 4);
 
  137     std::pair<uint16_t, uint16_t> pad_grid = s_stgc_pad_grid.at(
pid);
 
  141     uint16_t padRow_ATH = pad_grid.first - padRow_AB + 1;
 
  142     uint16_t padCol_ATH = (
layer%2==0) ? pad_grid.second - padCol_AB + 1 : padCol_AB; 
 
 
 
 
◆ Athena_to_AB_channel_number()
      
        
          | uint16_t Muon::nsw::MapperSTG::Athena_to_AB_channel_number | ( | uint8_t | channel_type, | 
        
          |  |  | uint8_t | sector_type, | 
        
          |  |  | uint8_t | feb_radius, | 
        
          |  |  | uint8_t | layer, | 
        
          |  |  | uint16_t | channel_number | 
        
          |  | ) |  | const | 
      
 
Definition at line 153 of file MapperSTG.cxx.
  164     bool isPivot = (sector_type == 0)^(
layer < 4);
 
  172     std::pair<uint16_t, uint16_t> pad_grid = s_stgc_pad_grid.at(
pid);
 
  177     uint16_t padRow_AB  = pad_grid.first - padRow_ATH + 1;
 
  178     uint16_t padCol_AB  = (
layer%2==0) ? pad_grid.second - padCol_ATH + 1 : padCol_ATH;  
 
 
 
 
◆ Athena_to_NSWID_channel_number()
      
        
          | uint16_t Muon::nsw::MapperSTG::Athena_to_NSWID_channel_number | ( | uint8_t | channel_type, | 
        
          |  |  | uint8_t | sector_type, | 
        
          |  |  | uint8_t | feb_radius, | 
        
          |  |  | uint8_t | layer, | 
        
          |  |  | uint16_t | channel_number, | 
        
          |  |  | bool | sideA | 
        
          |  | ) |  | const | 
      
 
Definition at line 222 of file MapperSTG.cxx.
  241     std::pair<uint16_t, uint16_t> pad_grid = s_stgc_pad_grid.at(
pid);
 
  246     uint16_t padCol_NSW = (
sideA) ? pad_grid.second - padCol_ATH + 1 : padCol_ATH;
 
 
 
 
◆ channel_number()
      
        
          | uint16_t Muon::nsw::MapperSTG::channel_number | ( | uint8_t | channel_type, | 
        
          |  |  | uint8_t | sector_type, | 
        
          |  |  | uint8_t | feb_radius, | 
        
          |  |  | uint8_t | layer, | 
        
          |  |  | uint16_t | vmm, | 
        
          |  |  | uint16_t | vmm_chan | 
        
          |  | ) |  | const | 
      
 
Definition at line 9 of file MapperSTG.cxx.
   20     int increment = chanLast >= chanFirst ? 1 : -1;
 
   22     if ( (
chan - chanFirst)*(
chan - chanLast) <= 0 ) {
 
   27     counter += increment*(chanLast - chanFirst) + 1;
 
 
 
 
◆ elink_info()
      
        
          | bool Muon::nsw::MapperSTG::elink_info | ( | uint8_t | channel_type, | 
        
          |  |  | uint8_t | sector_type, | 
        
          |  |  | uint8_t | mod_radius, | 
        
          |  |  | uint8_t | layer, | 
        
          |  |  | uint16_t | channel_number, | 
        
          |  |  | uint & | elink | 
        
          |  | ) |  | const | 
      
 
Definition at line 83 of file MapperSTG.cxx.
   85   if(mod_radius>0) {elink = 0; 
return true;} 
 
 
 
 
◆ geoVmmToRocVmm()
      
        
          | uint16_t Muon::nsw::MapperSTG::geoVmmToRocVmm | ( | uint16_t | geoVMM | ) | const | 
      
 
Definition at line 112 of file MapperSTG.cxx.
  113       constexpr 
uint16_t vmmRemap[8] = { 2, 3, 0, 1, 5, 4, 6, 7 };
 
  114       return vmmRemap[VMM];
 
 
 
 
◆ nchannels()
      
        
          | uint16_t Muon::nsw::MapperSTG::nchannels | ( | uint8_t | channel_type, | 
        
          |  |  | uint8_t | sector_type, | 
        
          |  |  | uint8_t | feb_radius, | 
        
          |  |  | uint8_t | layer | 
        
          |  | ) |  | const | 
      
 
Definition at line 35 of file MapperSTG.cxx.
   38   const auto& 
ranges = s_stgc_channel_map.at(
pid);
 
   44     int increment = chanLast >= chanFirst ? 1 : -1;
 
   45     counter += increment*(chanLast - chanFirst) + 1; 
 
 
 
 
◆ NSWID_to_Athena_channel_number()
      
        
          | uint16_t Muon::nsw::MapperSTG::NSWID_to_Athena_channel_number | ( | uint8_t | channel_type, | 
        
          |  |  | uint8_t | sector_type, | 
        
          |  |  | uint8_t | feb_radius, | 
        
          |  |  | uint8_t | layer, | 
        
          |  |  | uint16_t | channel_number, | 
        
          |  |  | bool | sideA | 
        
          |  | ) |  | const | 
      
 
Definition at line 188 of file MapperSTG.cxx.
  207     std::pair<uint16_t, uint16_t> pad_grid = s_stgc_pad_grid.at(
pid);
 
  211     uint16_t padCol_ATH = (
sideA) ? pad_grid.second - padCol_NSW + 1 : padCol_NSW;
 
 
 
 
◆ private_id()
  
  | 
        
          | uint16_t Muon::nsw::MapperSTG::private_id | ( | uint8_t | channel_type, |  
          |  |  | uint8_t | sector_type, |  
          |  |  | uint8_t | feb_radius, |  
          |  |  | uint8_t | layer |  
          |  | ) |  |  |  | inlinestatic | 
 
 
◆ vmm_info()
      
        
          | bool Muon::nsw::MapperSTG::vmm_info | ( | uint8_t | channel_type, | 
        
          |  |  | uint8_t | sector_type, | 
        
          |  |  | uint8_t | mod_radius, | 
        
          |  |  | uint8_t | layer, | 
        
          |  |  | uint16_t | channel_number, | 
        
          |  |  | uint16_t & | vmm, | 
        
          |  |  | uint16_t & | vmm_chan | 
        
          |  | ) |  | const | 
      
 
Definition at line 53 of file MapperSTG.cxx.
   60   const auto& 
ranges = s_stgc_channel_map.at(
pid);
 
   66     int increment = chanLast >= chanFirst ? 1 : -1;
 
   67     int nchan     = increment*(chanLast - chanFirst) + 1;        
 
   70       int chan = chanFirst + increment*(AB_channel - 
counter);
 
 
 
 
The documentation for this class was generated from the following files:
 
bool vmm_info(uint8_t channel_type, uint8_t sector_type, uint8_t mod_radius, uint8_t layer, uint16_t channel_number, uint16_t &vmm, uint16_t &vmm_chan) const
uint16_t channel_number(uint8_t channel_type, uint8_t sector_type, uint8_t feb_radius, uint8_t layer, uint16_t vmm, uint16_t vmm_chan) const