ATLAS Offline Software
TRT_PAI_gasComponent.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_gasComponent_h
6 #define TRT_PAI_gasComponent_h
7 
8 #include "TRT_PAI_element.h"
9 
10 #include <string>
11 #include <vector>
12 
17 public:
18 
22  TRT_PAI_gasComponent() : m_name("unnamed") {};
23 
28  TRT_PAI_gasComponent(const std::string & nm) : m_name(nm) {};
29 
35  void addElement(TRT_PAI_element* pe, unsigned int n);
36 
40  const std::string& getName() { return m_name; };
41 
45  int getNElementTypes() {return m_pelements.size();}
46 
51  unsigned int getElementMultiplicity(unsigned int n) {
52  return m_elementMultiplicity[n];
53  }
54 
59  TRT_PAI_element* getElement(unsigned int n) { return m_pelements[n]; }
60 
65  double getDensity(double tempK=293.);
66 private:
67  std::string m_name;
68  std::vector<TRT_PAI_element*> m_pelements;
69  std::vector<unsigned int> m_elementMultiplicity;
70 };
71 
72 #endif
TRT_PAI_gasComponent::getNElementTypes
int getNElementTypes()
Get number of different elements in this gas component (molecule)
Definition: TRT_PAI_gasComponent.h:45
TRT_PAI_gasComponent::addElement
void addElement(TRT_PAI_element *pe, unsigned int n)
Add element to gas component.
Definition: TRT_PAI_gasComponent.cxx:10
TRT_PAI_gasComponent::m_pelements
std::vector< TRT_PAI_element * > m_pelements
Definition: TRT_PAI_gasComponent.h:68
TRT_PAI_gasComponent::m_elementMultiplicity
std::vector< unsigned int > m_elementMultiplicity
Definition: TRT_PAI_gasComponent.h:69
TRT_PAI_gasComponent::TRT_PAI_gasComponent
TRT_PAI_gasComponent()
Constructor of unnamed component.
Definition: TRT_PAI_gasComponent.h:22
LArG4AODNtuplePlotter.pe
pe
Definition: LArG4AODNtuplePlotter.py:116
TRT_PAI_gasComponent::getElementMultiplicity
unsigned int getElementMultiplicity(unsigned int n)
Get multiplicity of this element in gas component (molecule)
Definition: TRT_PAI_gasComponent.h:51
beamspotman.n
n
Definition: beamspotman.py:731
TRT_PAI_gasComponent::getElement
TRT_PAI_element * getElement(unsigned int n)
Get pointer to this element in gas component (molecule)
Definition: TRT_PAI_gasComponent.h:59
TRT_PAI_gasComponent::getName
const std::string & getName()
Get name of gas component (molecule)
Definition: TRT_PAI_gasComponent.h:40
TRT_PAI_gasComponent::m_name
std::string m_name
Definition: TRT_PAI_gasComponent.h:67
TRT_PAI_gasComponent
Gas component (molecule)
Definition: TRT_PAI_gasComponent.h:16
TRT_PAI_element.h
CalibCoolCompareRT.nm
nm
Definition: CalibCoolCompareRT.py:110
TRT_PAI_gasComponent::TRT_PAI_gasComponent
TRT_PAI_gasComponent(const std::string &nm)
Constructor of gas component.
Definition: TRT_PAI_gasComponent.h:28
TRT_PAI_gasComponent::getDensity
double getDensity(double tempK=293.)
Get density of gas component (molecule) at atmospheric preassure.
Definition: TRT_PAI_gasComponent.cxx:19
TRT_PAI_element
Chemical element.
Definition: TRT_PAI_element.h:14