forked from celeritas-project/celeritas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EIonizationProcess.cc
66 lines (59 loc) · 2.15 KB
/
EIonizationProcess.cc
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
//----------------------------------*-C++-*----------------------------------//
// Copyright 2021-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/EIonizationProcess.cc
//---------------------------------------------------------------------------//
#include "EIonizationProcess.hh"
#include <utility>
#include "corecel/Assert.hh"
#include "corecel/cont/Range.hh"
#include "celeritas/em/model/MollerBhabhaModel.hh"
#include "celeritas/io/ImportProcess.hh"
#include "celeritas/phys/PDGNumber.hh"
namespace celeritas
{
//---------------------------------------------------------------------------//
/*!
* Construct process from host data.
*/
EIonizationProcess::EIonizationProcess(SPConstParticles particles,
SPConstImported process_data,
Options options)
: particles_(std::move(particles))
, imported_(process_data,
particles_,
ImportProcessClass::e_ioni,
{pdg::electron(), pdg::positron()})
, options_(options)
{
CELER_EXPECT(particles_);
}
//---------------------------------------------------------------------------//
/*!
* Construct the models associated with this process.
*/
auto EIonizationProcess::build_models(ActionIdIter start_id) const -> VecModel
{
return {std::make_shared<MollerBhabhaModel>(*start_id++, *particles_)};
}
//---------------------------------------------------------------------------//
/*!
* Get cross section values.
*/
auto EIonizationProcess::step_limits(Applicability applicability) const
-> StepLimitBuilders
{
return imported_.step_limits(std::move(applicability));
}
//---------------------------------------------------------------------------//
/*!
* Name of the process.
*/
std::string_view EIonizationProcess::label() const
{
return "Electron/positron ionization";
}
//---------------------------------------------------------------------------//
} // namespace celeritas