forked from celeritas-project/celeritas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MuBremsstrahlungModel.hh
74 lines (60 loc) · 2.43 KB
/
MuBremsstrahlungModel.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
//----------------------------------*-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/model/MuBremsstrahlungModel.hh
//---------------------------------------------------------------------------//
#pragma once
#include <memory>
#include "celeritas/em/data/MuBremsstrahlungData.hh"
#include "celeritas/phys/ImportedModelAdapter.hh"
#include "celeritas/phys/ImportedProcessAdapter.hh"
#include "celeritas/phys/Model.hh"
#include "celeritas/phys/ParticleParams.hh"
namespace celeritas
{
//---------------------------------------------------------------------------//
/*!
* Set up and launch the Muon Bremsstrahlung model interaction.
*/
class MuBremsstrahlungModel final : public Model
{
public:
//!@{
//! \name Type aliases
using SPConstImported = std::shared_ptr<ImportedProcesses const>;
//!@}
public:
// Construct from model ID and other necessary data
MuBremsstrahlungModel(ActionId id,
ParticleParams const& particles,
SPConstImported data);
// Particle types and energy ranges that this model applies to
SetApplicability applicability() const final;
// Get the microscopic cross sections for the given particle and material
MicroXsBuilders micro_xs(Applicability) const final;
// Apply the interaction kernel on host
void execute(CoreParams const&, CoreStateHost&) const final;
// Apply the interaction kernel on device
void execute(CoreParams const&, CoreStateDevice&) const final;
// ID of the model
ActionId action_id() const final;
//! Short name for the interaction kernel
std::string_view label() const final { return "brems-muon"; }
//! Short description of the post-step action
std::string_view description() const final
{
return "interact by bremsstrahlung (muon)";
}
//!@{
//! Access model data
MuBremsstrahlungData const& host_ref() const { return data_; }
MuBremsstrahlungData const& device_ref() const { return data_; }
//!@}
private:
MuBremsstrahlungData data_;
ImportedModelAdapter imported_;
};
//---------------------------------------------------------------------------//
} // namespace celeritas