ATLAS Offline Software
Public Types | Public Member Functions | Static Public Attributes | Private Attributes | Friends | List of all members
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. More...
 
static constexpr uint8_t SIDE_SHIFT = 29
 Bit position of the side bit in the GLOBALADDR. More...
 
static constexpr uint8_t OCTANT_MASK = 0x7
 Mask for extracting the octant from the GLOBALADDR. More...
 
static constexpr uint8_t OCTANT_SHIFT = 26
 Bit position of the octant bits in the GLOBALADDR. More...
 
static constexpr uint8_t TYPE_MASK = 0x7
 Mask for extracting the octant from the GLOBALADDR. More...
 
static constexpr uint8_t TYPE_SHIFT = 23
 Bit position of the octant bits in the GLOBALADDR. More...
 
static constexpr uint8_t PHIMOD2_MASK = 0x1
 Mask for extracting the phi(F or B) from the GLOBALADDR. More...
 
static constexpr uint8_t PHIMOD2_SHIFT = 22
 Bit position of the module number bits in the GLOBALADDR. More...
 
static constexpr uint8_t MODULE_MASK = 0xf
 Mask for extracting the module number from the GLOBALADDR. More...
 
static constexpr uint8_t MODULE_SHIFT = 18
 Bit position of the module number bits in the GLOBALADDR. More...
 
static constexpr uint8_t ROI_MASK = 0xff
 Mask for extracting the module number from the GLOBALADDR. More...
 
static constexpr uint8_t ROI_SHIFT = 10
 Bit position of the module number bits in the GLOBALADDR. More...
 
static constexpr uint8_t DR_MASK = 0x1f
 Mask for extracting the deltaR from the GLOBALADDR. More...
 
static constexpr uint8_t DR_SHIFT = 4
 Bit position of the deltaR bits in the GLOBALADDR. More...
 
static constexpr uint8_t DPHI_MASK = 0xf
 Mask for extracting the deltaPhi from the GLOBALADDR. More...
 
static constexpr uint8_t DPHI_SHIFT = 0
 Bit position of the deltaPhi bits in the GLOBALADDR. More...
 
static constexpr uint8_t DR_HIGH_RANGE = 15
 Range of DR in the BW coincidence window for 3-station. More...
 
static constexpr uint8_t DR_LOW_RANGE = 7
 Range of DR in the BW coincidence window for 2-station. More...
 
static constexpr uint8_t DPHI_HIGH_RANGE = 7
 Range of DPhi in the BW coincidence window for 3-station. More...
 
static constexpr uint8_t DPHI_LOW_RANGE = 3
 Range of DPhi in the BW coincidence window for 2-station. More...
 

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
COIN_HH 
COIN_HL 
COIN_LH 
COIN_LL 

Definition at line 65 of file TGCTriggerLUTs.h.

65 { COIN_HH = 0x0, COIN_HL = 0x1, COIN_LH = 0x2, COIN_LL = 0x3 };

◆ 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
N_PT_THRESH 
N_SIDE 
N_OCTANT 
N_MODULETYPE 

Definition at line 67 of file TGCTriggerLUTs.h.

67  {N_PT_THRESH=15,
68  N_SIDE=2,
69  N_OCTANT=8,
70  N_MODULETYPE=12};

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 }

◆ 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 }

◆ 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 }

◆ 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 }

◆ 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 }

◆ 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 }

Friends And Related Function Documentation

◆ 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

constexpr 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

constexpr 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

constexpr 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

constexpr 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

constexpr 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

constexpr 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

constexpr 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

constexpr 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

constexpr 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

constexpr 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

constexpr 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

constexpr 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

constexpr 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

constexpr 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

constexpr 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

constexpr 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

constexpr 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

constexpr 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

constexpr 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

constexpr 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:
TGCTriggerLUTs::m_file
std::vector< std::string > m_file[LUT_NUM]
Definition: TGCTriggerLUTs.h:86
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
TGCTriggerLUTs::m_ptmap_bw
std::unordered_map< uint32_t, int8_t > m_ptmap_bw
Definition: TGCTriggerLUTs.h:90
skel.it
it
Definition: skel.GENtoEVGEN.py:396
TGCTriggerLUTs::WHICH_INNER
@ WHICH_INNER
Definition: TGCTriggerLUTs.h:66
TGCTriggerLUTs::CW_TILE
@ CW_TILE
Definition: TGCTriggerLUTs.h:66
TGCTriggerLUTs::N_SIDE
@ N_SIDE
Definition: TGCTriggerLUTs.h:68
TGCTriggerLUTs::CW_BW
@ CW_BW
Definition: TGCTriggerLUTs.h:66
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
TGCTriggerLUTs::CW_BIS78
@ CW_BIS78
Definition: TGCTriggerLUTs.h:66
TGCTriggerLUTs::N_MODULETYPE
@ N_MODULETYPE
Definition: TGCTriggerLUTs.h:70
TGCTriggerLUTs::HOTRoI
@ HOTRoI
Definition: TGCTriggerLUTs.h:66
TGCTriggerLUTs::CW_EIFI
@ CW_EIFI
Definition: TGCTriggerLUTs.h:66
file
TFile * file
Definition: tile_monitor.h:29
TGCTriggerLUTs::N_PT_THRESH
@ N_PT_THRESH
Definition: TGCTriggerLUTs.h:67
TGCTriggerLUTs::m_type
std::vector< std::string > m_type[LUT_NUM]
Definition: TGCTriggerLUTs.h:88
TGCTriggerLUTs::m_data
std::vector< std::string > m_data[LUT_NUM]
Definition: TGCTriggerLUTs.h:85
TGCTriggerLUTs::N_OCTANT
@ N_OCTANT
Definition: TGCTriggerLUTs.h:69
TGCTriggerLUTs::LUT_NUM
@ LUT_NUM
Definition: TGCTriggerLUTs.h:66
TGCTriggerLUTs::m_version
std::vector< std::string > m_version[LUT_NUM]
Definition: TGCTriggerLUTs.h:87
TGCTriggerLUTs::COIN_LH
@ COIN_LH
Definition: TGCTriggerLUTs.h:65
TGCTriggerLUTs::COIN_HH
@ COIN_HH
Definition: TGCTriggerLUTs.h:65
TGCTriggerLUTs::COIN_HL
@ COIN_HL
Definition: TGCTriggerLUTs.h:65
TGCTriggerLUTs::COIN_LL
@ COIN_LL
Definition: TGCTriggerLUTs.h:65
TGCTriggerLUTs::CW_NSW
@ CW_NSW
Definition: TGCTriggerLUTs.h:66
TGCTriggerLUTs::m_datamap
std::map< std::string, std::string > m_datamap[LUT_NUM]
Definition: TGCTriggerLUTs.h:84