ATLAS Offline Software
Loading...
Searching...
No Matches
TRT_PAI_element.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRT_PAI_element_h
6#define TRT_PAI_element_h
7
8#include <string>
9#include <vector>
10
15public:
19 TRT_PAI_element() : m_name("unnamed"), m_atomicA(0), m_atomicZ(0) {};
20
30 TRT_PAI_element(const std::string & nm,
31 const float *E,
32 const float *S,
33 int N,
34 double Z,
35 double A);
36
40 const std::string& getName() { return m_name; };
41
45 double getAtomicA() { return m_atomicA; };
46
50 double getAtomicZ() { return m_atomicZ; };
51
56 double getDensity(double tempK=293.);
57
61 const std::vector<float>& getLnELvls() { return m_lnEnergyLvls; };
62
66 const std::vector<float>& getLnSigmas() { return m_lnCrossScts; };
67
68private:
69 std::string m_name;
70 std::vector<float> m_lnEnergyLvls;
71 std::vector<float> m_lnCrossScts;
72 double m_atomicA;
73 double m_atomicZ;
74};
75
76#endif
std::vector< float > m_lnEnergyLvls
double getAtomicA()
Get atomic A of element.
double getDensity(double tempK=293.)
Get density of element at atmospheric preassure.
double getAtomicZ()
Get atomic Z of element.
const std::string & getName()
Get element name.
TRT_PAI_element()
Default constructor for unnamed element.
const std::vector< float > & getLnELvls()
Get vector of ln(energy) of energy levels (eV)
std::string m_name
std::vector< float > m_lnCrossScts
const std::vector< float > & getLnSigmas()
Get vector of ln(cross sections) corresponding to energy levels (Mb)
hold the test vectors and ease the comparison