ATLAS Offline Software
|
Gas mixture = mixture of gas components. More...
#include <TRT_PAI_gasMixture.h>
Public Member Functions | |
TRT_PAI_gasMixture (const std::string &nm) | |
Construct gas mixture. More... | |
void | addComponent (TRT_PAI_gasComponent *pgc, double frac) |
Add gas component to gas mixture. More... | |
const std::string & | getName () |
Get name of gas mixture. More... | |
int | getNComponents () |
Get number of different gas components in this gas mixture. More... | |
TRT_PAI_gasComponent * | getComponent (unsigned int n) |
Get gas component no. More... | |
double | getCompFraction (unsigned int n) |
Get fraction of gas component no. More... | |
int | getNElements () |
Get number of different element in this gas mixture. More... | |
TRT_PAI_element * | getElement (unsigned int n) |
Get element no. More... | |
double | getElemWeight (unsigned int n) |
Get weight of element no. More... | |
void | showStructure () |
Print out of structure of this gas mixture. More... | |
void | freezeGas () |
Components can be added to gas mixture before freezeGas is called. More... | |
bool | msgLvl (const MSG::Level lvl) const |
Test the output level. More... | |
MsgStream & | msg () const |
The standard message stream. More... | |
MsgStream & | msg (const MSG::Level lvl) const |
The standard message stream. More... | |
void | setLevel (MSG::Level lvl) |
Change the current logging level. More... | |
Private Member Functions | |
void | initMessaging () const |
Initialize our message level and MessageSvc. More... | |
Private Attributes | |
std::vector< TRT_PAI_gasComponent * > | m_pcomp |
std::vector< double > | m_compFracs |
std::vector< TRT_PAI_element * > | m_pelem |
std::vector< double > | m_elemWeights |
std::string | m_name |
bool | m_gasFrozen |
std::string | m_nm |
Message source name. More... | |
boost::thread_specific_ptr< MsgStream > | m_msg_tls |
MsgStream instance (a std::cout like with print-out levels) More... | |
std::atomic< IMessageSvc * > | m_imsg { nullptr } |
MessageSvc pointer. More... | |
std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
Current logging level. More... | |
std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
Messaging initialized (initMessaging) More... | |
Gas mixture = mixture of gas components.
Definition at line 18 of file TRT_PAI_gasMixture.h.
TRT_PAI_gasMixture::TRT_PAI_gasMixture | ( | const std::string & | nm | ) |
Construct gas mixture.
nm | mixture name |
Definition at line 13 of file TRT_PAI_gasMixture.cxx.
void TRT_PAI_gasMixture::addComponent | ( | TRT_PAI_gasComponent * | pgc, |
double | frac | ||
) |
Add gas component to gas mixture.
pgc | pointer to gas component to be added |
frac | fraction of this component in gas |
Definition at line 21 of file TRT_PAI_gasMixture.cxx.
void TRT_PAI_gasMixture::freezeGas | ( | ) |
Components can be added to gas mixture before freezeGas is called.
After call, gas is frozen, and no more components can be added.
Definition at line 35 of file TRT_PAI_gasMixture.cxx.
double TRT_PAI_gasMixture::getCompFraction | ( | unsigned int | n | ) |
Get fraction of gas component no.
n of this gas mixture
n | gas component number |
Definition at line 124 of file TRT_PAI_gasMixture.cxx.
TRT_PAI_gasComponent * TRT_PAI_gasMixture::getComponent | ( | unsigned int | n | ) |
Get gas component no.
n of this gas mixture
n | gas component number |
Definition at line 112 of file TRT_PAI_gasMixture.cxx.
TRT_PAI_element * TRT_PAI_gasMixture::getElement | ( | unsigned int | n | ) |
Get element no.
n in this gas mixture
n | element number |
Definition at line 136 of file TRT_PAI_gasMixture.cxx.
double TRT_PAI_gasMixture::getElemWeight | ( | unsigned int | n | ) |
Get weight of element no.
n in this gas mixture
n | element number |
Definition at line 148 of file TRT_PAI_gasMixture.cxx.
|
inline |
|
inline |
Get number of different gas components in this gas mixture.
Definition at line 43 of file TRT_PAI_gasMixture.h.
|
inline |
Get number of different element in this gas mixture.
Definition at line 60 of file TRT_PAI_gasMixture.h.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 164 of file AthMessaging.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 179 of file AthMessaging.h.
|
inlineinherited |
Test the output level.
lvl | The message level to test against |
true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
|
inherited |
Change the current logging level.
Use this rather than msg().setLevel() for proper operation with MT.
Definition at line 28 of file AthMessaging.cxx.
void TRT_PAI_gasMixture::showStructure | ( | ) |
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
private |
Definition at line 87 of file TRT_PAI_gasMixture.h.
|
private |
Definition at line 89 of file TRT_PAI_gasMixture.h.
|
private |
Definition at line 91 of file TRT_PAI_gasMixture.h.
|
mutableprivateinherited |
MessageSvc pointer.
Definition at line 135 of file AthMessaging.h.
|
mutableprivateinherited |
Current logging level.
Definition at line 138 of file AthMessaging.h.
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
private |
Definition at line 90 of file TRT_PAI_gasMixture.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
|
private |
Definition at line 86 of file TRT_PAI_gasMixture.h.
|
private |
Definition at line 88 of file TRT_PAI_gasMixture.h.