ROOT  6.06/09
Reference Guide
TMixture.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 // TMixture //
16 // //
17 // Mixtures used in the Geometry Shapes //
18 // //
19 // //
20 //////////////////////////////////////////////////////////////////////////
21 
22 #ifndef ROOT_TMixture
23 #define ROOT_TMixture
24 
25 #ifndef ROOT_TMaterial
26 #include "TMaterial.h"
27 #endif
28 
29 class TMixture : public TMaterial {
30 protected:
31  Int_t fNmixt; //Number of elements in mixture
32  Float_t *fAmixt; //[fNmixt] Array of A of mixtures
33  Float_t *fZmixt; //[fNmixt] Array of Z of mixtures
34  Float_t *fWmixt; //[fNmixt] Array of relative weights
35 
36 public:
37  TMixture();
38  TMixture(const char *name, const char *title, Int_t nmixt);
39  virtual ~TMixture();
40 
41  virtual void DefineElement(Int_t n, Float_t a, Float_t z, Float_t w);
42  Int_t GetNmixt() const {return fNmixt;}
43  Float_t *GetAmixt() const {return fAmixt;}
44  Float_t *GetZmixt() const {return fZmixt;}
45  Float_t *GetWmixt() const {return fWmixt;}
46 
47  ClassDef(TMixture,1) //Mixtures used in the Geometry Shapes
48 };
49 
50 #endif
Manages a detector mixture.
Definition: TMixture.h:29
float Float_t
Definition: RtypesCore.h:53
Float_t * fWmixt
Definition: TMixture.h:34
Int_t GetNmixt() const
Definition: TMixture.h:42
int Int_t
Definition: RtypesCore.h:41
TArc * a
Definition: textangle.C:12
Float_t * GetZmixt() const
Definition: TMixture.h:44
Float_t * GetWmixt() const
Definition: TMixture.h:45
#define ClassDef(name, id)
Definition: Rtypes.h:254
Manages a detector material.
Definition: TMaterial.h:32
Float_t * GetAmixt() const
Definition: TMixture.h:43
Int_t fNmixt
Definition: TMixture.h:31
Float_t * fAmixt
Definition: TMixture.h:32
Float_t * fZmixt
Definition: TMixture.h:33
virtual void DefineElement(Int_t n, Float_t a, Float_t z, Float_t w)
Define one mixture element.
Definition: TMixture.cxx:84
#define name(a, b)
Definition: linkTestLib0.cpp:5
virtual ~TMixture()
Mixture default destructor.
Definition: TMixture.cxx:71
const Int_t n
Definition: legend1.C:16