ATLAS Offline Software
Loading...
Searching...
No Matches
TgcL0GoodMagMap.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef L0MUONS1TGCFLOATINGTOOLS_TGCL0GOODMAGMAP_H
5#define L0MUONS1TGCFLOATINGTOOLS_TGCL0GOODMAGMAP_H
6
7#include <cstddef>
8#include <memory>
9#include <string>
10#include <vector>
11
12namespace L0Muon {
13
16 public:
17 static std::unique_ptr<TgcL0GoodMagMap> loadAscii(
18 const std::string& calibrationPath, std::string& error);
19
21 bool isGood(int etaBin, int phiFoldBin) const;
22
23 const std::string& version() const { return m_version; }
24 unsigned int etaBins() const { return m_etaBins; }
25 unsigned int phiBinsPerFold() const { return m_phiBinsPerFold; }
26 std::size_t poorBinCount() const { return m_poorBinCount; }
27
28 private:
29 TgcL0GoodMagMap() = default;
30
31 std::string m_version{};
32 unsigned int m_etaBins{0U};
33 unsigned int m_phiBinsPerFold{0U};
34 std::vector<bool> m_poorBins{};
35 std::size_t m_poorBinCount{0U};
36};
37
38} // namespace L0Muon
39
40#endif
static std::unique_ptr< TgcL0GoodMagMap > loadAscii(const std::string &calibrationPath, std::string &error)
std::size_t poorBinCount() const
unsigned int etaBins() const
unsigned int phiBinsPerFold() const
const std::string & version() const
bool isGood(int etaBin, int phiFoldBin) const
Return false for a masked or out-of-range calibration bin.
std::vector< bool > m_poorBins