ATLAS Offline Software
TGCTileMuCoincidenceLUT.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TrigT1TGC_TGCTileMuCoincidenceLUT_h
6 #define TrigT1TGC_TGCTileMuCoincidenceLUT_h
7 
9 
12 
13 #include <map>
14 #include <string>
15 
16 namespace LVL1TGC {
17 
62 {
63  public:
65  const SG::ReadCondHandleKey<TGCTriggerData>& readCondKey,
66  const std::string& version="NA");
67  virtual ~TGCTileMuCoincidenceLUT();
68 
71 
72  uint16_t getAddr(int16_t side, int16_t sec, int16_t ssc) const;
73 
74  int getFlagPT(const int pt, const int16_t ssc, const int16_t sec, const int16_t side) const;
75  int getFlagROI(const int roi, const int16_t ssc, const int16_t sec, const int16_t side) const;
76  int getTrigMask(const int module, const int16_t ssc, const int16_t sec, const int16_t side) const;
77 
78  const std::string& getVersion() const { return m_verName; }
79  bool readMap();
80 
81  enum TileMuMask {
82  TM_NA = 0,
83  TM_D6_L = 1,
84  TM_D6_H = 5,
85  TM_D56_L = 3,
86  TM_D56_H = 7
87  };
88 
90 
92  const LVL1TGCTrigger::TGCArguments* tgcArgs() const { return m_tgcArgs; }
93 
94  private:
95  std::unordered_map<uint16_t, uint8_t> m_flagpt;
96  std::unordered_map<uint16_t, uint8_t> m_flagroi;
97  std::unordered_map<uint16_t, uint16_t> m_trigbit;
98 
99  std::string m_verName;
102 };
103 
104 } // end of namespace
105 
106 #endif
107 
108 
LVL1TGC::TGCTileMuCoincidenceLUT::m_trigbit
std::unordered_map< uint16_t, uint16_t > m_trigbit
Definition: TGCTileMuCoincidenceLUT.h:97
LVL1TGC::TGCTileMuCoincidenceLUT::getTrigMask
int getTrigMask(const int module, const int16_t ssc, const int16_t sec, const int16_t side) const
Definition: TGCTileMuCoincidenceLUT.cxx:129
LVL1TGC::TGCTileMuCoincidenceLUT::TM_D56_L
@ TM_D56_L
Definition: TGCTileMuCoincidenceLUT.h:85
LVL1TGC::TGCTileMuCoincidenceLUT::tgcArgs
LVL1TGCTrigger::TGCArguments * tgcArgs()
Definition: TGCTileMuCoincidenceLUT.h:91
LVL1TGC::TGCTileMuCoincidenceLUT::m_verName
std::string m_verName
Definition: TGCTileMuCoincidenceLUT.h:99
test_pyathena.pt
pt
Definition: test_pyathena.py:11
LVL1TGC::TGCTileMuCoincidenceLUT
This class stores the LUT for Tile-Muon coincidence of the Run-3 L1Muon Endcap trigger.
Definition: TGCTileMuCoincidenceLUT.h:62
LVL1TGC::TGCTileMuCoincidenceLUT::TGCTileMuCoincidenceLUT
TGCTileMuCoincidenceLUT(LVL1TGCTrigger::TGCArguments *, const SG::ReadCondHandleKey< TGCTriggerData > &readCondKey, const std::string &version="NA")
Definition: TGCTileMuCoincidenceLUT.cxx:14
LVL1TGC::TGCTileMuCoincidenceLUT::getFlagPT
int getFlagPT(const int pt, const int16_t ssc, const int16_t sec, const int16_t side) const
Definition: TGCTileMuCoincidenceLUT.cxx:150
xAOD::int16_t
setScaleOne setStatusOne setSaturated int16_t
Definition: gFexGlobalRoI_v1.cxx:55
ReadCondHandle.h
LVL1TGC::TGCTileMuCoincidenceLUT::TM_D6_L
@ TM_D6_L
Definition: TGCTileMuCoincidenceLUT.h:83
LVL1TGC::TGCTileMuCoincidenceLUT::getVersion
const std::string & getVersion() const
Definition: TGCTileMuCoincidenceLUT.h:78
TRT::Hit::side
@ side
Definition: HitInfo.h:83
python.PyAthena.module
module
Definition: PyAthena.py:131
LVL1TGC::TGCTileMuCoincidenceLUT::m_tgcArgs
LVL1TGCTrigger::TGCArguments * m_tgcArgs
Definition: TGCTileMuCoincidenceLUT.h:100
LVL1TGC::TGCTileMuCoincidenceLUT::getAddr
uint16_t getAddr(int16_t side, int16_t sec, int16_t ssc) const
Definition: TGCTileMuCoincidenceLUT.cxx:190
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
LVL1TGC::TGCTileMuCoincidenceLUT::readMap
bool readMap()
Definition: TGCTileMuCoincidenceLUT.cxx:44
LVL1TGC::TGCTileMuCoincidenceLUT::m_readCondKey
const SG::ReadCondHandleKey< TGCTriggerData > & m_readCondKey
Definition: TGCTileMuCoincidenceLUT.h:101
LVL1TGC
Definition: BigWheelCoincidenceLUT.cxx:20
LVL1TGC::TGCTileMuCoincidenceLUT::~TGCTileMuCoincidenceLUT
virtual ~TGCTileMuCoincidenceLUT()
Definition: TGCTileMuCoincidenceLUT.cxx:40
LVL1TGC::TGCTileMuCoincidenceLUT::TM_D6_H
@ TM_D6_H
Definition: TGCTileMuCoincidenceLUT.h:84
LVL1TGC::TGCTileMuCoincidenceLUT::operator=
TGCTileMuCoincidenceLUT & operator=(const TGCTileMuCoincidenceLUT &right)=delete
LVL1TGC::TGCTileMuCoincidenceLUT::m_flagpt
std::unordered_map< uint16_t, uint8_t > m_flagpt
Definition: TGCTileMuCoincidenceLUT.h:95
LVL1TGC::TGCTileMuCoincidenceLUT::N_Input_TileMuModule
@ N_Input_TileMuModule
Definition: TGCTileMuCoincidenceLUT.h:89
LVL1TGCTrigger::TGCArguments
Definition: TGCArguments.h:12
LVL1TGC::TGCTileMuCoincidenceLUT::TGCTileMuCoincidenceLUT
TGCTileMuCoincidenceLUT(const TGCTileMuCoincidenceLUT &right)=default
SG::ReadCondHandleKey< TGCTriggerData >
get_generator_info.version
version
Definition: get_generator_info.py:33
LVL1TGC::TGCTileMuCoincidenceLUT::tgcArgs
const LVL1TGCTrigger::TGCArguments * tgcArgs() const
Definition: TGCTileMuCoincidenceLUT.h:92
TGCArguments.h
LVL1TGC::TGCTileMuCoincidenceLUT::TM_NA
@ TM_NA
Definition: TGCTileMuCoincidenceLUT.h:82
LVL1TGC::TGCTileMuCoincidenceLUT::getFlagROI
int getFlagROI(const int roi, const int16_t ssc, const int16_t sec, const int16_t side) const
Definition: TGCTileMuCoincidenceLUT.cxx:170
LVL1TGC::TGCTileMuCoincidenceLUT::TM_D56_H
@ TM_D56_H
Definition: TGCTileMuCoincidenceLUT.h:86
LVL1TGC::TGCTileMuCoincidenceLUT::m_flagroi
std::unordered_map< uint16_t, uint8_t > m_flagroi
Definition: TGCTileMuCoincidenceLUT.h:96
LVL1TGC::TGCTileMuCoincidenceLUT::TileMuMask
TileMuMask
Definition: TGCTileMuCoincidenceLUT.h:81
TGCTriggerData.h