ATLAS Offline Software
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 
10 #include "TRT_PAI_gasComponent.h"
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 
85 private:
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
TRT_PAI_gasMixture::m_pcomp
std::vector< TRT_PAI_gasComponent * > m_pcomp
Definition: TRT_PAI_gasMixture.h:86
TRT_PAI_gasMixture::getNComponents
int getNComponents()
Get number of different gas components in this gas mixture.
Definition: TRT_PAI_gasMixture.h:43
TRT_PAI_gasMixture::getElement
TRT_PAI_element * getElement(unsigned int n)
Get element no.
Definition: TRT_PAI_gasMixture.cxx:136
TRT_PAI_gasMixture
Gas mixture = mixture of gas components.
Definition: TRT_PAI_gasMixture.h:18
TRT_PAI_gasMixture::m_elemWeights
std::vector< double > m_elemWeights
Definition: TRT_PAI_gasMixture.h:89
TRT_PAI_gasMixture::m_name
std::string m_name
Definition: TRT_PAI_gasMixture.h:90
TRT_PAI_gasMixture::m_pelem
std::vector< TRT_PAI_element * > m_pelem
Definition: TRT_PAI_gasMixture.h:88
TRT_PAI_gasMixture::freezeGas
void freezeGas()
Components can be added to gas mixture before freezeGas is called.
Definition: TRT_PAI_gasMixture.cxx:35
TRT_PAI_gasMixture::addComponent
void addComponent(TRT_PAI_gasComponent *pgc, double frac)
Add gas component to gas mixture.
Definition: TRT_PAI_gasMixture.cxx:21
beamspotman.n
n
Definition: beamspotman.py:731
checkxAOD.frac
frac
Definition: Tools/PyUtils/bin/checkxAOD.py:259
TRT_PAI_gasMixture::m_gasFrozen
bool m_gasFrozen
Definition: TRT_PAI_gasMixture.h:91
TRT_PAI_gasComponent.h
TRT_PAI_gasMixture::m_compFracs
std::vector< double > m_compFracs
Definition: TRT_PAI_gasMixture.h:87
AthMessaging
Class to provide easy MsgStream access and capabilities.
Definition: AthMessaging.h:55
TRT_PAI_gasMixture::getCompFraction
double getCompFraction(unsigned int n)
Get fraction of gas component no.
Definition: TRT_PAI_gasMixture.cxx:124
TRT_PAI_gasMixture::showStructure
void showStructure()
Print out of structure of this gas mixture.
Definition: TRT_PAI_gasMixture.cxx:89
TRT_PAI_gasMixture::getNElements
int getNElements()
Get number of different element in this gas mixture.
Definition: TRT_PAI_gasMixture.h:60
TRT_PAI_gasComponent
Gas component (molecule)
Definition: TRT_PAI_gasComponent.h:16
CalibCoolCompareRT.nm
nm
Definition: CalibCoolCompareRT.py:110
AthMessaging.h
TRT_PAI_gasMixture::TRT_PAI_gasMixture
TRT_PAI_gasMixture(const std::string &nm)
Construct gas mixture.
Definition: TRT_PAI_gasMixture.cxx:13
TRT_PAI_gasMixture::getComponent
TRT_PAI_gasComponent * getComponent(unsigned int n)
Get gas component no.
Definition: TRT_PAI_gasMixture.cxx:112
TRT_PAI_element
Chemical element.
Definition: TRT_PAI_element.h:14
TRT_PAI_gasMixture::getElemWeight
double getElemWeight(unsigned int n)
Get weight of element no.
Definition: TRT_PAI_gasMixture.cxx:148
TRT_PAI_gasMixture::getName
const std::string & getName()
Get name of gas mixture.
Definition: TRT_PAI_gasMixture.h:38