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
PayloadDecorator.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PayloadDecorator.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2019 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/Geometry/GeometryContext.hpp
"
12
#include "
Acts/Utilities/Definitions.hpp
"
13
#include "
Acts/Utilities/Logger.hpp
"
14
#include "
ActsExamples/Framework/AlgorithmContext.hpp
"
15
#include "
ActsExamples/Framework/IContextDecorator.hpp
"
16
17
#include <vector>
18
19
namespace
Acts {
20
class
TrackingGeometry
;
21
}
22
23
namespace
ActsExamples {
24
25
namespace
Contextual {
26
32
class
PayloadDecorator
:
public
IContextDecorator
{
33
public
:
35
struct
Config
{
37
std::shared_ptr<const Acts::TrackingGeometry>
trackingGeometry
=
nullptr
;
38
40
double
rotationStep
= 0.2 *
M_PI
;
41
43
unsigned
int
iovSize
= 100;
44
};
45
50
PayloadDecorator
(
const
Config
& cfg,
51
std::unique_ptr<const Acts::Logger>
logger
=
52
Acts::getDefaultLogger
(
"PayloadDecorator"
,
53
Acts::Logging::INFO
));
54
56
virtual
~PayloadDecorator
() =
default
;
57
65
ProcessCode
decorate
(
AlgorithmContext
& context)
final
override
;
66
68
const
std::string&
name
() const final
override
{
return
m_name
; }
69
70
private
:
71
Config
m_cfg
;
72
std::unique_ptr<const Acts::Logger>
m_logger
;
73
std::string
m_name
=
"PayloadDecorator"
;
74
76
std::vector<Acts::Transform3D>
m_nominalStore
;
77
79
const
Acts::Logger
&
logger
()
const
{
return
*
m_logger
; }
80
85
void
parseGeometry
(
const
Acts::TrackingGeometry
&
tGeometry
);
86
};
87
}
// namespace Contextual
88
89
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Detectors
ContextualDetector
include
ActsExamples
ContextualDetector
PayloadDecorator.hpp
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:24
using
1.8.2 with
EIC GitHub integration