ATLAS Offline Software
Loading...
Searching...
No Matches
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
13class AGDDElement;
15
17 friend std::ostream& operator <<(std::ostream&, const AGDDMolecule &);
18public:
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];}
25private:
26 std::vector<AGDDElement*> m_theElements;
27 std::vector<int> m_theComposition;
28};
29
30#endif
friend std::ostream & operator<<(std::ostream &, const AGDDMolecule &)
void NAtoms(int)
std::vector< AGDDElement * > m_theElements
std::vector< int > m_theComposition
AGDDElement * Element(int i)
int NComponents() const
AGDDMolecule(AGDDMaterialStore &ms, const std::string &, double)
int Composition(int i) const
void AddElement(AGDDMaterialStore &ms, const std::string &)
AGDDSimpleMaterial(AGDDMaterialStore &ms, const std::string &n, double d)