ATLAS Offline Software
AGDDMolecule.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 AGDDMolecule_H
6 #define AGDDMolecule_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 AGDDMolecule &);
18 public:
19  AGDDMolecule(AGDDMaterialStore& ms, const std::string&,double);
20  void AddElement(AGDDMaterialStore& ms, const std::string&);
21  void NAtoms(int);
22  int NComponents() const {return m_theElements.size();}
23  AGDDElement* Element(int i) {return m_theElements[i];}
24  int Composition(int i) const {return m_theComposition[i];}
25 private:
26  std::vector<AGDDElement*> m_theElements;
27  std::vector<int> m_theComposition;
28 };
29 
30 #endif
AGDDMolecule
Definition: AGDDMolecule.h:16
AGDDMolecule::operator<<
friend std::ostream & operator<<(std::ostream &, const AGDDMolecule &)
Definition: AGDDMolecule.cxx:12
python.SystemOfUnits.ms
int ms
Definition: SystemOfUnits.py:132
AGDDMolecule::m_theComposition
std::vector< int > m_theComposition
Definition: AGDDMolecule.h:27
AGDDMolecule::NComponents
int NComponents() const
Definition: AGDDMolecule.h:22
lumiFormat.i
int i
Definition: lumiFormat.py:85
AGDDMaterialStore
Definition: AGDDMaterialStore.h:23
AGDDSimpleMaterial
Definition: AGDDSimpleMaterial.h:14
AGDDMolecule::NAtoms
void NAtoms(int)
Definition: AGDDMolecule.cxx:36
AGDDSimpleMaterial.h
AGDDElement
Definition: AGDDElement.h:11
AGDDMolecule::AddElement
void AddElement(AGDDMaterialStore &ms, const std::string &)
Definition: AGDDMolecule.cxx:31
AGDDMolecule::AGDDMolecule
AGDDMolecule(AGDDMaterialStore &ms, const std::string &, double)
Definition: AGDDMolecule.cxx:25
AGDDMolecule::Element
AGDDElement * Element(int i)
Definition: AGDDMolecule.h:23
AGDDMolecule::Composition
int Composition(int i) const
Definition: AGDDMolecule.h:24
AGDDMolecule::m_theElements
std::vector< AGDDElement * > m_theElements
Definition: AGDDMolecule.h:26