ATLAS Offline Software
PixelMapping.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 // PixelMapping.h
5 // PixelMapping
6 //
7 // Created by sroe on 06/12/2022.
8 //
9 
10 #ifndef PixelMapping_h
11 #define PixelMapping_h
12 
13 #include <string>
14 #include <unordered_map>
15 #include <array>
16 
17 namespace pix{
18  class PixelMapping{
19  public:
20  PixelMapping(const std::string & csvFilename);
21  //rewrite the function but dont change the signature too much
22  void
23  mapping(const std::string & geographicalID, int *hashID, int *bec, int *layer, int *phimod, int *etamod) const;
24 
25  int getID(const std::string & geographicalID) const;
26 
27  bool
28  contains(const std::string & geographicalID) const;
29  int nModules() const;
30 
31  private:
32  typedef std::array<int,5> Coordinates;
33  std::unordered_map<std::string,Coordinates > m_internalMap;
34  };
35 
36 }//end of ibl namespace
37 
38 
39 #endif /* pixelMapping_h */
ParticleGun_SamplingFraction.bec
int bec
Definition: ParticleGun_SamplingFraction.py:89
pix::PixelMapping::getID
int getID(const std::string &geographicalID) const
Definition: PixelMapping.cxx:86
pix::PixelMapping::nModules
int nModules() const
Definition: PixelMapping.cxx:102
CaloSwCorrections.etamod
def etamod(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:206
CaloSwCorrections.phimod
def phimod(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:203
pix::PixelMapping::PixelMapping
PixelMapping(const std::string &csvFilename)
Definition: PixelMapping.cxx:18
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
pix::PixelMapping
Definition: PixelMapping.h:18
pix::PixelMapping::mapping
void mapping(const std::string &geographicalID, int *hashID, int *bec, int *layer, int *phimod, int *etamod) const
Definition: PixelMapping.cxx:70
pix::PixelMapping::m_internalMap
std::unordered_map< std::string, Coordinates > m_internalMap
Definition: PixelMapping.h:33
pix
Definition: PixelMapping.cxx:16
pix::PixelMapping::contains
bool contains(const std::string &geographicalID) const
Definition: PixelMapping.cxx:97
pix::PixelMapping::Coordinates
std::array< int, 5 > Coordinates
Definition: PixelMapping.h:32