ATLAS Offline Software
|
#include <TGCTriggerData.h>
Public Types | |
enum | { CW_BW =0, CW_EIFI =1, CW_TILE =2, CW_NUM =3 } |
enum | { N_PT_THRESH =6, N_SIDE =2, N_OCTANT =8, N_ENDCAP_SSC =19, N_ENDCAP_SECTOR =48, N_ROI_IN_SSC =8, N_EIFI_INPUT =4, N_EIFI_REGION =2, N_EIFI_READOUT =2, N_EIFI_TRIGBIT =4, N_TILE_INPUT =4 } |
enum | { COIN_HH =0x0, COIN_HL =0x1, COIN_LH =0x2, COIN_LL =0x3 } |
Public Member Functions | |
TGCTriggerData () | |
virtual | ~TGCTriggerData () |
std::string | getType (int cwtype) const |
bool | isActive (int cwtype) const |
int8_t | getTYPE (const int16_t lDR, const int16_t hDR, const int16_t lDPhi, const int16_t hDPhi) const |
uint8_t | getBigWheelPt (const uint32_t addr) const |
unsigned short | getTrigBitEifi (int side, int slot, int ssc, int sectorId) const |
unsigned char | getFlagPtEifi (int side, int ssc, int sectorId) const |
unsigned char | getFlagRoiEifi (int side, int ssc, int sectorId) const |
unsigned short | getTrigMaskTile (int ssc, int sectorId, int side) const |
unsigned char | getFlagPtTile (int ssc, int sectorId, int side) const |
uint8_t | getFlagRoiTile (int ssc, int sectorId, int side) 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 = 26 |
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 | PT_MASK = 0x7 |
Mask for pT value for Run-2. 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... | |
static constexpr uint8_t | SECTOR_MASK = 0x3f |
Mask for trigger sector for the (EIFI/TILE) ADDR. More... | |
static constexpr uint8_t | SSC_MASK = 0x1f |
Mask for SSC for the (EIFI/TILE) ADDR. More... | |
static constexpr uint8_t | ADDR_SIDE_SHIFT = 11 |
Bit position of the side bit in the (EIFI/TILE) ADDR. More... | |
static constexpr uint8_t | ADDR_SECTOR_SHIFT = 5 |
Bit position of the trigger sector bit in the (EIFI/TILE) ADDR. More... | |
static constexpr uint8_t | EIFI_TRIGBIT_SHIFT = 2 |
Special bit shift for the EIFI Trigger bit. More... | |
Private Attributes | |
std::string | m_type [CW_NUM] |
bool | m_active [CW_NUM] {} |
std::unordered_map< uint32_t, uint8_t > | m_ptmap_bw |
Run-2 BW-CW LUT map. More... | |
std::unordered_map< uint16_t, uint8_t > | m_flagpt_eifi |
std::unordered_map< uint16_t, uint8_t > | m_flagroi_eifi |
std::unordered_map< uint16_t, uint16_t > | m_trigbit_eifi |
std::unordered_map< uint16_t, uint8_t > | m_flagpt_tile |
std::unordered_map< uint16_t, uint8_t > | m_flagroi_tile |
std::unordered_map< uint16_t, uint16_t > | m_trigbit_tile |
Friends | |
class | TGCTriggerDbAlg |
std::unordered_map<GLOBALADDR, PTVALUE> where GLOBALADDR | 27 bits | uint32_t | side, octant, type, phimod2, module, roi, | DR(0...0x1f for -15...15)<<4 & DPhi(0...0xf for -7...7) PTVALUE | 3 bits | uint8_t | pT value (0x0 and 0x7 is no cand.)
for GLOBALADDR | 29 |28|27|26|25|24|23| 22 |21|20|19|18|17|16|15|14|13|12|11|10| 9| 8| 7| 6| 5| 4| 3| 2| 1| 0| |side| octant | 0|type |phimod2| module | RoI | 0| delta R | delta Phi | where side = 0x0 (A-side), 0x1 (C-side). octant = 0x(0...7) type = 0x0 (HH), 0x1 (HL), 0x2 (LH), 0x3 (LL): HL means 3-station-wire and 2-station-strip.
a) Applied pT in SSC (m_flagpt_eifi) std::unordered_map<ADDR, PTMASK> where ADDR | 12 bits | uint16_t | side, trigger sector, and SSC PTMASK | 3 bits | uint8_t | bit mask for applied pT for SSC
b) Applied RoI in SSC (m_flagroi_eifi) std::unordered_map<ADDR, ROIMASK> where ADDR | 12 bits | uint16_t | side, trigger sector, and SSC ROIMASK | 8 bits | uint8_t | bit mask for applied RoI in SSC
for ADDR | 11 |10| 9| 8| 7| 6| 5| 4| 3| 2| 1| 0| |side| Trig. Sector | SSC | where side = 0x0 (A-side), 0x1 (C-side). trig. sector = 0x(0...2f) SSC = 0x(0...12)
c) Trigger bit for each input (m_trigbit_eifi) std::unordered_map<INPUTADDR, TRIGBIT> where TRIGBIT is: | EI || FI | | Strip | Wire || Strip | Wire | | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 || 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | <–L phi S--> | <–L eta S--> || <–L phi S--> | <–L eta S-->| where each sensor consists of 4 bits information.
for INPUTADDR | 13 |12|11|10| 9| 8| 7| 6| 5| 4| 3| 2| 1| 0| |side| Trig. Sector | SSC |Input| where side = 0x0 (A-side), 0x1 (C-side). trig. sector = 0x(0...2f) SSC = 0x(0...12) Input = 0x(0...3)
a) Applied pT in SSC (m_flagpt_tile) std::unordered_map<ADDR, PTMASK> where ADDR | 12 bits | uint16_t | side, trigger sector, and SSC PTMASK | 3 bits | uint8_t | bit mask for applied pT for SSC
b) Applied RoI in SSC (m_flagroi_tile) std::unordered_map<ADDR, ROIMASK> where ADDR | 12 bits | uint16_t | side, trigger sector, and SSC ROIMASK | 8 bits | uint8_t | bit mask for applied RoI in SSC
c) Trigger bit for each input (m_trigbit_tile) std::unordered_map<ADDR, TRIGBIT> where TRIGBIT is: | Module D (Tile=3) || Module C (Tile=2) || Module B (Tile=1) || Module A (Tile=0) | | 15 | 14 | 13 | 12 || 11 | 10 | 9 | 8 || 7 | 6 | 5 | 4 || 3 | 2 | 1 | 0 | | 0 | LH | D56| D6 || 0 | LH | D56| D6 || 0 | LH | D56 | D6 || 0 | LH | D56 | D6 | for each Module: [1:0] hit with cell information: D6=0x1, D56=0x3 [2] Low/High threshold: 1 = H, 0=L e.g.) 0x7 = D5+D6 energy exceeds the high threshold
for ADDR | 11 |10| 9| 8| 7| 6| 5| 4| 3| 2| 1| 0| |side| Trig. Sector | SSC | where side = 0x0 (A-side), 0x1 (C-side). trig. sector = 0x(0...2f) SSC = 0x(0...12)
Definition at line 101 of file TGCTriggerData.h.
anonymous enum |
anonymous enum |
Enumerator | |
---|---|
N_PT_THRESH | |
N_SIDE | |
N_OCTANT | |
N_ENDCAP_SSC | |
N_ENDCAP_SECTOR | |
N_ROI_IN_SSC | |
N_EIFI_INPUT | |
N_EIFI_REGION | |
N_EIFI_READOUT | |
N_EIFI_TRIGBIT | |
N_TILE_INPUT |
Definition at line 161 of file TGCTriggerData.h.
anonymous enum |
TGCTriggerData::TGCTriggerData | ( | ) |
Definition at line 8 of file TGCTriggerData.cxx.
|
virtual |
Definition at line 11 of file TGCTriggerData.cxx.
uint8_t TGCTriggerData::getBigWheelPt | ( | const uint32_t | addr | ) | const |
Definition at line 36 of file TGCTriggerData.cxx.
unsigned char TGCTriggerData::getFlagPtEifi | ( | int | side, |
int | ssc, | ||
int | sectorId | ||
) | const |
Definition at line 55 of file TGCTriggerData.cxx.
uint8_t TGCTriggerData::getFlagPtTile | ( | int | ssc, |
int | sectorId, | ||
int | side | ||
) | const |
Definition at line 87 of file TGCTriggerData.cxx.
unsigned char TGCTriggerData::getFlagRoiEifi | ( | int | side, |
int | ssc, | ||
int | sectorId | ||
) | const |
Definition at line 66 of file TGCTriggerData.cxx.
uint8_t TGCTriggerData::getFlagRoiTile | ( | int | ssc, |
int | sectorId, | ||
int | side | ||
) | const |
Definition at line 97 of file TGCTriggerData.cxx.
unsigned short TGCTriggerData::getTrigBitEifi | ( | int | side, |
int | slot, | ||
int | ssc, | ||
int | sectorId | ||
) | const |
Definition at line 43 of file TGCTriggerData.cxx.
uint16_t TGCTriggerData::getTrigMaskTile | ( | int | ssc, |
int | sectorId, | ||
int | side | ||
) | const |
Definition at line 77 of file TGCTriggerData.cxx.
int8_t TGCTriggerData::getTYPE | ( | const int16_t | lDR, |
const int16_t | hDR, | ||
const int16_t | lDPhi, | ||
const int16_t | hDPhi | ||
) | const |
Definition at line 24 of file TGCTriggerData.cxx.
std::string TGCTriggerData::getType | ( | int | cwtype | ) | const |
Definition at line 14 of file TGCTriggerData.cxx.
bool TGCTriggerData::isActive | ( | int | cwtype | ) | const |
Definition at line 19 of file TGCTriggerData.cxx.
|
friend |
Definition at line 103 of file TGCTriggerData.h.
|
staticconstexpr |
Bit position of the trigger sector bit in the (EIFI/TILE) ADDR.
Definition at line 156 of file TGCTriggerData.h.
|
staticconstexpr |
Bit position of the side bit in the (EIFI/TILE) ADDR.
Definition at line 154 of file TGCTriggerData.h.
|
staticconstexpr |
Range of DPhi in the BW coincidence window for 3-station.
Definition at line 146 of file TGCTriggerData.h.
|
staticconstexpr |
Range of DPhi in the BW coincidence window for 2-station.
Definition at line 148 of file TGCTriggerData.h.
|
staticconstexpr |
Mask for extracting the deltaPhi from the GLOBALADDR.
Definition at line 135 of file TGCTriggerData.h.
|
staticconstexpr |
Bit position of the deltaPhi bits in the GLOBALADDR.
Definition at line 137 of file TGCTriggerData.h.
|
staticconstexpr |
Range of DR in the BW coincidence window for 3-station.
Definition at line 142 of file TGCTriggerData.h.
|
staticconstexpr |
Range of DR in the BW coincidence window for 2-station.
Definition at line 144 of file TGCTriggerData.h.
|
staticconstexpr |
Mask for extracting the deltaR from the GLOBALADDR.
Definition at line 131 of file TGCTriggerData.h.
|
staticconstexpr |
Bit position of the deltaR bits in the GLOBALADDR.
Definition at line 133 of file TGCTriggerData.h.
|
staticconstexpr |
Special bit shift for the EIFI Trigger bit.
Definition at line 158 of file TGCTriggerData.h.
|
private |
Definition at line 194 of file TGCTriggerData.h.
|
private |
Definition at line 200 of file TGCTriggerData.h.
|
private |
Definition at line 205 of file TGCTriggerData.h.
|
private |
Definition at line 201 of file TGCTriggerData.h.
|
private |
Definition at line 206 of file TGCTriggerData.h.
|
private |
Run-2 BW-CW LUT map.
Definition at line 197 of file TGCTriggerData.h.
|
private |
Definition at line 202 of file TGCTriggerData.h.
|
private |
Definition at line 207 of file TGCTriggerData.h.
|
private |
Definition at line 193 of file TGCTriggerData.h.
|
staticconstexpr |
Mask for extracting the module number from the GLOBALADDR.
Definition at line 123 of file TGCTriggerData.h.
|
staticconstexpr |
Bit position of the module number bits in the GLOBALADDR.
Definition at line 125 of file TGCTriggerData.h.
|
staticconstexpr |
Mask for extracting the octant from the GLOBALADDR.
Definition at line 111 of file TGCTriggerData.h.
|
staticconstexpr |
Bit position of the octant bits in the GLOBALADDR.
Definition at line 113 of file TGCTriggerData.h.
|
staticconstexpr |
Mask for extracting the phi(F or B) from the GLOBALADDR.
Definition at line 119 of file TGCTriggerData.h.
|
staticconstexpr |
Bit position of the module number bits in the GLOBALADDR.
Definition at line 121 of file TGCTriggerData.h.
|
staticconstexpr |
Mask for pT value for Run-2.
Definition at line 139 of file TGCTriggerData.h.
|
staticconstexpr |
Mask for extracting the module number from the GLOBALADDR.
Definition at line 127 of file TGCTriggerData.h.
|
staticconstexpr |
Bit position of the module number bits in the GLOBALADDR.
Definition at line 129 of file TGCTriggerData.h.
|
staticconstexpr |
Mask for trigger sector for the (EIFI/TILE) ADDR.
Definition at line 150 of file TGCTriggerData.h.
|
staticconstexpr |
Mask for extracting the side from the GLOBALADDR.
Definition at line 107 of file TGCTriggerData.h.
|
staticconstexpr |
Bit position of the side bit in the GLOBALADDR.
Definition at line 109 of file TGCTriggerData.h.
|
staticconstexpr |
Mask for SSC for the (EIFI/TILE) ADDR.
Definition at line 152 of file TGCTriggerData.h.
|
staticconstexpr |
Mask for extracting the octant from the GLOBALADDR.
Definition at line 115 of file TGCTriggerData.h.
|
staticconstexpr |
Bit position of the octant bits in the GLOBALADDR.
Definition at line 117 of file TGCTriggerData.h.