ATLAS Offline Software
AGDDMixture.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef AGDDMixture_H
6 #define AGDDMixture_H
7 
9 
10 #include <string>
11 #include <vector>
12 
13 class AGDDElement;
14 class AGDDMaterialStore;
15 
17  friend std::ostream& operator <<(std::ostream&, const AGDDMixture &);
18 public:
19  AGDDMixture(AGDDMaterialStore& ms, const std::string&,double);
20  void AddMaterial(AGDDMaterialStore& ms, const std::string&);
21  void Fraction(double);
22  int NComponents() const {return m_theMaterials.size();}
24  double Composition(int i) const {return m_theComposition[i];}
25 private:
26  std::vector<AGDDSimpleMaterial*> m_theMaterials;
27  std::vector<double> m_theComposition;
28 };
29 
30 #endif
AGDDMixture::AddMaterial
void AddMaterial(AGDDMaterialStore &ms, const std::string &)
Definition: AGDDMixture.cxx:31
AGDDMixture::Composition
double Composition(int i) const
Definition: AGDDMixture.h:24
AGDDMixture::Fraction
void Fraction(double)
Definition: AGDDMixture.cxx:36
AGDDMixture::AGDDMixture
AGDDMixture(AGDDMaterialStore &ms, const std::string &, double)
Definition: AGDDMixture.cxx:25
python.SystemOfUnits.ms
int ms
Definition: SystemOfUnits.py:132
AGDDMixture::m_theMaterials
std::vector< AGDDSimpleMaterial * > m_theMaterials
Definition: AGDDMixture.h:26
AGDDMixture::operator<<
friend std::ostream & operator<<(std::ostream &, const AGDDMixture &)
Definition: AGDDMixture.cxx:12
AGDDMixture::m_theComposition
std::vector< double > m_theComposition
Definition: AGDDMixture.h:27
lumiFormat.i
int i
Definition: lumiFormat.py:85
AGDDMaterialStore
Definition: AGDDMaterialStore.h:23
AGDDSimpleMaterial
Definition: AGDDSimpleMaterial.h:14
AGDDSimpleMaterial.h
AGDDMixture::NComponents
int NComponents() const
Definition: AGDDMixture.h:22
AGDDElement
Definition: AGDDElement.h:11
AGDDMixture::Material
AGDDSimpleMaterial * Material(int i)
Definition: AGDDMixture.h:23
AGDDMixture
Definition: AGDDMixture.h:16