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