ATLAS Offline Software
Loading...
Searching...
No Matches
FPVMAP.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef FPVMAP_H
6#define FPVMAP_H
7
8#include <map>
9#include <string>
10
11class GeoVPhysVol;
12
13namespace MuonGM {
14
15 typedef std::map<std::string, GeoVPhysVol *>::const_iterator DetectorIterator;
16
17 class FPVMAP {
18 public:
19 FPVMAP() = default;
20 ~FPVMAP() = default;
21 inline DetectorIterator Begin();
22 inline DetectorIterator End();
23 inline int NDetectors();
24 inline int NDetectorsReused();
25
26 GeoVPhysVol *GetDetector(const std::string& name);
27 void StoreDetector(GeoVPhysVol *s, const std::string& name);
28 void PrintAllDetectors();
29
30 private:
31 std::map<std::string, GeoVPhysVol *> m_Detectors{};
32 int m_nreused{0};
33 };
36 int FPVMAP::NDetectors() { return m_Detectors.size(); }
38} // namespace MuonGM
39
40#endif
int m_nreused
Definition FPVMAP.h:32
void PrintAllDetectors()
Definition FPVMAP.cxx:32
int NDetectorsReused()
Definition FPVMAP.h:37
~FPVMAP()=default
FPVMAP()=default
GeoVPhysVol * GetDetector(const std::string &name)
Definition FPVMAP.cxx:17
DetectorIterator End()
Definition FPVMAP.h:35
void StoreDetector(GeoVPhysVol *s, const std::string &name)
Definition FPVMAP.cxx:27
std::map< std::string, GeoVPhysVol * > m_Detectors
Definition FPVMAP.h:31
DetectorIterator Begin()
Definition FPVMAP.h:34
int NDetectors()
Definition FPVMAP.h:36
Ensure that the Athena extensions are properly loaded.
Definition GeoMuonHits.h:27
std::map< std::string, GeoVPhysVol * >::const_iterator DetectorIterator
Definition FPVMAP.h:15