ATLAS Offline Software
Loading...
Searching...
No Matches
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
17namespace pix{
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 */
bool contains(const std::string &geographicalID) const
int getID(const std::string &geographicalID) const
std::unordered_map< std::string, Coordinates > m_internalMap
PixelMapping(const std::string &csvFilename)
std::array< int, 5 > Coordinates
void mapping(const std::string &geographicalID, int *hashID, int *bec, int *layer, int *phimod, int *etamod) const