EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
DigitizationError.cpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file DigitizationError.cpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2020 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
#include "
ActsFatras/Digitization/DigitizationError.hpp
"
10
11
const
char
*
ActsFatras::detail::DigitizationErrorCategory::name
() const
12
noexcept {
13
return
"DigitizationError"
;
14
}
15
16
std::string
ActsFatras::detail::DigitizationErrorCategory::message
(
17
int
c
)
const
{
18
switch
(static_cast<DigitizationError>(c)) {
19
case
DigitizationError::SmearOutOfBounds:
20
return
"Digitization: smeared out of surface bounds."
;
21
case
DigitizationError::SmearError:
22
return
"Digitization: smearing error occured."
;
23
case
DigitizationError::NoSurfaceDefined:
24
return
"Digitization: no surface for bound measurement defined."
;
25
default
:
26
return
"unknown"
;
27
}
28
}
29
30
const
ActsFatras::detail::DigitizationErrorCategory
&
31
ActsFatras::DigitizationErrorCategory
() {
32
static
ActsFatras::detail::DigitizationErrorCategory
c
;
33
return
c
;
34
}
35
36
std::error_code
ActsFatras::make_error_code
(
ActsFatras::DigitizationError
e
) {
37
return
{
static_cast<
int
>
(
e
),
ActsFatras::DigitizationErrorCategory
()};
38
}
acts
blob
sPHENIX
Fatras
src
DigitizationError.cpp
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:26
using
1.8.2 with
EIC GitHub integration