ATLAS Offline Software
Loading...
Searching...
No Matches
AGDDSimpleMaterial.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 AGDDSimpleMaterial_H
6#define AGDDSimpleMaterial_H
7
8#include <string>
9#include <iostream>
10
13
15 friend std::ostream& operator <<(std::ostream&, const AGDDSimpleMaterial &);
16public:
18 const std::string& n, double d):
20 {
22 RegisterToStore(ms, this);
23 }
26 const std::string& GetName() const;
27 double GetDensity() const {return m_density;}
29 void Created(bool b) {m_created=b;}
30 bool Extant() const {return m_created;}
31 void* GetMaterial() {return m_theMaterial;}
32 void SetMaterial(void* mat) {m_theMaterial=mat;}
33protected:
34 std::string m_name;
35 double m_density;
37
40};
41
42#endif
material_type
@ Undefined
material_type GetMaterialType() const
AGDDSimpleMaterial(AGDDMaterialStore &ms, const std::string &n, double d)
double GetDensity() const
friend std::ostream & operator<<(std::ostream &, const AGDDSimpleMaterial &)
void SetMaterial(void *mat)
const std::string & GetName() const
void RegisterToStore(AGDDMaterialStore &ms, AGDDSimpleMaterial *)