ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetCalibAlgs
PixelCalibAlgs
ChargeCalibration
common
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 */
pix::PixelMapping::contains
bool contains(const std::string &geographicalID) const
Definition
PixelMapping.cxx:95
pix::PixelMapping::getID
int getID(const std::string &geographicalID) const
Definition
PixelMapping.cxx:84
pix::PixelMapping::m_internalMap
std::unordered_map< std::string, Coordinates > m_internalMap
Definition
PixelMapping.h:33
pix::PixelMapping::PixelMapping
PixelMapping(const std::string &csvFilename)
Definition
PixelMapping.cxx:18
pix::PixelMapping::Coordinates
std::array< int, 5 > Coordinates
Definition
PixelMapping.h:32
pix::PixelMapping::mapping
void mapping(const std::string &geographicalID, int *hashID, int *bec, int *layer, int *phimod, int *etamod) const
Definition
PixelMapping.cxx:68
pix::PixelMapping::nModules
int nModules() const
Definition
PixelMapping.cxx:100
pix
Definition
PixelMapping.cxx:16
Generated on
for ATLAS Offline Software by
1.17.0