167 lines
3.3 KiB
C++
167 lines
3.3 KiB
C++
// This code implementation is the intellectual property of
|
|
// the GEANT4 collaboration.
|
|
//
|
|
// By copying, distributing or modifying the Program (or any work
|
|
// based on the Program) you indicate your acceptance of this statement,
|
|
// and all its terms.
|
|
//
|
|
// $Id: G4IsotopeProperty.hh,v 1.2 1999/10/28 23:24:10 kurasige Exp $
|
|
// GEANT4 tag $Name: geant4-03-00 $
|
|
//
|
|
//
|
|
// ------------------------------------------------------------
|
|
// GEANT 4 class header file
|
|
//
|
|
// For information related to this code contact:
|
|
// CERN, IT Division, ASD group
|
|
// ------------------------------------------------------------
|
|
// New design using G4VIsotopeTable 5 Oct. 99 H.Kurashige
|
|
|
|
#ifndef G4IsotopeProperty_h
|
|
#define G4IsotopeProperty_h 1
|
|
|
|
#include "globals.hh"
|
|
class G4DecayTable;
|
|
class G4IsotopeProperty
|
|
{
|
|
// Class Description
|
|
// G4IsotopeProperty contains properties of an isotope
|
|
//
|
|
|
|
public:
|
|
G4IsotopeProperty();
|
|
|
|
// copy construictor
|
|
G4IsotopeProperty(const G4IsotopeProperty& right);
|
|
|
|
// Assignment operator
|
|
G4IsotopeProperty & operator=(G4IsotopeProperty& right);
|
|
|
|
// equal / unequal operator
|
|
G4int operator==(const G4IsotopeProperty &right) const;
|
|
G4int operator!=(const G4IsotopeProperty &right) const;
|
|
|
|
// destructor
|
|
virtual ~G4IsotopeProperty();
|
|
|
|
|
|
public: // With Description
|
|
// Set/Get Atomic Number
|
|
G4int GetAtomicNumber() const;
|
|
void SetAtomicNumber(G4int Z);
|
|
|
|
// Set/Get Atomic Mass
|
|
G4int GetAtomicMass() const;
|
|
void SetAtomicMass(G4int A);
|
|
|
|
// Set/Get spin
|
|
G4int GetiSpin() const;
|
|
void SetiSpin(G4int J);
|
|
|
|
// Set/Get Excited Energy
|
|
G4double GetEnergy() const;
|
|
void SetEnergy(G4double E);
|
|
|
|
// Set/Get life time
|
|
G4double GetLifeTime() const;
|
|
void SetLifeTime(G4double T);
|
|
|
|
// Set/Get decay table
|
|
G4DecayTable* GetDecayTable() const;
|
|
void SetDecayTable(G4DecayTable* table);
|
|
|
|
// Dump out information
|
|
void DumpInfo() const;
|
|
|
|
private:
|
|
G4int fAtomicNumber; // number of proton
|
|
G4int fAtomicMass; // number of nucleon
|
|
G4int fISpin; // total angular momentum (in unit of 1/2)
|
|
G4double fEnergy; // excited energy
|
|
G4double fLifeTime; // lifeTime
|
|
G4DecayTable* fDecayTable; // decay Table
|
|
};
|
|
|
|
inline
|
|
G4int G4IsotopeProperty::GetAtomicNumber() const
|
|
{
|
|
return fAtomicNumber;
|
|
}
|
|
|
|
inline
|
|
void G4IsotopeProperty::SetAtomicNumber(G4int Z)
|
|
{
|
|
fAtomicNumber = Z;
|
|
}
|
|
|
|
inline
|
|
G4int G4IsotopeProperty::GetAtomicMass() const
|
|
{
|
|
return fAtomicMass;
|
|
}
|
|
|
|
inline
|
|
void G4IsotopeProperty::SetAtomicMass(G4int A)
|
|
{
|
|
fAtomicMass = A;
|
|
}
|
|
|
|
inline
|
|
G4int G4IsotopeProperty::GetiSpin() const
|
|
{
|
|
return fISpin;
|
|
}
|
|
|
|
inline
|
|
void G4IsotopeProperty::SetiSpin(G4int J)
|
|
{
|
|
fISpin = J;
|
|
}
|
|
|
|
inline
|
|
G4double G4IsotopeProperty::GetEnergy() const
|
|
{
|
|
return fEnergy;
|
|
}
|
|
|
|
inline
|
|
void G4IsotopeProperty::SetEnergy(G4double E)
|
|
{
|
|
fEnergy = E;
|
|
}
|
|
|
|
inline
|
|
G4double G4IsotopeProperty::GetLifeTime() const
|
|
{
|
|
return fLifeTime;
|
|
}
|
|
|
|
inline
|
|
void G4IsotopeProperty::SetLifeTime(G4double T)
|
|
{
|
|
fLifeTime = T;
|
|
}
|
|
|
|
inline
|
|
G4DecayTable* G4IsotopeProperty::GetDecayTable() const
|
|
{
|
|
return fDecayTable;
|
|
}
|
|
|
|
inline
|
|
void G4IsotopeProperty::SetDecayTable(G4DecayTable* table)
|
|
{
|
|
fDecayTable = table;
|
|
}
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|