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) BDSIM Collaboration, 2001 - 2026.
3
4This file is part of BDSIM.
5
6BDSIM is free software: you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published
8by the Free Software Foundation version 3 of the License.
9
10BDSIM is distributed in the hope that it will be useful, but
11WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
17*/
18#ifndef BDSELECTRONQUANTUMLEVEL_H
19#define BDSELECTRONQUANTUMLEVEL_H
20#include "G4Types.hh"
21
29{
30public:
31 BDSElectronQuantumLevel() = delete;
32 BDSElectronQuantumLevel(G4int n, G4int l, G4double j);
33 ~BDSElectronQuantumLevel() = default;
34
35 G4double DiracEnergyNJ(G4int n, G4int j) const;
36 void AddElectrons(G4int number);
37 void RemoveElectrons(G4int number);
38
39 // setters
40 inline void SetnPrincipleNumber(G4int nPrincipleNumberIn) {nPrincipleNumber=nPrincipleNumberIn;}
41 inline void SetlAngularNumber(G4int lAngularNumberIn) {lAngularNumber=lAngularNumberIn;}
42 inline void SetExcitedLifetime(G4double excitedLifetimeIn) {excitedLifetime=excitedLifetimeIn;}
43 inline void SetTimeOfExcitement(G4double timeOfExcitementIn) {timeOfExcitement=timeOfExcitementIn;}
44
45 // getters
46 inline G4int GetnPrincipleNumnber() const {return nPrincipleNumber;}
47 inline G4int GetlAngularNumber() const {return lAngularNumber;}
48 inline G4double GetjSpinOrbitCoupling() const {return jSpinOrbitCoupling;}
49 inline G4int GetMaxOccupancy() const {return maxOccupancy;}
50 inline G4int GetCurrentOccupancy() const {return currentOccupancy;}
51 inline G4double GetLevelEnergy() const {return levelEnergy;}
52 inline G4double GetExcitedLifetime() const {return excitedLifetime;}
53 inline G4double GetTimeOfExcitement() const {return timeOfExcitement;}
54
55private:
56 G4int nPrincipleNumber;
57 G4int lAngularNumber;
58 G4double jSpinOrbitCoupling;
59 G4double levelEnergy;
60 G4int maxOccupancy;
61 G4int currentOccupancy;
62 G4double excitedLifetime;
63 G4double timeOfExcitement;
64};
65
66#endif
Electron Quantum levels for more than just n quantum number.