ATLAS Offline Software
FPGATrackSimSectorMap.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef FPGATrackSimSECTORMAP_H
6 #define FPGATrackSimSECTORMAP_H
7 
8 #include <vector>
9 #include <map>
10 
11 /*
12  A simple map that links sectors in different cases with different layers
13 */
15  typedef std::map<int,int> mapint;
16  typedef std::map<int,mapint> mapint2;
17 private:
19 public:
20  FPGATrackSimSectorMap() = default;
23  void SetSector(int, int, int);
24  int GetSector(int, int);
25  void LoadFromFile(const char *);
26  void CreateFile(const char *,const char *, const char *);
27  void Dump();
28  static std::map<int,int> makeLookup(const char* fname);
29 };
30 
31 #endif
FPGATrackSimSectorMap::mapint2
std::map< int, mapint > mapint2
Definition: FPGATrackSimSectorMap.h:16
FPGATrackSimSectorMap::CreateFile
void CreateFile(const char *, const char *, const char *)
Definition: FPGATrackSimSectorMap.cxx:56
FPGATrackSimSectorMap
Definition: FPGATrackSimSectorMap.h:14
FPGATrackSimSectorMap::mapint
std::map< int, int > mapint
Definition: FPGATrackSimSectorMap.h:15
FPGATrackSimSectorMap::~FPGATrackSimSectorMap
~FPGATrackSimSectorMap()=default
FPGATrackSimSectorMap::Dump
void Dump()
Definition: FPGATrackSimSectorMap.cxx:73
FPGATrackSimSectorMap::LoadFromFile
void LoadFromFile(const char *)
Definition: FPGATrackSimSectorMap.cxx:43
FPGATrackSimSectorMap::SetSector
void SetSector(int, int, int)
Definition: FPGATrackSimSectorMap.cxx:32
FPGATrackSimSectorMap::FPGATrackSimSectorMap
FPGATrackSimSectorMap(const char *fname)
Definition: FPGATrackSimSectorMap.h:21
FPGATrackSimSectorMap::makeLookup
static std::map< int, int > makeLookup(const char *fname)
Definition: FPGATrackSimSectorMap.cxx:15
python.AthDsoLogger.fname
string fname
Definition: AthDsoLogger.py:67
FPGATrackSimSectorMap::m_data
mapint2 m_data
Definition: FPGATrackSimSectorMap.h:18
FPGATrackSimSectorMap::GetSector
int GetSector(int, int)
Definition: FPGATrackSimSectorMap.cxx:36
FPGATrackSimSectorMap::FPGATrackSimSectorMap
FPGATrackSimSectorMap()=default