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
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
TrackingVolumeArrayCreator.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TrackingVolumeArrayCreator.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2016-2018 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
10
// TrackingVolumeArrayCreator.h, Acts project
12
13
#pragma once
14
#include <algorithm>
15
#include "
Acts/Geometry/GeometryContext.hpp
"
16
#include "
Acts/Geometry/ITrackingVolumeArrayCreator.hpp
"
17
#include "
Acts/Utilities/BinnedArray.hpp
"
18
#include "
Acts/Utilities/Definitions.hpp
"
19
#include "
Acts/Utilities/Logger.hpp
"
20
21
namespace
Acts {
22
23
class
Layer;
24
class
TrackingVolume;
25
26
using
TrackingVolumeOrderPosition
= std::pair<TrackingVolumePtr, Vector3D>;
27
34
class
TrackingVolumeArrayCreator
:
public
ITrackingVolumeArrayCreator
{
35
public
:
37
struct
Config
{};
38
42
TrackingVolumeArrayCreator
(
const
Config
&
/*cfg*/
,
43
std::unique_ptr<const Logger>
logger
=
44
getDefaultLogger
(
"LayerArrayCreator"
,
45
Logging::INFO
))
46
:
m_logger
(std::move(
logger
)) {}
47
49
~TrackingVolumeArrayCreator
()
override
=
default
;
50
58
std::shared_ptr<const TrackingVolumeArray>
trackingVolumeArray
(
59
const
GeometryContext
&
gctx
,
const
TrackingVolumeVector
& tVolumes,
60
BinningValue
bValue)
const override
;
61
65
void
setLogger
(std::unique_ptr<const Logger>
logger
) {
66
m_logger
= std::move(logger);
67
}
68
69
private
:
70
// Private access to the logger method
71
const
Logger
&
logger
()
const
{
return
*
m_logger
; }
72
74
std::unique_ptr<const Logger>
m_logger
;
75
};
76
}
// namespace Acts
acts
blob
master
Core
include
Acts
Geometry
TrackingVolumeArrayCreator.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:20
using
1.8.2 with
ECCE GitHub integration