ATLAS Offline Software
Loading...
Searching...
No Matches
PixelMaterialMap.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef PixelMaterialMap_H
6#define PixelMaterialMap_H
7
8// Class to interpret and query table PixelMaterialMap
9
10#include <string>
11#include <map>
13
14class IGeometryDBSvc;
15
17{
18
19public:
20 PixelMaterialMap(const IGeometryDBSvc * db, const IRDBRecordset_ptr& mapTable);
21
22 void addMaterial(int layerdisk, int typenum, const std::string & volumeName, const std::string & materialName);
23 std::string getMaterial(int layerdisk, int typenum, const std::string & volumeName) const;
24
25private:
26 class Key
27 {
28 public:
29 Key(int layerdisk_in, int typenum_in, const std::string & volumeName_in);
32 std::string volumeName;
33 bool operator<(const Key &rhs) const;
34 };
35
36 typedef std::map<Key, std::string> mapType;
38
39};
40
41#endif // PixelMaterialMap
Definition of the abstract IRDBAccessSvc interface.
std::shared_ptr< IRDBRecordset > IRDBRecordset_ptr
Interface class to access geometry database with possibility to override parameters from a text file.
Key(int layerdisk_in, int typenum_in, const std::string &volumeName_in)
bool operator<(const Key &rhs) const
PixelMaterialMap(const IGeometryDBSvc *db, const IRDBRecordset_ptr &mapTable)
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