forked from celeritas-project/celeritas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GammaConversionProcess.hh
63 lines (52 loc) · 2.06 KB
/
GammaConversionProcess.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
//----------------------------------*-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/GammaConversionProcess.hh
//---------------------------------------------------------------------------//
#pragma once
#include <memory>
#include "celeritas/phys/Applicability.hh"
#include "celeritas/phys/ImportedProcessAdapter.hh"
#include "celeritas/phys/ParticleParams.hh"
#include "celeritas/phys/Process.hh"
namespace celeritas
{
//---------------------------------------------------------------------------//
/*!
* Conversion of gammas to electrons and positrons.
*/
class GammaConversionProcess : public Process
{
public:
//!@{
//! \name Type aliases
using SPConstParticles = std::shared_ptr<ParticleParams const>;
using SPConstImported = std::shared_ptr<ImportedProcesses const>;
//!@}
// Options for pair production
struct Options
{
bool enable_lpm{true}; //!< Account for LPM effect at high energies
};
public:
// Construct from particle data
GammaConversionProcess(SPConstParticles particles,
SPConstImported process_data,
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 applic) const final;
//! Whether to use the integral method to sample interaction length
bool use_integral_xs() const final { return false; }
// Name of the process
std::string_view label() const final;
private:
SPConstParticles particles_;
ImportedProcessAdapter imported_;
Options options_;
};
//---------------------------------------------------------------------------//
} // namespace celeritas