All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
G3Material.cxx
Go to the documentation of this file.
1 /* *************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  * *
4  * Author: The ALICE Off-line Project. *
5  * Contributors are mentioned in the code where appropriate. *
6  * *
7  * Permission to use, copy, modify and distribute this software and its *
8  * documentation strictly for non-commercial purposes is hereby granted *
9  * without fee, provided that the above copyright notice appears in all *
10  * copies and that both the copyright notice and this permission notice *
11  * appear in the supporting documentation. The authors make no claims *
12  * about the suitability of this software for any purpose. It is *
13  * provided "as is" without express or implied warranty. *
14  **************************************************************************/
15 
16 //
17 // G3 Material Class for the G3 GUI
18 // Author: Andreas Morsch
19 // andreas.morsch@cern.ch
20 //
21 
23 
25 G3Material::G3Material(char* name, char* title,
26  Float_t a, Float_t z, Float_t dens, Float_t radl, Float_t intl):
27  TMaterial(name, title, a, z, dens, radl, intl)
28 {
29  fId=-1;
30 }
31 
32 
33 void G3Material::Dump() const
34 {
35  // Dump material information (Attn: overrides TObject::Dump()).
36 
37  printf("\n *****************************************");
38  printf("\n Material Number: %10d", fId);
39  printf("\n %s", GetName());
40  printf("\n Mass Number: %10.2f", fA);
41  printf("\n Charge Number: %10.2f", fZ);
42  printf("\n Density: %10.2f", fDensity);
43  printf("\n Radiation Length: %10.2f", fRadLength);
44  printf("\n Absorption Length: %10.2f", fInterLength);
45 }
46 
47 
48 
49 
50 
51 
52 
53 
54 
55 
56 
57 
58 
59 
60 
virtual void Dump() const
Definition: G3Material.cxx:33
ClassImp(G3Material) G3Material
Definition: G3Material.cxx:24
double z
Int_t fId
Definition: G3Material.h:24
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition: pointer.h:1124