ROOT
6.30.04
Reference Guide
All
Namespaces
Files
Pages
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
#include "
TMaterial.h
"
26
27
class
TMixture :
public
TMaterial {
28
protected
:
29
Int_t fNmixt;
//Number of elements in mixture
30
Float_t *fAmixt;
//[fNmixt] Array of A of mixtures
31
Float_t *fZmixt;
//[fNmixt] Array of Z of mixtures
32
Float_t *fWmixt;
//[fNmixt] Array of relative weights
33
34
public
:
35
TMixture();
36
TMixture(
const
char
*name,
const
char
*title, Int_t nmixt);
37
virtual
~TMixture();
38
39
virtual
void
DefineElement(Int_t n, Float_t a, Float_t z, Float_t w);
40
Int_t GetNmixt()
const
{
return
fNmixt;}
41
Float_t *GetAmixt()
const
{
return
fAmixt;}
42
Float_t *GetZmixt()
const
{
return
fZmixt;}
43
Float_t *GetWmixt()
const
{
return
fWmixt;}
44
45
ClassDef(TMixture,1)
//Mixtures used in the Geometry Shapes
46
};
47
48
#endif
TMaterial.h
graf3d
g3d
inc
TMixture.h
Generated on Tue May 5 2020 14:02:39 for ROOT by
1.8.5