BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSElectronQuantumLevel.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) Royal Holloway,
3University of London 2001 - 2024.
4
5This file is part of BDSIM.
6
7BDSIM is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published
9by the Free Software Foundation version 3 of the License.
10
11BDSIM is distributed in the hope that it will be useful, but
12WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
18*/
19#ifndef BDSElectronQuantumLevel_H
20#define BDSElectronQuantumLevel_H
21
22#include "G4ElectronOccupancy.hh"
23#include <vector>
24#include <tuple>
25
33public:
34 BDSElectronQuantumLevel(G4int n, G4int l, G4double j);
36 G4double DiracEnergyNJ(G4int n, G4int j);
37 void AddElectrons(G4int number);
38 void RemoveElectrons(G4int number);
39 // setters
40 inline void SetnPrincipleNumber(G4int nPrincipleNumberIn) {nPrincipleNumber=nPrincipleNumberIn;}
41 inline void SetlAngularNumber(G4int lAngularNumberIn) {lAngularNumber=lAngularNumberIn;}
42 // getters
43 inline G4int GetnPrincipleNumnber() {return nPrincipleNumber;}
44 inline G4int GetlAngularNumber() {return lAngularNumber;}
45 inline G4double GetjSpinOrbitCoupling() {return jSpinOrbitCoupling;}
46 inline G4int GetMaxOccupancy() {return maxOccupancy;}
47 inline G4int GetCurrentOccupancy() {return currentOccupancy;}
48 inline G4double GetLevelEnergy() {return levelEnergy;}
49 inline void SetExcitedLifetime(G4double excitedLifetimeIn) {excitedLifetime=excitedLifetimeIn;}
50 inline void SetTimeOfExcitement(G4double timeOfExcitementIn) {timeOfExcitement=timeOfExcitementIn;}
51 inline G4double GetExcitedLifetime() {return excitedLifetime;}
52 inline G4double GetTimeOfExcitement() {return timeOfExcitement;}
53
54private:
55 G4int nPrincipleNumber;
56 G4int lAngularNumber;
57 G4double jSpinOrbitCoupling;
58 G4double levelEnergy;
59 G4int maxOccupancy;
60 G4int currentOccupancy;
61 G4double excitedLifetime;
62 G4double timeOfExcitement;
63
64};
65
66#endif
Electron Quantum levels for more than just n quantum number.