111 lines
3.8 KiB
C++
111 lines
3.8 KiB
C++
//
|
|
// ********************************************************************
|
|
// * License and Disclaimer *
|
|
// * *
|
|
// * The Geant4 software is copyright of the Copyright Holders of *
|
|
// * the Geant4 Collaboration. It is provided under the terms and *
|
|
// * conditions of the Geant4 Software License, included in the file *
|
|
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
|
// * include a list of copyright holders. *
|
|
// * *
|
|
// * Neither the authors of this software system, nor their employing *
|
|
// * institutes,nor the agencies providing financial support for this *
|
|
// * work make any representation or warranty, express or implied, *
|
|
// * regarding this software system or assume any liability for its *
|
|
// * use. Please see the license in the file LICENSE and URL above *
|
|
// * for the full disclaimer and the limitation of liability. *
|
|
// * *
|
|
// * This code implementation is the result of the scientific and *
|
|
// * technical work of the GEANT4 collaboration. *
|
|
// * By using, copying, modifying or distributing the software (or *
|
|
// * any work based on the software) you agree to acknowledge its *
|
|
// * use in resulting scientific publications, and indicate your *
|
|
// * acceptance of all terms of the Geant4 Software license. *
|
|
// ********************************************************************
|
|
//
|
|
#ifndef G4NucleusLimits_h
|
|
#define G4NucleusLimits_h 1
|
|
// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
//
|
|
// MODULE: G4NucleusLimits.hh
|
|
//
|
|
// Version: 0.b.4
|
|
// Date: 14/04/00
|
|
// Author: F Lei & P R Truscott
|
|
// Organisation: DERA UK
|
|
// Customer: ESA/ESTEC, NOORDWIJK
|
|
// Contract: 12115/96/JG/NL Work Order No. 3
|
|
//
|
|
// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
//
|
|
// CHANGE HISTORY
|
|
// --------------
|
|
//
|
|
// 29 February 2000, P R Truscott, DERA UK
|
|
// 0.b.3 release.
|
|
//
|
|
// 13 April 2000, F Lei, DERA UK
|
|
// 0.b.4 release. No change to this file
|
|
//
|
|
// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
#include "globals.hh"
|
|
#include <iostream>
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
class G4NucleusLimits
|
|
{
|
|
// class description
|
|
// The G4NucleusLimits class is used to contain information identifying a
|
|
// range bounded by A [aMin, aMax], and Z on [zMin, zMax].
|
|
//
|
|
// class description - end
|
|
|
|
public: // with description
|
|
G4NucleusLimits ();
|
|
// Default constructor where: aMin=1, aMax=240, aMin=1, and
|
|
// zMax=100.
|
|
//
|
|
G4NucleusLimits
|
|
(G4int aMin1, G4int aMax1, G4int zMin1, G4int zMax1);
|
|
// Constructor defining new values for aMin, aMax, zMin, and zMax
|
|
// respectively.
|
|
//
|
|
~G4NucleusLimits();
|
|
// Destructor
|
|
|
|
private:
|
|
G4int aMin;
|
|
G4int aMax;
|
|
G4int zMin;
|
|
G4int zMax;
|
|
|
|
//
|
|
//
|
|
// INLINE DECLARATIONS/DEFINTIONS:
|
|
//
|
|
public: // with description
|
|
|
|
inline G4int GetAMin () const {return aMin;}
|
|
// Returns the value of aMin.
|
|
//
|
|
inline G4int GetAMax () const {return aMax;}
|
|
// Returns the value of aMax.
|
|
//
|
|
inline G4int GetZMin () const {return zMin;}
|
|
// Returns the value of zMin.
|
|
//
|
|
inline G4int GetZMax () const {return zMax;}
|
|
// Return the value of zmax.
|
|
//
|
|
|
|
|
|
friend std::ostream &operator << (std::ostream &s, const G4NucleusLimits &q);
|
|
|
|
};
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
#endif
|
|
|