ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetDetDescr
PixelGeoModel
src
PixelMaterialMap.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef PIXELGEOMODEL_PIXELMATERIALMAP_H
6
#define PIXELGEOMODEL_PIXELMATERIALMAP_H
7
8
// Class to interpret and query table PixelMaterialMap
9
10
11
#include "
RDBAccessSvc/IRDBAccessSvc.h
"
12
#include <string_view>
13
#include <string>
14
#include <map>
15
16
class
PixelMaterialMap
17
{
18
19
public
:
20
PixelMaterialMap
(
const
IRDBRecordset_ptr
& mapTable);
21
22
void
addMaterial
(
int
layerdisk,
int
typenum, std::string_view volumeName, std::string_view materialName);
23
std::string
getMaterial
(
int
layerdisk,
int
typenum, std::string_view volumeName)
const
;
24
25
private
:
26
class
Key
27
{
28
public
:
29
Key
(
int
layerdisk_in,
int
typenum_in, std::string_view volumeName_in);
30
int
layerdisk
{};
31
int
typenum
{};
32
std::string
volumeName
;
33
bool
operator<
(
const
Key
&rhs)
const
;
34
};
35
36
typedef
std::map<Key, std::string>
mapType
;
37
mapType
m_matmap
;
38
39
};
40
41
#endif
// PixelMaterialMap
IRDBAccessSvc.h
Definition of the abstract IRDBAccessSvc interface.
IRDBRecordset_ptr
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
Definition
IRDBAccessSvc.h:30
PixelMaterialMap::Key::typenum
int typenum
Definition
PixelMaterialMap.h:31
PixelMaterialMap::Key::Key
Key(int layerdisk_in, int typenum_in, std::string_view volumeName_in)
Definition
PixelMaterialMap.cxx:11
PixelMaterialMap::Key::volumeName
std::string volumeName
Definition
PixelMaterialMap.h:32
PixelMaterialMap::Key::layerdisk
int layerdisk
Definition
PixelMaterialMap.h:30
PixelMaterialMap::Key::operator<
bool operator<(const Key &rhs) const
Definition
PixelMaterialMap.cxx:18
PixelMaterialMap::mapType
std::map< Key, std::string > mapType
Definition
PixelMaterialMap.h:36
PixelMaterialMap::getMaterial
std::string getMaterial(int layerdisk, int typenum, std::string_view volumeName) const
Definition
PixelMaterialMap.cxx:37
PixelMaterialMap::m_matmap
mapType m_matmap
Definition
PixelMaterialMap.h:37
PixelMaterialMap::addMaterial
void addMaterial(int layerdisk, int typenum, std::string_view volumeName, std::string_view materialName)
Definition
PixelMaterialMap.cxx:60
PixelMaterialMap::PixelMaterialMap
PixelMaterialMap(const IRDBRecordset_ptr &mapTable)
Definition
PixelMaterialMap.cxx:25
Generated on
for ATLAS Offline Software by
1.17.0