ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
blob
master
CI
Core
doc
Examples
Algorithms
Detectors
Common
ContextualDetector
include
ACTFW
ContextualDetector
AlignedDetector.hpp
AlignedDetectorElement.hpp
AlignmentDecorator.hpp
PayloadDecorator.hpp
PayloadDetector.hpp
PayloadDetectorElement.hpp
src
DD4hepDetector
EmptyDetector
GenericDetector
MagneticField
TGeoDetector
Framework
Io
Run
Scripts
Fatras
Plugins
Tests
thirdparty
analysis
coresoftware
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
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 <vector>
12
13
#include "
ACTFW/Framework/AlgorithmContext.hpp
"
14
#include "
ACTFW/Framework/IContextDecorator.hpp
"
15
#include "
Acts/Geometry/GeometryContext.hpp
"
16
#include "
Acts/Utilities/Definitions.hpp
"
17
#include "
Acts/Utilities/Logger.hpp
"
18
19
namespace
Acts {
20
class
TrackingGeometry
;
21
}
22
23
namespace
FW {
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 FW
acts
blob
master
Examples
Detectors
ContextualDetector
include
ACTFW
ContextualDetector
PayloadDecorator.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:23
using
1.8.2 with
ECCE GitHub integration