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

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

update processes

File size: 2.9 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.6 2008/09/19 13:32:54 ahoward Exp $
28// GEANT4 tag $Name: geant4-09-02-ref-02 $
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(const G4int anA, const G4int aZ)
39{
40    if (anA >= aZ && anA > 0) {
41        theA = anA;
42        theZ = aZ;
43    } else {
44        std::ostringstream errOs;
45        errOs << "G4VCoulombBarrier::G4VCoulombBarrier: ";
46        errOs << "Wrong values for ";
47        errOs << "A = " << anA << " ";
48        errOs << "and Z = " << aZ << G4endl;
49        throw G4HadronicException(__FILE__, __LINE__, errOs.str());
50    }
51}
52
53
54G4VCoulombBarrier::G4VCoulombBarrier(const G4VCoulombBarrier & )
55{
56    throw G4HadronicException(__FILE__, __LINE__, "G4VCoulombBarrier::copy_constructor meant to not be accessable.");
57}
58
59
60const G4VCoulombBarrier & G4VCoulombBarrier::operator=(const G4VCoulombBarrier & )
61{
62    throw G4HadronicException(__FILE__, __LINE__, "G4VCoulombBarrier::operator= meant to not be accessable.");
63    return *this;
64}
65
66G4bool G4VCoulombBarrier::operator==(const G4VCoulombBarrier & ) const 
67{
68    return false;
69}
70
71G4bool G4VCoulombBarrier::operator!=(const G4VCoulombBarrier & ) const 
72{
73    return true;
74}
75
Note: See TracBrowser for help on using the repository browser.