Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

G3Medium.cxx

Go to the documentation of this file.
00001 /* *************************************************************************
00002  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
00003  *                                                                        *
00004  * Author: The ALICE Off-line Project.                                    *
00005  * Contributors are mentioned in the code where appropriate.              *
00006  *                                                                        *
00007  * Permission to use, copy, modify and distribute this software and its   *
00008  * documentation strictly for non-commercial purposes is hereby granted   *
00009  * without fee, provided that the above copyright notice appears in all   *
00010  * copies and that both the copyright notice and this permission notice   *
00011  * appear in the supporting documentation. The authors make no claims     *
00012  * about the suitability of this software for any purpose. It is          *
00013  * provided "as is" without express or implied warranty.                  *
00014  **************************************************************************/
00015 /*
00016 Revision 1.3  2004/01/28 08:17:52  brun
00017 Reintroduce the Geant3 graphics classes (thanks Andreas Morsch)
00018 
00019 Revision 1.1.1.1  2002/07/24 15:56:26  rdm
00020 initial import into CVS
00021 
00022 */
00023 
00024 
00025 //
00026 // G3 Medium Class for the G3 GUI
00027 // Author: Andreas Morsch
00028 // andreas.morsch@cern.ch
00029 //
00030 
00031 #include "G3Medium.h"
00032 
00033 ClassImp(G3Medium)
00034 
00035 G3Medium::G3Medium()
00036 {
00037 // constructor
00038     fId=-1;
00039 }
00040 
00041 G3Medium::G3Medium(Int_t imed, Int_t imat, const char* name,
00042                            Int_t isvol, Int_t ifield,
00043                            Float_t fieldm, Float_t tmaxfd,
00044                            Float_t stemax, Float_t deemax,
00045                            Float_t epsil, Float_t stmin)
00046     : TNamed(name, "Medium")
00047 {
00048 // constructor
00049     fId=imed;
00050     fIdMat=imat;
00051     fIsvol=isvol;
00052     fIfield=ifield;
00053     fFieldm=fieldm;
00054     fTmaxfd=tmaxfd;
00055     fStemax=stemax;
00056     fDeemax=deemax;
00057     fEpsil=epsil;
00058     fStmin=stmin;
00059 }
00060 
00061 Int_t G3Medium::Id()
00062 {
00063 // return medium id
00064     return fId;
00065 }
00066 
00067 
00068 Float_t G3Medium::GetPar(Int_t ipar)
00069 {
00070 // Get parameter number ipar
00071     Float_t p;
00072     if (ipar < 23) {
00073         p= fPars[ipar-1];
00074     } else if(ipar >=23 && ipar <27) {
00075         p= fPars[ipar-1+3];
00076     } else {
00077         p= fPars[ipar-1+4];
00078     }
00079 
00080     return p;
00081 }
00082 
00083 void G3Medium::Streamer(TBuffer &)
00084 {
00085 // dummy streamer
00086 ;
00087 }
00088 
00089 
00090 
00091 
00092 
00093 
00094 
00095 
00096 
00097 
00098 
00099 
00100 
00101 
00102 

Generated on Mon Feb 15 11:06:45 2010 for loon by  doxygen 1.3.9.1