G3MedTableEntry.cc

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 //
00027 // $Id$
00028 //
00029 // by I.Hrivnacova, 27 Sep 99
00030 
00031 #include "G3MedTableEntry.hh"
00032 
00033 #include "G4Material.hh"
00034 #include "G4MagneticField.hh"
00035 #include "G4UserLimits.hh"
00036 
00037 G3MedTableEntry::G3MedTableEntry(G4int id, G4Material* material, 
00038        G4MagneticField* field, G4UserLimits* limits, G4int isvol)
00039   : fID(id),
00040     fMaterial(material),
00041     fField(field),
00042     fLimits(limits),
00043     fISVOL(isvol)
00044 {}
00045 
00046 G3MedTableEntry::G3MedTableEntry(const G3MedTableEntry& right)
00047   : fID(right.GetID()),
00048     fMaterial(right.GetMaterial()),
00049     fField(right.GetField()),
00050     fLimits(right.GetLimits()),
00051     fISVOL(right.GetISVOL())    
00052 {}    
00053 
00054 G3MedTableEntry::~G3MedTableEntry()
00055 {}
00056 
00057 G3MedTableEntry& G3MedTableEntry::operator=(const G3MedTableEntry& right)
00058 { 
00059   if (&right == this)  { return *this; }
00060   fID = right.GetID();
00061   fMaterial = right.GetMaterial();     
00062   fField = right.GetField();
00063   fLimits = right.GetLimits();
00064   fISVOL = right.GetISVOL();  
00065   return *this;
00066 }
00067 
00068 G4int G3MedTableEntry::operator==(const G3MedTableEntry& right) const
00069 { 
00070   if (fID == right.GetID()) 
00071     return 1;
00072   else
00073     return 0;
00074 }
00075 
00076 G4int G3MedTableEntry::operator!=(const G3MedTableEntry& right) const
00077 { 
00078   if (*this == right) 
00079     return 0;
00080   else
00081     return 1;
00082 }
00083 

Generated on Mon May 27 17:47:35 2013 for Geant4 by  doxygen 1.4.7