All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
G3Medium.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 $Log: G3Medium.cxx,v $
17 Revision 1.3 2004/01/28 08:17:52 brun
18 Reintroduce the Geant3 graphics classes (thanks Andreas Morsch)
19 
20 Revision 1.1.1.1 2002/07/24 15:56:26 rdm
21 initial import into CVS
22 
23 */
24 
25 
26 //
27 // G3 Medium Class for the G3 GUI
28 // Author: Andreas Morsch
29 // andreas.morsch@cern.ch
30 //
31 
33 
35 
37 {
38 // constructor
39  fId=-1;
40 }
41 
42 G3Medium::G3Medium(Int_t imed, Int_t imat, const char* name,
43  Int_t isvol, Int_t ifield,
44  Float_t fieldm, Float_t tmaxfd,
45  Float_t stemax, Float_t deemax,
46  Float_t epsil, Float_t stmin)
47  : TNamed(name, "Medium")
48 {
49 // constructor
50  fId=imed;
51  fIdMat=imat;
52  fIsvol=isvol;
53  fIfield=ifield;
54  fFieldm=fieldm;
55  fTmaxfd=tmaxfd;
56  fStemax=stemax;
57  fDeemax=deemax;
58  fEpsil=epsil;
59  fStmin=stmin;
60 }
61 
62 Int_t G3Medium::Id()
63 {
64 // return medium id
65  return fId;
66 }
67 
68 
69 Float_t G3Medium::GetPar(Int_t ipar)
70 {
71 // Get parameter number ipar
72  Float_t p;
73  if (ipar < 23) {
74  p= fPars[ipar-1];
75  } else if(ipar >=23 && ipar <27) {
76  p= fPars[ipar-1+3];
77  } else {
78  p= fPars[ipar-1+4];
79  }
80 
81  return p;
82 }
83 
84 void G3Medium::Streamer(TBuffer &)
85 {
86 // dummy streamer
87 ;
88 }
89 
90 
91 
92 
93 
94 
95 
96 
97 
98 
99 
100 
101 
102 
103 
Float_t fDeemax
Definition: G3Medium.h:50
Float_t fTmaxfd
Definition: G3Medium.h:48
Int_t fIfield
Definition: G3Medium.h:46
Float_t fStemax
Definition: G3Medium.h:49
virtual Int_t Id()
Definition: G3Medium.cxx:62
Float_t fEpsil
Definition: G3Medium.h:51
Int_t fIdMat
Definition: G3Medium.h:44
virtual Float_t GetPar(Int_t ipar)
Definition: G3Medium.cxx:69
Int_t fId
Definition: G3Medium.h:43
Float_t fStmin
Definition: G3Medium.h:52
ClassImp(G3Medium) G3Medium
Definition: G3Medium.cxx:34
Float_t fPars[kNPars]
Definition: G3Medium.h:42
p
Definition: test.py:223
Float_t fFieldm
Definition: G3Medium.h:47
Int_t fIsvol
Definition: G3Medium.h:45