1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 Revision 1.2 1999/09/29 09:24:19 fca
19 Introduction of the Copyright and cvs Log
26 // ---------------------------------------------------------------------------
30 // This file is part of the ALICE Geometry Database .
32 // Author: Joana E. Santo
34 // ---------------------------------------------------------------------------
36 #include "AliGMaterial.h"
38 ClassImp(AliGMaterial)
41 //-------------------------------------------------------------------------
43 AliGMaterial::AliGMaterial( Int_t imat, Text_t* name, Text_t* title, Int_t isvol, Int_t ifield, Float_t fieldm, Float_t tmaxfd, Float_t stemax, Float_t deemax, Float_t epsil, Float_t stmin, Float_t* ubuf, Int_t nbuf, Float_t a, Float_t z, Float_t dens, Float_t radl, Float_t absl, Float_t* buf, Int_t nwbuf ) : TNamed(name, title)
45 /* VIC: Very Important Constructor */
57 fUbuf = new Float_t[nbuf];
59 for( int i=0; i<nbuf; i++ )
69 fBuf = new Float_t[nwbuf];
71 for( int j=0; j<nwbuf; j++ )
77 //-------------------------------------------------------------------------
79 AliGMaterial::AliGMaterial(Text_t* name, Text_t* title, Float_t A, Float_t Z, Float_t rho) : TNamed(name, title)
87 //-------------------------------------------------------------------------
89 AliGMaterial::AliGMaterial( AliGMaterial* Mat )
91 /* Copy Constructor */
95 fIfield = Mat->fIfield;
96 fFieldm = Mat->fFieldm;
97 fTmaxfd = Mat->fTmaxfd;
98 fStemax = Mat->fStemax;
99 fDeemax = Mat->fDeemax;
100 fEpsil = Mat->fEpsil;
101 fStmin = Mat->fStmin;
103 fUbuf = new Float_t[Mat->fNbuf];
105 for( int i=0; i<Mat->fNbuf; i++ )
106 fUbuf[i] = Mat->fUbuf[i];
115 fBuf = new Float_t[Mat->fNwbuf];
117 for( int j=0; j<Mat->fNwbuf; j++ )
118 fBuf[j] = Mat->fBuf[j];
120 fNwbuf = Mat->fNwbuf;
122 fName = Mat->GetName();
123 fTitle = Mat->GetTitle();
126 /* Default Constructor */
155 //-------------------------------------------------------------------------
157 AliGMaterial::~AliGMaterial()
160 if( fUbuf ) delete [] fUbuf;
161 if( fBuf ) delete [] fBuf;
164 //-------------------------------------------------------------------------
166 AliGMaterial* AliGMaterial::operator=( const AliGMaterial* Mat )
169 if( this == Mat ) return this; // special case.
172 fName = Mat->GetName();
174 fTitle = Mat->GetTitle();