]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TGeant3/AliGUIMedium.cxx
Introducing glvolu in the interface
[u/mrichter/AliRoot.git] / TGeant3 / AliGUIMedium.cxx
CommitLineData
ef42d733 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$Log$
18Revision 1.8 2000/07/12 08:56:32 fca
19Coding convention correction and warning removal
20
21Revision 1.7 2000/06/28 21:27:45 morsch
22Most coding rule violations corrected.
23Still to do: Split the file (on file per class) ? Avoid the global variables.
24Copy constructors and assignment operators (dummy ?)
25
26Revision 1.6 2000/04/14 11:07:46 morsch
27Correct volume to medium assignment in case several media are asigned to the
28same material.
29
30Revision 1.5 2000/03/20 15:11:03 fca
31Mods to make the code compile on HP
32
33Revision 1.4 2000/01/18 16:12:08 morsch
34Bug in calculation of number of volume divisions and number of positionings corrected
35Browser for Material and Media properties added
36
37Revision 1.3 1999/11/14 14:31:14 fca
38Correct small error and remove compilation warnings on HP
39
40Revision 1.2 1999/11/10 16:53:35 fca
41The new geometry viewer from A.Morsch
42
43*/
44
45/*
46 * Version: 0
47 * Written by Andreas Morsch
48 *
49 *
50 *
51 * For questions critics and suggestions to this part of the code
52 * contact andreas.morsch@cern.ch
53 *
54 **************************************************************************/
55
56#include "AliGUIMedium.h"
57
58ClassImp(AliGUIMedium)
59
60AliGUIMedium::AliGUIMedium()
61{
62// constructor
63 fId=-1;
64 fName = 0;
65}
66
67AliGUIMedium::AliGUIMedium(Int_t imed, Int_t imat, char* name, Int_t isvol,
68 Int_t ifield,
69 Float_t fieldm, Float_t tmaxfd, Float_t stemax, Float_t deemax,
70 Float_t epsil, Float_t stmin)
71{
72// constructor
73 fId=imed;
74 fIdMat=imat;
75 fName=name;
76 fIsvol=isvol;
77 fIfield=ifield;
78 fFieldm=fieldm;
79 fTmaxfd=tmaxfd;
80 fStemax=stemax;
81 fDeemax=deemax;
82 fEpsil=epsil;
83 fStmin=stmin;
84}
85
86void AliGUIMedium::Dump()
87{
88// Dummy dump
89 ;
90}
91
92Int_t AliGUIMedium::Id()
93{
94// return medium id
95 return fId;
96}
97
98char* AliGUIMedium::Name()
99{
100// return medium name
101 return fName;
102}
103
104Float_t AliGUIMedium::GetPar(Int_t ipar)
105{
106// Get parameter number ipar
107 Float_t p;
108 if (ipar < 23) {
109 p= fPars[ipar-1];
110 } else if(ipar >=23 && ipar <27) {
111 p= fPars[ipar-1+3];
112 } else {
113 p= fPars[ipar-1+4];
114 }
115
116 return p;
117}
118
119void AliGUIMedium::Streamer(TBuffer &)
120{
121// dummy streamer
122;
123}
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138