ATLAS Offline Software
Loading...
Searching...
No Matches
TGCTriggerLUTs Class Reference

#include <TGCTriggerLUTs.h>

Collaboration diagram for TGCTriggerLUTs:

Public Types

enum  { COIN_HH = 0x0 , COIN_HL = 0x1 , COIN_LH = 0x2 , COIN_LL = 0x3 }
enum  {
  CW_BW =0 , CW_EIFI =1 , CW_TILE =2 , CW_NSW =3 ,
  CW_BIS78 =4 , WHICH_INNER =5 , HOTRoI =6 , LUT_NUM
}
enum  { N_PT_THRESH =15 , N_SIDE =2 , N_OCTANT =8 , N_MODULETYPE =12 }

Public Member Functions

 TGCTriggerLUTs ()
virtual ~TGCTriggerLUTs ()
std::string getData (int cwtype, std::string file) const
std::string getData (int cwtype, int channel) const
std::string getFile (int cwtype, int channel) const
std::string getVersion (int cwtype, int channel=0) const
std::string getType (int cwtype, int channel=0) const
int8_t getBigWheelPt (const uint32_t addr) const

Static Public Attributes

static constexpr uint8_t SIDE_MASK = 0x1
 Mask for extracting the side from the GLOBALADDR.
static constexpr uint8_t SIDE_SHIFT = 29
 Bit position of the side bit in the GLOBALADDR.
static constexpr uint8_t OCTANT_MASK = 0x7
 Mask for extracting the octant from the GLOBALADDR.
static constexpr uint8_t OCTANT_SHIFT = 26
 Bit position of the octant bits in the GLOBALADDR.
static constexpr uint8_t TYPE_MASK = 0x7
 Mask for extracting the octant from the GLOBALADDR.
static constexpr uint8_t TYPE_SHIFT = 23
 Bit position of the octant bits in the GLOBALADDR.
static constexpr uint8_t PHIMOD2_MASK = 0x1
 Mask for extracting the phi(F or B) from the GLOBALADDR.
static constexpr uint8_t PHIMOD2_SHIFT = 22
 Bit position of the module number bits in the GLOBALADDR.
static constexpr uint8_t MODULE_MASK = 0xf
 Mask for extracting the module number from the GLOBALADDR.
static constexpr uint8_t MODULE_SHIFT = 18
 Bit position of the module number bits in the GLOBALADDR.
static constexpr uint8_t ROI_MASK = 0xff
 Mask for extracting the module number from the GLOBALADDR.
static constexpr uint8_t ROI_SHIFT = 10
 Bit position of the module number bits in the GLOBALADDR.
static constexpr uint8_t DR_MASK = 0x1f
 Mask for extracting the deltaR from the GLOBALADDR.
static constexpr uint8_t DR_SHIFT = 4
 Bit position of the deltaR bits in the GLOBALADDR.
static constexpr uint8_t DPHI_MASK = 0xf
 Mask for extracting the deltaPhi from the GLOBALADDR.
static constexpr uint8_t DPHI_SHIFT = 0
 Bit position of the deltaPhi bits in the GLOBALADDR.
static constexpr uint8_t DR_HIGH_RANGE = 15
 Range of DR in the BW coincidence window for 3-station.
static constexpr uint8_t DR_LOW_RANGE = 7
 Range of DR in the BW coincidence window for 2-station.
static constexpr uint8_t DPHI_HIGH_RANGE = 7
 Range of DPhi in the BW coincidence window for 3-station.
static constexpr uint8_t DPHI_LOW_RANGE = 3
 Range of DPhi in the BW coincidence window for 2-station.

Private Attributes

std::map< std::string, std::string > m_datamap [LUT_NUM]
std::vector< std::string > m_data [LUT_NUM]
std::vector< std::string > m_file [LUT_NUM]
std::vector< std::string > m_version [LUT_NUM]
std::vector< std::string > m_type [LUT_NUM]
std::unordered_map< uint32_t, int8_t > m_ptmap_bw

Friends

class TGCTriggerCondAlg
class TGCTriggerBWCWReader

Detailed Description

Definition at line 16 of file TGCTriggerLUTs.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
N_PT_THRESH 
N_SIDE 
N_OCTANT 
N_MODULETYPE 

Definition at line 67 of file TGCTriggerLUTs.h.

◆ anonymous enum

anonymous enum
Enumerator
CW_BW 
CW_EIFI 
CW_TILE 
CW_NSW 
CW_BIS78 
WHICH_INNER 
HOTRoI 
LUT_NUM 

Definition at line 66 of file TGCTriggerLUTs.h.

◆ anonymous enum

anonymous enum
Enumerator
COIN_HH 
COIN_HL 
COIN_LH 
COIN_LL 

Definition at line 65 of file TGCTriggerLUTs.h.

Constructor & Destructor Documentation

◆ TGCTriggerLUTs()

TGCTriggerLUTs::TGCTriggerLUTs ( )

Definition at line 8 of file TGCTriggerLUTs.cxx.

9{
10}

◆ ~TGCTriggerLUTs()

TGCTriggerLUTs::~TGCTriggerLUTs ( )
virtual

Definition at line 13 of file TGCTriggerLUTs.cxx.

14{
15}

Member Function Documentation

◆ getBigWheelPt()

int8_t TGCTriggerLUTs::getBigWheelPt ( const uint32_t addr) const

Definition at line 46 of file TGCTriggerLUTs.cxx.

46 {
47 std::unordered_map<uint32_t, int8_t>::const_iterator it = m_ptmap_bw.find(addr);
48 if(it == m_ptmap_bw.end()) return 0x0; // outside from defined window, i.e. pT=0
49 else return it->second;
50}
std::unordered_map< uint32_t, int8_t > m_ptmap_bw

◆ getData() [1/2]

std::string TGCTriggerLUTs::getData ( int cwtype,
int channel ) const

Definition at line 28 of file TGCTriggerLUTs.cxx.

28 {
29 return m_data[cwtype][channel];
30}
std::vector< std::string > m_data[LUT_NUM]

◆ getData() [2/2]

std::string TGCTriggerLUTs::getData ( int cwtype,
std::string file ) const

Definition at line 18 of file TGCTriggerLUTs.cxx.

18 {
19 auto itr = m_datamap[cwtype].find(file);
20 if (itr == m_datamap[cwtype].end()) {
21 return "";
22 }
23
24 return itr->second;
25}
std::map< std::string, std::string > m_datamap[LUT_NUM]
TFile * file

◆ getFile()

std::string TGCTriggerLUTs::getFile ( int cwtype,
int channel ) const

Definition at line 33 of file TGCTriggerLUTs.cxx.

33 {
34 return m_file[cwtype][channel];
35}
std::vector< std::string > m_file[LUT_NUM]

◆ getType()

std::string TGCTriggerLUTs::getType ( int cwtype,
int channel = 0 ) const

Definition at line 41 of file TGCTriggerLUTs.cxx.

41 {
42 return m_type[cwtype][channel];
43}
std::vector< std::string > m_type[LUT_NUM]

◆ getVersion()

std::string TGCTriggerLUTs::getVersion ( int cwtype,
int channel = 0 ) const

Definition at line 37 of file TGCTriggerLUTs.cxx.

37 {
38 return m_version[cwtype][channel];
39}
std::vector< std::string > m_version[LUT_NUM]

◆ TGCTriggerBWCWReader

friend class TGCTriggerBWCWReader
friend

Definition at line 19 of file TGCTriggerLUTs.h.

◆ TGCTriggerCondAlg

friend class TGCTriggerCondAlg
friend

Definition at line 18 of file TGCTriggerLUTs.h.

Member Data Documentation

◆ DPHI_HIGH_RANGE

uint8_t TGCTriggerLUTs::DPHI_HIGH_RANGE = 7
staticconstexpr

Range of DPhi in the BW coincidence window for 3-station.

Definition at line 61 of file TGCTriggerLUTs.h.

◆ DPHI_LOW_RANGE

uint8_t TGCTriggerLUTs::DPHI_LOW_RANGE = 3
staticconstexpr

Range of DPhi in the BW coincidence window for 2-station.

Definition at line 63 of file TGCTriggerLUTs.h.

◆ DPHI_MASK

uint8_t TGCTriggerLUTs::DPHI_MASK = 0xf
staticconstexpr

Mask for extracting the deltaPhi from the GLOBALADDR.

Definition at line 52 of file TGCTriggerLUTs.h.

◆ DPHI_SHIFT

uint8_t TGCTriggerLUTs::DPHI_SHIFT = 0
staticconstexpr

Bit position of the deltaPhi bits in the GLOBALADDR.

Definition at line 54 of file TGCTriggerLUTs.h.

◆ DR_HIGH_RANGE

uint8_t TGCTriggerLUTs::DR_HIGH_RANGE = 15
staticconstexpr

Range of DR in the BW coincidence window for 3-station.

Definition at line 57 of file TGCTriggerLUTs.h.

◆ DR_LOW_RANGE

uint8_t TGCTriggerLUTs::DR_LOW_RANGE = 7
staticconstexpr

Range of DR in the BW coincidence window for 2-station.

Definition at line 59 of file TGCTriggerLUTs.h.

◆ DR_MASK

uint8_t TGCTriggerLUTs::DR_MASK = 0x1f
staticconstexpr

Mask for extracting the deltaR from the GLOBALADDR.

Definition at line 48 of file TGCTriggerLUTs.h.

◆ DR_SHIFT

uint8_t TGCTriggerLUTs::DR_SHIFT = 4
staticconstexpr

Bit position of the deltaR bits in the GLOBALADDR.

Definition at line 50 of file TGCTriggerLUTs.h.

◆ m_data

std::vector<std::string> TGCTriggerLUTs::m_data[LUT_NUM]
private

Definition at line 85 of file TGCTriggerLUTs.h.

◆ m_datamap

std::map<std::string, std::string> TGCTriggerLUTs::m_datamap[LUT_NUM]
private

Definition at line 84 of file TGCTriggerLUTs.h.

◆ m_file

std::vector<std::string> TGCTriggerLUTs::m_file[LUT_NUM]
private

Definition at line 86 of file TGCTriggerLUTs.h.

◆ m_ptmap_bw

std::unordered_map<uint32_t, int8_t> TGCTriggerLUTs::m_ptmap_bw
private

Definition at line 90 of file TGCTriggerLUTs.h.

◆ m_type

std::vector<std::string> TGCTriggerLUTs::m_type[LUT_NUM]
private

Definition at line 88 of file TGCTriggerLUTs.h.

◆ m_version

std::vector<std::string> TGCTriggerLUTs::m_version[LUT_NUM]
private

Definition at line 87 of file TGCTriggerLUTs.h.

◆ MODULE_MASK

uint8_t TGCTriggerLUTs::MODULE_MASK = 0xf
staticconstexpr

Mask for extracting the module number from the GLOBALADDR.

Definition at line 40 of file TGCTriggerLUTs.h.

◆ MODULE_SHIFT

uint8_t TGCTriggerLUTs::MODULE_SHIFT = 18
staticconstexpr

Bit position of the module number bits in the GLOBALADDR.

Definition at line 42 of file TGCTriggerLUTs.h.

◆ OCTANT_MASK

uint8_t TGCTriggerLUTs::OCTANT_MASK = 0x7
staticconstexpr

Mask for extracting the octant from the GLOBALADDR.

Definition at line 28 of file TGCTriggerLUTs.h.

◆ OCTANT_SHIFT

uint8_t TGCTriggerLUTs::OCTANT_SHIFT = 26
staticconstexpr

Bit position of the octant bits in the GLOBALADDR.

Definition at line 30 of file TGCTriggerLUTs.h.

◆ PHIMOD2_MASK

uint8_t TGCTriggerLUTs::PHIMOD2_MASK = 0x1
staticconstexpr

Mask for extracting the phi(F or B) from the GLOBALADDR.

Definition at line 36 of file TGCTriggerLUTs.h.

◆ PHIMOD2_SHIFT

uint8_t TGCTriggerLUTs::PHIMOD2_SHIFT = 22
staticconstexpr

Bit position of the module number bits in the GLOBALADDR.

Definition at line 38 of file TGCTriggerLUTs.h.

◆ ROI_MASK

uint8_t TGCTriggerLUTs::ROI_MASK = 0xff
staticconstexpr

Mask for extracting the module number from the GLOBALADDR.

Definition at line 44 of file TGCTriggerLUTs.h.

◆ ROI_SHIFT

uint8_t TGCTriggerLUTs::ROI_SHIFT = 10
staticconstexpr

Bit position of the module number bits in the GLOBALADDR.

Definition at line 46 of file TGCTriggerLUTs.h.

◆ SIDE_MASK

uint8_t TGCTriggerLUTs::SIDE_MASK = 0x1
staticconstexpr

Mask for extracting the side from the GLOBALADDR.

Definition at line 24 of file TGCTriggerLUTs.h.

◆ SIDE_SHIFT

uint8_t TGCTriggerLUTs::SIDE_SHIFT = 29
staticconstexpr

Bit position of the side bit in the GLOBALADDR.

Definition at line 26 of file TGCTriggerLUTs.h.

◆ TYPE_MASK

uint8_t TGCTriggerLUTs::TYPE_MASK = 0x7
staticconstexpr

Mask for extracting the octant from the GLOBALADDR.

Definition at line 32 of file TGCTriggerLUTs.h.

◆ TYPE_SHIFT

uint8_t TGCTriggerLUTs::TYPE_SHIFT = 23
staticconstexpr

Bit position of the octant bits in the GLOBALADDR.

Definition at line 34 of file TGCTriggerLUTs.h.


The documentation for this class was generated from the following files: