ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DetectorDescription
GeoModel
GeoModelUtilities
GeoModelUtilities
GeoMaterialPropertiesTable.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 GeoMaterialPropertiesTable_h
6
#define GeoMaterialPropertiesTable_h 1
7
8
#include <map>
9
#include <string>
10
12
#include "
GeoPrimitives/GeoPrimitives.h
"
13
14
#include "GeoModelKernel/RCBase.h"
15
#include "
GeoModelUtilities/GeoMaterialPropertyVector.h
"
16
17
class
GeoMaterialPropertyVector
;
18
19
class
GeoMaterialPropertiesTable
:
public
RCBase
20
{
21
public
:
22
GeoMaterialPropertiesTable
();
23
~GeoMaterialPropertiesTable
();
24
25
public
:
26
// ******** Typedefs
27
// Maps
28
typedef
std::map<std::string, GeoMaterialPropertyVector*, std::less<std::string> >
GeoMatPVMap
;
29
typedef
std::map< std::string, double, std::less<std::string> >
GeoMatPMap
;
30
31
// Iterators
32
typedef
GeoMatPVMap::const_iterator
GeoMatPVMap_ConstIt
;
33
typedef
GeoMatPMap::const_iterator
GeoMatPMap_ConstIt
;
34
35
public
:
36
// Add a new property to the table by giving a key-name and value
37
void
AddConstProperty
(
const
char
*key,
38
double
PropertyValue);
39
40
// Add a new property to the table by giving a key-name and the
41
// arrays x and y of size NumEntries.
42
void
AddProperty
(
const
char
*key,
43
double
*PhotonMomenta,
44
double
*PropertyValues,
45
int
NumEntries);
46
47
// Add a new property to the table by giving a key-name and an
48
// already constructed GeoMaterialPropertyVector.
49
void
AddProperty
(
const
char
*key,
GeoMaterialPropertyVector
*opv);
50
51
// Remove a constant property from the table.
52
void
RemoveConstProperty
(
const
char
*key);
53
54
// Remove a property from the table.
55
void
RemoveProperty
(
const
char
*key);
56
57
// Add a new entry (pair of numbers) to the table for a given key.
58
void
AddEntry
(
const
char
*key,
double
aPhotonMomentum,
59
double
aPropertyValue);
60
61
// Access to the contents
62
GeoMatPVMap_ConstIt
beginPVMap
()
const
;
63
GeoMatPVMap_ConstIt
endPVMap
()
const
;
64
65
GeoMatPMap_ConstIt
beginPMap
()
const
;
66
GeoMatPMap_ConstIt
endPMap
()
const
;
67
68
// Dump contents
69
void
DumpTable
()
const
;
70
71
private
:
72
GeoMatPVMap
m_MPT
;
73
GeoMatPMap
m_MPTC
;
74
75
typedef
GeoMatPVMap::iterator
MPTiterator
;
76
typedef
GeoMatPMap::iterator
MPTCiterator
;
77
};
78
79
#endif
GeoMaterialPropertyVector.h
GeoPrimitives.h
GeoMaterialPropertiesTable::GeoMaterialPropertiesTable
GeoMaterialPropertiesTable()
Definition
GeoMaterialPropertiesTable.cxx:10
GeoMaterialPropertiesTable::MPTiterator
GeoMatPVMap::iterator MPTiterator
Definition
GeoMaterialPropertiesTable.h:75
GeoMaterialPropertiesTable::AddConstProperty
void AddConstProperty(const char *key, double PropertyValue)
Definition
GeoMaterialPropertiesTable.cxx:25
GeoMaterialPropertiesTable::GeoMatPVMap_ConstIt
GeoMatPVMap::const_iterator GeoMatPVMap_ConstIt
Definition
GeoMaterialPropertiesTable.h:32
GeoMaterialPropertiesTable::MPTCiterator
GeoMatPMap::iterator MPTCiterator
Definition
GeoMaterialPropertiesTable.h:76
GeoMaterialPropertiesTable::endPMap
GeoMatPMap_ConstIt endPMap() const
Definition
GeoMaterialPropertiesTable.cxx:85
GeoMaterialPropertiesTable::AddProperty
void AddProperty(const char *key, double *PhotonMomenta, double *PropertyValues, int NumEntries)
Definition
GeoMaterialPropertiesTable.cxx:31
GeoMaterialPropertiesTable::RemoveConstProperty
void RemoveConstProperty(const char *key)
Definition
GeoMaterialPropertiesTable.cxx:49
GeoMaterialPropertiesTable::AddEntry
void AddEntry(const char *key, double aPhotonMomentum, double aPropertyValue)
Definition
GeoMaterialPropertiesTable.cxx:59
GeoMaterialPropertiesTable::beginPVMap
GeoMatPVMap_ConstIt beginPVMap() const
Definition
GeoMaterialPropertiesTable.cxx:70
GeoMaterialPropertiesTable::DumpTable
void DumpTable() const
Definition
GeoMaterialPropertiesTable.cxx:90
GeoMaterialPropertiesTable::GeoMatPMap
std::map< std::string, double, std::less< std::string > > GeoMatPMap
Definition
GeoMaterialPropertiesTable.h:29
GeoMaterialPropertiesTable::m_MPT
GeoMatPVMap m_MPT
Definition
GeoMaterialPropertiesTable.h:72
GeoMaterialPropertiesTable::RemoveProperty
void RemoveProperty(const char *key)
Definition
GeoMaterialPropertiesTable.cxx:54
GeoMaterialPropertiesTable::GeoMatPVMap
std::map< std::string, GeoMaterialPropertyVector *, std::less< std::string > > GeoMatPVMap
Definition
GeoMaterialPropertiesTable.h:28
GeoMaterialPropertiesTable::~GeoMaterialPropertiesTable
~GeoMaterialPropertiesTable()
Definition
GeoMaterialPropertiesTable.cxx:14
GeoMaterialPropertiesTable::GeoMatPMap_ConstIt
GeoMatPMap::const_iterator GeoMatPMap_ConstIt
Definition
GeoMaterialPropertiesTable.h:33
GeoMaterialPropertiesTable::beginPMap
GeoMatPMap_ConstIt beginPMap() const
Definition
GeoMaterialPropertiesTable.cxx:80
GeoMaterialPropertiesTable::m_MPTC
GeoMatPMap m_MPTC
Definition
GeoMaterialPropertiesTable.h:73
GeoMaterialPropertiesTable::endPVMap
GeoMatPVMap_ConstIt endPVMap() const
Definition
GeoMaterialPropertiesTable.cxx:75
GeoMaterialPropertyVector
Definition
GeoMaterialPropertyVector.h:12
Generated on
for ATLAS Offline Software by
1.17.0