forked from celeritas-project/celeritas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MscData.hh
34 lines (30 loc) · 989 Bytes
/
MscData.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
//----------------------------------*-C++-*----------------------------------//
// Copyright 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/data/MscData.hh
//---------------------------------------------------------------------------//
#pragma once
#include "corecel/Macros.hh"
#include "celeritas/Types.hh"
#include "celeritas/Units.hh"
namespace celeritas
{
//---------------------------------------------------------------------------//
/*!
* Physics IDs for MSC.
*
* TODO these will probably be changed to a map over all particle IDs.
*/
struct MscIds
{
ParticleId electron;
ParticleId positron;
//! Whether the IDs are assigned
explicit CELER_FUNCTION operator bool() const
{
return electron && positron;
}
};
} // namespace celeritas