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

Last change on this file since 1340 was 1340, checked in by garnier, 14 years ago

update ti head

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