ATLAS Offline Software
Loading...
Searching...
No Matches
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#include <string>
11#include <map>
13
15{
16
17public:
18 PixelMaterialMap(const IRDBRecordset_ptr& mapTable);
19
20 void addMaterial(int layerdisk, int typenum, const std::string & volumeName, const std::string & materialName);
21 std::string getMaterial(int layerdisk, int typenum, const std::string & volumeName) const;
22
23private:
24 class Key
25 {
26 public:
27 Key(int layerdisk_in, int typenum_in, const std::string & volumeName_in);
30 std::string volumeName;
31 bool operator<(const Key &rhs) const;
32 };
33
34 typedef std::map<Key, std::string> mapType;
36
37};
38
39#endif // PixelMaterialMap
Definition of the abstract IRDBAccessSvc interface.
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
Key(int layerdisk_in, int typenum_in, const std::string &volumeName_in)
bool operator<(const Key &rhs) const
std::map< Key, std::string > mapType
void addMaterial(int layerdisk, int typenum, const std::string &volumeName, const std::string &materialName)
std::string getMaterial(int layerdisk, int typenum, const std::string &volumeName) const
PixelMaterialMap(const IRDBRecordset_ptr &mapTable)