ATLAS Offline Software
Loading...
Searching...
No Matches
TRT_PAI_gasMixture.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_gasMixture_h
6#define TRT_PAI_gasMixture_h
7
9
11
12#include <string>
13#include <vector>
14
19
20 public:
21
26 TRT_PAI_gasMixture(const std::string& nm);
27
33 void addComponent(TRT_PAI_gasComponent* pgc, double frac);
34
38 const std::string& getName() { return m_name; };
39
43 int getNComponents() {return m_compFracs.size();}
44
49 TRT_PAI_gasComponent* getComponent(unsigned int n);
50
55 double getCompFraction(unsigned int n);
56
60 int getNElements() {return m_elemWeights.size();}
61
66 TRT_PAI_element* getElement(unsigned int n);
67
72 double getElemWeight(unsigned int n);
73
77 void showStructure();
78
83 void freezeGas();
84
85private:
86 std::vector<TRT_PAI_gasComponent*> m_pcomp;
87 std::vector<double> m_compFracs;
88 std::vector<TRT_PAI_element*> m_pelem;
89 std::vector<double> m_elemWeights;
90 std::string m_name;
92};
93
94#endif
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
Chemical element.
Gas component (molecule)
std::vector< double > m_elemWeights
int getNComponents()
Get number of different gas components in this gas mixture.
TRT_PAI_element * getElement(unsigned int n)
Get element no.
void freezeGas()
Components can be added to gas mixture before freezeGas is called.
double getCompFraction(unsigned int n)
Get fraction of gas component no.
void addComponent(TRT_PAI_gasComponent *pgc, double frac)
Add gas component to gas mixture.
std::vector< TRT_PAI_element * > m_pelem
double getElemWeight(unsigned int n)
Get weight of element no.
void showStructure()
Print out of structure of this gas mixture.
int getNElements()
Get number of different element in this gas mixture.
std::vector< TRT_PAI_gasComponent * > m_pcomp
const std::string & getName()
Get name of gas mixture.
TRT_PAI_gasMixture(const std::string &nm)
Construct gas mixture.
std::vector< double > m_compFracs
TRT_PAI_gasComponent * getComponent(unsigned int n)
Get gas component no.