#include <ElementTable.h>
Definition at line 24 of file ElementTable.h.
◆ ElementTable() [1/2]
| Trk::ElementTable::ElementTable |
( |
| ) |
|
|
inline |
Empty constructor.
Definition at line 27 of file ElementTable.h.
29 m_names(
static_cast<size_t>(UCHAR_MAX), std::string(
"None")) {}
std::vector< std::string > m_names
std::vector< Material * > m_table
◆ ElementTable() [2/2]
Empty constructor.
Definition at line 32 of file ElementTable.h.
35 for (
size_t im = 0;
im <
et.m_table.size(); ++
im) {
36 if (
et.m_table[im])
m_table[
im] =
new Trk::Material(*
et.m_table[im]);
37 }
38 }
float et(const xAOD::jFexSRJetRoI *j)
◆ ~ElementTable()
| Trk::ElementTable::~ElementTable |
( |
| ) |
|
Destructor.
Definition at line 15 of file ElementTable.cxx.
15 {
17 for (; elIter !=
m_table.end();
delete (*elIter), ++elIter)
18 ;
19}
◆ addElement() [1/2]
| void Trk::ElementTable::addElement |
( |
const Material & | mat, |
|
|
const std::string & | mname = "" ) |
|
inline |
Add material to the Table - if the elment is already filled ignore.
Definition at line 75 of file ElementTable.h.
75 {
76 unsigned int Zint = (
unsigned int)
mat.Z;
80 }
81 }
◆ addElement() [2/2]
| void Trk::ElementTable::addElement |
( |
std::unique_ptr< Material > | mat, |
|
|
const std::string & | mname ) |
|
inline |
Version that takes ownership of a pointer.
Definition at line 84 of file ElementTable.h.
84 {
85 unsigned int Zint = (
unsigned int)
mat->Z;
89 }
90 }
◆ contains()
| bool Trk::ElementTable::contains |
( |
unsigned int | Z | ) |
const |
|
inline |
quick check
Definition at line 93 of file ElementTable.h.
const Material * element(unsigned int Z) const
Get the material.
setBGCode setTAP setLVL2ErrorBits bool
◆ element()
| const Material * Trk::ElementTable::element |
( |
unsigned int | Z | ) |
const |
|
inline |
Get the material.
- it can be 0 - if the entry in the table is not filled
Definition at line 71 of file ElementTable.h.
◆ elementName()
| const std::string & Trk::ElementTable::elementName |
( |
unsigned int | Z | ) |
const |
|
inline |
◆ operator+=()
Adding two tables : add table entries from another table.
Definition at line 60 of file ElementTable.h.
60 {
61 for (
size_t ie = 0;
ie < size_t(UCHAR_MAX); ++
ie) {
64 }
65 }
66 return (*this);
67 }
void addElement(const Material &mat, const std::string &mname="")
Add material to the Table - if the elment is already filled ignore.
◆ operator=()
Assignment operator.
Definition at line 44 of file ElementTable.h.
44 {
46
48 for (; elIter !=
m_table.end();
delete (*elIter), ++elIter)
49 ;
51 for (
size_t im = 0;
im <
et.m_table.size(); ++
im) {
53 if (
et.m_table[im])
m_table[
im] =
new Trk::Material(*
et.m_table[im]);
54 }
55 }
56 return (*this);
57 }
◆ size()
| size_t Trk::ElementTable::size |
( |
| ) |
const |
|
inline |
◆ m_names
| std::vector<std::string> Trk::ElementTable::m_names |
|
private |
◆ m_table
| std::vector<Material*> Trk::ElementTable::m_table |
|
private |
The documentation for this class was generated from the following files: