Logo ROOT  
Reference Guide
TMaterial.h
Go to the documentation of this file.
1 // @(#)root/g3d:$Id$
2 // Author: Rene Brun 03/10/95
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 
13 //////////////////////////////////////////////////////////////////////////
14 // //
15 // TMaterial //
16 // //
17 // Materials used in the Geometry Shapes //
18 // //
19 // //
20 //////////////////////////////////////////////////////////////////////////
21 
22 #ifndef ROOT_TMaterial
23 #define ROOT_TMaterial
24 
25 #include "TNamed.h"
26 #include "TAttFill.h"
27 
28 class TMaterial : public TNamed, public TAttFill {
29 protected:
30  Int_t fNumber; //Material matrix number
31  Float_t fA; //A of Material
32  Float_t fZ; //Z of Material
33  Float_t fDensity; //Material density in gr/cm3
34  Float_t fRadLength; //Material radiation length
35  Float_t fInterLength; //Material interaction length
36 
37 public:
38  TMaterial();
39  TMaterial(const char *name, const char *title, Float_t a, Float_t z, Float_t density);
40  TMaterial(const char *name, const char *title, Float_t a, Float_t z, Float_t density, Float_t radl, Float_t inter);
41  virtual ~TMaterial();
42  virtual Int_t GetNumber() const {return fNumber;}
43  virtual Float_t GetA() const {return fA;}
44  virtual Float_t GetZ() const {return fZ;}
45  virtual Float_t GetDensity() const {return fDensity;}
46  virtual Float_t GetRadLength() const {return fRadLength;}
47  virtual Float_t GetInterLength() const {return fInterLength;}
48 
49  ClassDef(TMaterial,3) //Materials used in the Geometry Shapes
50 };
51 
52 #endif
TMaterial::fA
Float_t fA
Definition: TMaterial.h:31
TMaterial::TMaterial
TMaterial()
Material default constructor.
Definition: TMaterial.cxx:27
TMaterial::fDensity
Float_t fDensity
Definition: TMaterial.h:33
TMaterial::GetZ
virtual Float_t GetZ() const
Definition: TMaterial.h:44
TMaterial::fRadLength
Float_t fRadLength
Definition: TMaterial.h:34
TNamed.h
TMaterial::~TMaterial
virtual ~TMaterial()
Material default destructor.
Definition: TMaterial.cxx:72
Float_t
float Float_t
Definition: RtypesCore.h:57
TMaterial::fZ
Float_t fZ
Definition: TMaterial.h:32
TMaterial::GetInterLength
virtual Float_t GetInterLength() const
Definition: TMaterial.h:47
TMaterial::fNumber
Int_t fNumber
Definition: TMaterial.h:30
TAttFill.h
TMaterial::GetA
virtual Float_t GetA() const
Definition: TMaterial.h:43
a
auto * a
Definition: textangle.C:12
TMaterial::GetRadLength
virtual Float_t GetRadLength() const
Definition: TMaterial.h:46
TMaterial
Manages a detector material.
Definition: TMaterial.h:28
TNamed
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
TMaterial::GetNumber
virtual Int_t GetNumber() const
Definition: TMaterial.h:42
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
name
char name[80]
Definition: TGX11.cxx:110
TAttFill
Fill Area Attributes class.
Definition: TAttFill.h:19
TMaterial::GetDensity
virtual Float_t GetDensity() const
Definition: TMaterial.h:45
TMaterial::fInterLength
Float_t fInterLength
Definition: TMaterial.h:35
int