source: trunk/source/processes/hadronic/models/de_excitation/photon_evaporation/include/G4NuclearLevel.hh @ 962

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

import all except CVS

File size: 6.2 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//      GEANT 4 class file
28//
29//      For information related to this code contact:
30//      CERN, IT Division, ASD group
31//      CERN, Geneva, Switzerland
32//
33//      File name:     G4NuclearLevel
34//
35//      Author:        Maria Grazia Pia (pia@genova.infn.it)
36//
37//      Creation date: 25 October 1998
38//
39//      Modifications:
40//        21 Nov. 2001, Fan Lei (flei@space.qinetiq.com)
41//              Added K->N+ internal  conversion coefficiencies and their access
42//              functions     
43//     
44//        15 April 1999, Alessandro Brunengo (Alessandro.Brunengo@ge.infn.it)
45//              Added half-life, angular momentum, parity, emissioni type
46//              reading from experimental data.
47//     
48// -------------------------------------------------------------------
49
50#ifndef G4NUCLEARLEVEL_HH
51#define G4NUCLEARLEVEL_HH
52
53#include "globals.hh"
54#include "G4NuclearLevel.hh"
55#include <vector>
56
57class G4NuclearLevel 
58{
59
60public:
61
62  G4NuclearLevel(const G4double energy, const G4double halfLife,
63                 const G4double angularMomentum, const std::vector<double>& eGamma,
64                 const std::vector<double>& wGamma, const std::vector<double>& polarities,
65                 const std::vector<double>& kCC, const std::vector<double>& l1CC,
66                 const std::vector<double>& l2CC, const std::vector<double>& l3CC,
67                 const std::vector<double>& m1CC, const std::vector<double>& m2CC,
68                 const std::vector<double>& m3CC, const std::vector<double>& m4CC,
69                 const std::vector<double>& m5CC, const std::vector<double>& nPlusCC,
70                 const std::vector<double>& totalCC);
71
72  ~G4NuclearLevel();
73
74  const std::vector<double>& GammaEnergies() const;
75 
76  const std::vector<double>& GammaWeights() const;
77
78  const std::vector<double>& GammaProbabilities() const;
79
80  const std::vector<double>& GammaCumulativeProbabilities() const;
81
82  const std::vector<double>& GammaPolarities() const;
83
84  const std::vector<double>& KConvertionProbabilities() const;
85
86  const std::vector<double>& L1ConvertionProbabilities() const;
87
88  const std::vector<double>& L2ConvertionProbabilities() const;
89
90  const std::vector<double>& L3ConvertionProbabilities() const;
91
92  const std::vector<double>& M1ConvertionProbabilities() const;
93
94  const std::vector<double>& M2ConvertionProbabilities() const;
95
96  const std::vector<double>& M3ConvertionProbabilities() const;
97
98  const std::vector<double>& M4ConvertionProbabilities() const;
99
100  const std::vector<double>& M5ConvertionProbabilities() const;
101
102  const std::vector<double>& NPlusConvertionProbabilities() const;
103
104  const std::vector<double>& TotalConvertionProbabilities() const;
105
106  G4double Energy() const;
107
108  G4double AngularMomentum() const;
109
110  G4double HalfLife() const;
111
112  G4int NumberOfGammas() const;
113
114  void PrintAll() const; 
115
116  G4bool operator==(const G4NuclearLevel &right) const;
117  G4bool operator!=(const G4NuclearLevel &right) const;
118  G4bool operator<(const G4NuclearLevel &right) const;
119
120    const G4NuclearLevel& operator=(const G4NuclearLevel &right)
121    {
122      if(this != &right)
123      {
124      _energies = right._energies;
125      _weights =right._weights;
126      _prob =right._prob;
127      _cumProb =right._cumProb;
128      _polarities =right._polarities;
129      _kCC = right._kCC;
130      _l1CC =right._l1CC;
131      _l2CC =right._l2CC;
132      _l3CC =right._l3CC;
133      _m1CC = right._m1CC;
134      _m2CC = right._m2CC;
135      _m3CC = right._m3CC;
136      _m4CC = right._m4CC;
137      _m5CC = right._m5CC;
138      _nPlusCC = right._nPlusCC;
139      _totalCC = right._totalCC;
140      _energy = right._energy;
141      _halfLife = right._halfLife;
142      _angularMomentum = right._angularMomentum;
143      _nGammas = right._nGammas;
144      }
145      return *this;
146    }
147
148    G4NuclearLevel(const G4NuclearLevel &right)
149    {
150      if(this != &right) *this = right;
151//      G4cout << "####### Incrementing "<<Increment(1)<<G4endl;
152    }
153
154protected:
155
156private: 
157
158  G4NuclearLevel() {G4cout << "Calling default constructor"<<G4endl;};
159     
160  void MakeProbabilities();
161  void MakeCumProb();
162 
163  G4int Increment(G4int aF);
164 
165  std::vector<double> _energies;
166  std::vector<double> _weights;
167  std::vector<double> _prob;
168  std::vector<double> _cumProb;
169  std::vector<double> _polarities;
170  std::vector<double> _kCC;
171  std::vector<double> _l1CC; 
172  std::vector<double> _l2CC; 
173  std::vector<double> _l3CC; 
174  std::vector<double> _m1CC; 
175  std::vector<double> _m2CC; 
176  std::vector<double> _m3CC; 
177  std::vector<double> _m4CC; 
178  std::vector<double> _m5CC; 
179  std::vector<double> _nPlusCC; 
180  std::vector<double> _totalCC; 
181
182  G4double _energy;
183  G4double _halfLife;
184  G4double _angularMomentum;
185  G4int _nGammas;
186 
187
188};
189
190#endif
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
Note: See TracBrowser for help on using the repository browser.