source: trunk/source/processes/hadronic/models/de_excitation/util/src/G4VCoulombBarrier.cc @ 1196

Last change on this file since 1196 was 1196, checked in by garnier, 15 years ago

update CVS release candidate geant4.9.3.01

File size: 3.0 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer                                           *
4// *                                                                  *
5// * The  Geant4 software  is  copyright of the Copyright Holders  of *
6// * the Geant4 Collaboration.  It is provided  under  the terms  and *
7// * conditions of the Geant4 Software License,  included in the file *
8// * LICENSE and available at  http://cern.ch/geant4/license .  These *
9// * include a list of copyright holders.                             *
10// *                                                                  *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work  make  any representation or  warranty, express or implied, *
14// * regarding  this  software system or assume any liability for its *
15// * use.  Please see the license in the file  LICENSE  and URL above *
16// * for the full disclaimer and the limitation of liability.         *
17// *                                                                  *
18// * This  code  implementation is the result of  the  scientific and *
19// * technical work of the GEANT4 collaboration.                      *
20// * By using,  copying,  modifying or  distributing the software (or *
21// * any work based  on the software)  you  agree  to acknowledge its *
22// * use  in  resulting  scientific  publications,  and indicate your *
23// * acceptance of all terms of the Geant4 Software license.          *
24// ********************************************************************
25//
26//
27// $Id: G4VCoulombBarrier.cc,v 1.7 2009/03/04 11:05:02 gcosmo Exp $
28// GEANT4 tag $Name: geant4-09-03-cand-01 $
29//
30// Hadronic Process: Nuclear De-excitations
31// by V. Lara (Dec 1999)
32
33
34#include "G4VCoulombBarrier.hh"
35#include "G4HadronicException.hh"
36#include <sstream>
37
38G4VCoulombBarrier::G4VCoulombBarrier()
39  : theA(1),theZ(0)
40{
41}
42
43
44G4VCoulombBarrier::G4VCoulombBarrier(const G4int anA, const G4int aZ)
45{
46    if (anA >= aZ && anA > 0) {
47        theA = anA;
48        theZ = aZ;
49    } else {
50        std::ostringstream errOs;
51        errOs << "G4VCoulombBarrier::G4VCoulombBarrier: ";
52        errOs << "Wrong values for ";
53        errOs << "A = " << anA << " ";
54        errOs << "and Z = " << aZ << G4endl;
55        throw G4HadronicException(__FILE__, __LINE__, errOs.str());
56    }
57}
58
59
60G4VCoulombBarrier::~G4VCoulombBarrier()
61{
62}
63
64
65G4VCoulombBarrier::G4VCoulombBarrier(const G4VCoulombBarrier & )
66{
67    throw G4HadronicException(__FILE__, __LINE__, "G4VCoulombBarrier::copy_constructor meant to not be accessable.");
68}
69
70
71const G4VCoulombBarrier & G4VCoulombBarrier::operator=(const G4VCoulombBarrier & )
72{
73    throw G4HadronicException(__FILE__, __LINE__, "G4VCoulombBarrier::operator= meant to not be accessable.");
74    return *this;
75}
76
77G4bool G4VCoulombBarrier::operator==(const G4VCoulombBarrier & ) const 
78{
79    return false;
80}
81
82G4bool G4VCoulombBarrier::operator!=(const G4VCoulombBarrier & ) const 
83{
84    return true;
85}
86
Note: See TracBrowser for help on using the repository browser.