BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSElectronOccupancy.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 BDSELECTRONOCCUPANCY_H
20#define BDSELECTRONOCCUPANCY_H
21#include "globals.hh"
22#include "G4ElectronOccupancy.hh"
23
24#include <tuple>
25#include <vector>
26
28
36{
37public:
38 BDSElectronOccupancy(G4int maxn);
40 void CreateNewLevel(G4int n, G4int l, G4int j);
41 static G4bool CompareEnergy(BDSElectronQuantumLevel* level1, BDSElectronQuantumLevel* level2);
42 void PopulateLevels();
43 void AddElectrons(G4int number);
44 void AddElectrons(G4int n, G4int l,G4double j, G4int number);
45 void RemoveElectrons(G4int number);
46 void RemoveElectrons(G4int n, G4int l,G4double j, G4int number);
47 void SetStateLifetime(G4int n, G4int l, G4double lifetime);
48 G4double GetStateLifetime(G4int n, G4int l, G4double j);
49 G4bool StatePopulated(G4int n, G4int l, G4double j);
50 void SetTimeOfExciation(G4double timeOfExcitationIn, G4int n, G4int l, G4double j);
51 G4double GetTimeOfExcitation(G4int n, G4int l, G4double j);
52
53 // setters
54 inline void SetTotalElectrons(G4int totalElectronsIn) {totalElectrons=totalElectronsIn;}
55
56private:
57 std::vector<BDSElectronQuantumLevel*> stateList;
58 G4int totalElectrons;
59};
60
61#endif
Electron Occupancy for more than just n quantum number.
Electron Quantum levels for more than just n quantum number.