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
30 bool isGood(float eta, float phi, float absEtaMin,
31 float absEtaMax) const;
32
33 const std::string& version() const { return m_version; }
34 unsigned int etaBins() const { return m_etaBins; }
35 unsigned int phiBinsPerFold() const { return m_phiBinsPerFold; }
36 std::size_t poorBinCount() const { return m_poorBinCount; }
37
38 private:
39 TgcL0GoodMagMap() = default;
40
41 int etaBin(float eta, float absEtaMin, float absEtaMax) const;
42 int phiFoldBin(float phi) const;
43
44 std::string m_version{};
45 unsigned int m_etaBins{0U};
46 unsigned int m_phiBinsPerFold{0U};
47 std::vector<bool> m_poorBins{};
48 std::size_t m_poorBinCount{0U};
49};
50
51} // namespace L0Muon
52
53#endif
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
int phiFoldBin(float phi) const
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
int etaBin(float eta, float absEtaMin, float absEtaMax) const