Logo ROOT   6.08/07
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 #ifndef ROOT_TNamed
26 #include "TNamed.h"
27 #endif
28 #ifndef ROOT_TAttFill
29 #include "TAttFill.h"
30 #endif
31 
32 class TMaterial : public TNamed, public TAttFill {
33 protected:
34  Int_t fNumber; //Material matrix number
35  Float_t fA; //A of Material
36  Float_t fZ; //Z of Material
37  Float_t fDensity; //Material density in gr/cm3
38  Float_t fRadLength; //Material radiation length
39  Float_t fInterLength; //Material interaction length
40 
41 public:
42  TMaterial();
43  TMaterial(const char *name, const char *title, Float_t a, Float_t z, Float_t density);
44  TMaterial(const char *name, const char *title, Float_t a, Float_t z, Float_t density, Float_t radl, Float_t inter);
45  virtual ~TMaterial();
46  virtual Int_t GetNumber() const {return fNumber;}
47  virtual Float_t GetA() const {return fA;}
48  virtual Float_t GetZ() const {return fZ;}
49  virtual Float_t GetDensity() const {return fDensity;}
50  virtual Float_t GetRadLength() const {return fRadLength;}
51  virtual Float_t GetInterLength() const {return fInterLength;}
52 
53  ClassDef(TMaterial,3) //Materials used in the Geometry Shapes
54 };
55 
56 #endif
virtual Int_t GetNumber() const
Definition: TMaterial.h:46
Float_t fZ
Definition: TMaterial.h:36
float Float_t
Definition: RtypesCore.h:53
virtual Float_t GetInterLength() const
Definition: TMaterial.h:51
TMaterial()
Material default constructor.
Definition: TMaterial.cxx:27
Float_t fDensity
Definition: TMaterial.h:37
int Int_t
Definition: RtypesCore.h:41
TArc * a
Definition: textangle.C:12
Float_t fInterLength
Definition: TMaterial.h:39
Fill Area Attributes class.
Definition: TAttFill.h:24
#define ClassDef(name, id)
Definition: Rtypes.h:254
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:33
Manages a detector material.
Definition: TMaterial.h:32
Int_t fNumber
Definition: TMaterial.h:34
virtual Float_t GetDensity() const
Definition: TMaterial.h:49
virtual Float_t GetA() const
Definition: TMaterial.h:47
virtual Float_t GetZ() const
Definition: TMaterial.h:48
Float_t fA
Definition: TMaterial.h:35
virtual Float_t GetRadLength() const
Definition: TMaterial.h:50
you should not use this method at all Int_t Int_t z
Definition: TRolke.cxx:630
virtual ~TMaterial()
Material default destructor.
Definition: TMaterial.cxx:72
Float_t fRadLength
Definition: TMaterial.h:38
char name[80]
Definition: TGX11.cxx:109