ATLAS Offline Software
TGCTriggerLUTs.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 
9 {
10 }
11 
12 
14 {
15 }
16 
17 
18 std::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 
28 std::string TGCTriggerLUTs::getData(int cwtype, int channel) const {
29  return m_data[cwtype][channel];
30 }
31 
32 
33 std::string TGCTriggerLUTs::getFile(int cwtype, int channel) const {
34  return m_file[cwtype][channel];
35 }
36 
37 std::string TGCTriggerLUTs::getVersion(int cwtype, int channel) const {
38  return m_version[cwtype][channel];
39 }
40 
41 std::string TGCTriggerLUTs::getType(int cwtype, int channel) const {
42  return m_type[cwtype][channel];
43 }
44 
45 
46 int8_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 }
TGCTriggerLUTs::m_file
std::vector< std::string > m_file[LUT_NUM]
Definition: TGCTriggerLUTs.h:86
TGCTriggerLUTs::getFile
std::string getFile(int cwtype, int channel) const
Definition: TGCTriggerLUTs.cxx:33
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:28
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TGCTriggerLUTs::~TGCTriggerLUTs
virtual ~TGCTriggerLUTs()
Definition: TGCTriggerLUTs.cxx:13
TGCTriggerLUTs::getVersion
std::string getVersion(int cwtype, int channel=0) const
Definition: TGCTriggerLUTs.cxx:37
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:423
TGCTriggerLUTs.h
TGCTriggerLUTs::getBigWheelPt
int8_t getBigWheelPt(const uint32_t addr) const
Definition: TGCTriggerLUTs.cxx:46
TGCTriggerLUTs::TGCTriggerLUTs
TGCTriggerLUTs()
Definition: TGCTriggerLUTs.cxx:8
TGCTriggerLUTs::getData
std::string getData(int cwtype, std::string file) const
Definition: TGCTriggerLUTs.cxx:18
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
TGCTriggerLUTs::getType
std::string getType(int cwtype, int channel=0) const
Definition: TGCTriggerLUTs.cxx:41
file
TFile * file
Definition: tile_monitor.h:29
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::m_version
std::vector< std::string > m_version[LUT_NUM]
Definition: TGCTriggerLUTs.h:87
AthMessaging.h
TGCTriggerLUTs::m_datamap
std::map< std::string, std::string > m_datamap[LUT_NUM]
Definition: TGCTriggerLUTs.h:84