ATLAS Offline Software
Loading...
Searching...
No Matches
LVL1MUCTPIPHASE1::SectorNumberConverter Struct Reference
Collaboration diagram for LVL1MUCTPIPHASE1::SectorNumberConverter:

Public Member Functions

std::pair< int, int > barrel_global2local (int sector)
int barrel_local2global (int number, int mioct)
std::pair< int, int > endcap_global2local (int sector)
int endcap_local2global (int number, int mioct)
std::pair< int, int > forward_global2local (int sector)
int forward_local2global (int number, int mioct)

Detailed Description

Definition at line 34 of file MuonSectorProcessor.cxx.

Member Function Documentation

◆ barrel_global2local()

std::pair< int, int > LVL1MUCTPIPHASE1::SectorNumberConverter::barrel_global2local ( int sector)
inline

Definition at line 36 of file MuonSectorProcessor.cxx.

36 {
37 auto inoct_sector = ((sector + 2) % 4);
38 auto mioct_number = ((sector + 2) / 4) % 8;
39 return std::make_pair(inoct_sector,mioct_number);
40 }

◆ barrel_local2global()

int LVL1MUCTPIPHASE1::SectorNumberConverter::barrel_local2global ( int number,
int mioct )
inline

Definition at line 42 of file MuonSectorProcessor.cxx.

42 {
43 return ((30 + 4 * mioct) + number) % 32;
44 }
std::string number(const double &d, const std::string &s)
Definition utils.cxx:186

◆ endcap_global2local()

std::pair< int, int > LVL1MUCTPIPHASE1::SectorNumberConverter::endcap_global2local ( int sector)
inline

Definition at line 46 of file MuonSectorProcessor.cxx.

46 {
47 auto inoct_sector = ((sector + 1) % 6);
48 auto mioct_number = ((sector + 1) / 6) % 8;
49 return std::make_pair(inoct_sector,mioct_number);
50
51 }

◆ endcap_local2global()

int LVL1MUCTPIPHASE1::SectorNumberConverter::endcap_local2global ( int number,
int mioct )
inline

Definition at line 53 of file MuonSectorProcessor.cxx.

53 {
54 return ((47 + 6 * mioct) + number) % 48;
55 }

◆ forward_global2local()

std::pair< int, int > LVL1MUCTPIPHASE1::SectorNumberConverter::forward_global2local ( int sector)
inline

Definition at line 56 of file MuonSectorProcessor.cxx.

56 {
57 auto inoct_sector = (sector % 3);
58 auto mioct_number = (sector / 3) % 8;
59 return std::make_pair(inoct_sector,mioct_number);
60
61 }

◆ forward_local2global()

int LVL1MUCTPIPHASE1::SectorNumberConverter::forward_local2global ( int number,
int mioct )
inline

Definition at line 63 of file MuonSectorProcessor.cxx.

63 {
64 return ((0 + 3 * mioct) + number) % 24;
65 }

The documentation for this struct was generated from the following file: