ATLAS Offline Software
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 
12 class AGDDMaterialStore;
13 
15  friend std::ostream& operator <<(std::ostream&, const AGDDSimpleMaterial &);
16 public:
18  const std::string& n, double d):
20  {
22  RegisterToStore(ms, this);
23  }
24  virtual ~AGDDSimpleMaterial() {}
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;}
33 protected:
34  std::string m_name;
35  double m_density;
36  bool m_created;
37 
40 };
41 
42 #endif
hist_file_dump.d
d
Definition: hist_file_dump.py:137
mat
GeoMaterial * mat
Definition: LArDetectorConstructionTBEC.cxx:55
AGDDSimpleMaterial::GetMaterial
void * GetMaterial()
Definition: AGDDSimpleMaterial.h:31
python.SystemOfUnits.ms
int ms
Definition: SystemOfUnits.py:132
AGDDSimpleMaterial::m_theMaterial
void * m_theMaterial
Definition: AGDDSimpleMaterial.h:39
AGDDSimpleMaterial::RegisterToStore
void RegisterToStore(AGDDMaterialStore &ms, AGDDSimpleMaterial *)
Definition: AGDDSimpleMaterial.cxx:17
AGDDSimpleMaterial::~AGDDSimpleMaterial
virtual ~AGDDSimpleMaterial()
Definition: AGDDSimpleMaterial.h:24
AGDDSimpleMaterial::Extant
bool Extant() const
Definition: AGDDSimpleMaterial.h:30
AGDDSimpleMaterial::Created
void Created(bool b)
Definition: AGDDSimpleMaterial.h:29
beamspotman.n
n
Definition: beamspotman.py:731
MaterialTypes.h
AGDDMaterialStore
Definition: AGDDMaterialStore.h:23
AGDDSimpleMaterial
Definition: AGDDSimpleMaterial.h:14
AGDDSimpleMaterial::SetMaterial
void SetMaterial(void *mat)
Definition: AGDDSimpleMaterial.h:32
AGDDSimpleMaterial::GetDensity
double GetDensity() const
Definition: AGDDSimpleMaterial.h:27
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
Region::Undefined
@ Undefined
AGDDSimpleMaterial::AGDDSimpleMaterial
AGDDSimpleMaterial(AGDDMaterialStore &ms, const std::string &n, double d)
Definition: AGDDSimpleMaterial.h:17
AGDDSimpleMaterial::m_density
double m_density
Definition: AGDDSimpleMaterial.h:35
AGDDSimpleMaterial::m_created
bool m_created
Definition: AGDDSimpleMaterial.h:36
material_type
material_type
Definition: MaterialTypes.h:8
AGDDSimpleMaterial::m_name
std::string m_name
Definition: AGDDSimpleMaterial.h:34
AGDDSimpleMaterial::GetName
const std::string & GetName() const
Definition: AGDDSimpleMaterial.cxx:23
AGDDSimpleMaterial::m_mType
material_type m_mType
Definition: AGDDSimpleMaterial.h:38
AGDDSimpleMaterial::GetMaterialType
material_type GetMaterialType() const
Definition: AGDDSimpleMaterial.h:28
AGDDSimpleMaterial::operator<<
friend std::ostream & operator<<(std::ostream &, const AGDDSimpleMaterial &)
Definition: AGDDSimpleMaterial.cxx:10