ATLAS Offline Software
Loading...
Searching...
No Matches
TGCTriggerLUTs.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7
11
12
16
17
18std::string TGCTriggerLUTs::getData(int cwtype, std::string file) const {
19 auto itr = m_datamap[cwtype].find(file);
20 if (itr == m_datamap[cwtype].end()) {
21 return "";
22 }
23
24 return itr->second;
25}
26
27
28std::string TGCTriggerLUTs::getData(int cwtype, int channel) const {
29 return m_data[cwtype][channel];
30}
31
32
33std::string TGCTriggerLUTs::getFile(int cwtype, int channel) const {
34 return m_file[cwtype][channel];
35}
36
37std::string TGCTriggerLUTs::getVersion(int cwtype, int channel) const {
38 return m_version[cwtype][channel];
39}
40
41std::string TGCTriggerLUTs::getType(int cwtype, int channel) const {
42 return m_type[cwtype][channel];
43}
44
45
46int8_t TGCTriggerLUTs::getBigWheelPt(const uint32_t addr) const {
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}
int8_t getBigWheelPt(const uint32_t addr) const
virtual ~TGCTriggerLUTs()
std::vector< std::string > m_version[LUT_NUM]
std::map< std::string, std::string > m_datamap[LUT_NUM]
std::string getData(int cwtype, std::string file) const
std::string getFile(int cwtype, int channel) const
std::vector< std::string > m_file[LUT_NUM]
std::string getType(int cwtype, int channel=0) const
std::vector< std::string > m_type[LUT_NUM]
std::vector< std::string > m_data[LUT_NUM]
std::unordered_map< uint32_t, int8_t > m_ptmap_bw
std::string getVersion(int cwtype, int channel=0) const
TFile * file