forked from celeritas-project/celeritas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BremsstrahlungProcess.hh
83 lines (71 loc) · 3.05 KB
/
BremsstrahlungProcess.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
//----------------------------------*-C++-*----------------------------------//
// Copyright 2020-2024 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//---------------------------------------------------------------------------//
//! \file celeritas/em/process/BremsstrahlungProcess.hh
//---------------------------------------------------------------------------//
#pragma once
#include <functional>
#include <memory>
#include "celeritas/ext/GeantPhysicsOptions.hh"
#include "celeritas/mat/MaterialParams.hh"
#include "celeritas/phys/Applicability.hh"
#include "celeritas/phys/AtomicNumber.hh"
#include "celeritas/phys/ImportedProcessAdapter.hh"
#include "celeritas/phys/ParticleParams.hh"
#include "celeritas/phys/Process.hh"
namespace celeritas
{
struct ImportSBTable;
//---------------------------------------------------------------------------//
/*!
* Bremsstrahlung process for electrons and positrons.
*/
class BremsstrahlungProcess : public Process
{
public:
//!@{
//! \name Type aliases
using SPConstParticles = std::shared_ptr<ParticleParams const>;
using SPConstMaterials = std::shared_ptr<MaterialParams const>;
using SPConstImported = std::shared_ptr<ImportedProcesses const>;
using ReadData = std::function<ImportSBTable(AtomicNumber)>;
//!@}
// Options for the Bremsstrahlung process
// TODO: update options based on ImportData
struct Options
{
BremsModelSelection selection{BremsModelSelection::all}; //!> Model
//! selection
bool combined_model{true}; //!> Use a unified relativistic/SB
//! interactor
bool enable_lpm{true}; //!> Account for LPM effect at very high
//! energies
bool use_integral_xs{true}; //!> Use integral method for sampling
//! discrete interaction length
};
public:
// Construct from Bremsstrahlung data
BremsstrahlungProcess(SPConstParticles particles,
SPConstMaterials materials,
SPConstImported process_data,
ReadData load_sb_table,
Options options);
// Construct the models associated with this process
VecModel build_models(ActionIdIter start_id) const final;
// Get the interaction cross sections for the given energy range
StepLimitBuilders step_limits(Applicability range) const final;
//! Whether to use the integral method to sample interaction length
bool use_integral_xs() const final { return options_.use_integral_xs; }
// Name of the process
std::string_view label() const final;
private:
SPConstParticles particles_;
SPConstMaterials materials_;
ImportedProcessAdapter imported_;
ReadData load_sb_;
Options options_;
};
//---------------------------------------------------------------------------//
} // namespace celeritas