Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
ParticleData.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file ParticleData.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2020-2023 CERN for the benefit of the Acts project
4
//
5
// This Source Code Form is subject to the terms of the Mozilla Public
6
// License, v. 2.0. If a copy of the MPL was not distributed with this
7
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
9
#pragma once
10
11
#include "
Acts/Definitions/PdgParticle.hpp
"
12
13
#include <iosfwd>
14
#include <optional>
15
#include <string_view>
16
17
namespace
Acts {
18
19
struct
ParticleData
{
20
float
charge
{};
21
float
mass
{};
22
std::string_view
name
;
23
};
24
28
std::optional<float>
findCharge
(
PdgParticle
pdg
);
29
33
std::optional<float>
findMass
(
PdgParticle
pdg
);
34
38
std::optional<std::string_view>
findName
(
PdgParticle
pdg
);
39
43
std::optional<ParticleData>
findParticleData
(
PdgParticle
pdg
);
44
46
std::ostream&
operator<<
(std::ostream&
os
,
PdgParticle
pdg
);
47
48
std::optional<std::string_view>
pdgToShortAbsString
(
PdgParticle
pdg
);
49
50
}
// namespace Acts
acts
blob
sPHENIX
Core
include
Acts
Definitions
ParticleData.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:32
using
1.8.2 with
sPHENIX GitHub integration