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
DD4hepVolumeBuilder.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file DD4hepVolumeBuilder.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 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
9
#pragma once
10
#include "
Acts/Geometry/IConfinedTrackingVolumeBuilder.hpp
"
11
#include "
Acts/Geometry/TrackingVolume.hpp
"
12
#include "
Acts/Surfaces/Surface.hpp
"
13
#include "
Acts/Utilities/Definitions.hpp
"
14
#include "
Acts/Utilities/Logger.hpp
"
15
16
class
TrackingVolume;
17
using
MutableTrackingVolumePtr
= std::shared_ptr<TrackingVolume>;
18
using
MutableTrackingVolumeVector
= std::vector<MutableTrackingVolumePtr>;
19
20
class
TGeoMatrix;
21
22
namespace
dd4hep {
23
class
DetElement;
24
}
25
26
namespace
Acts {
27
35
36
class
DD4hepVolumeBuilder
:
public
IConfinedTrackingVolumeBuilder
{
37
public
:
40
struct
Config
{
42
std::string
configurationName
=
"undefined"
;
44
std::vector<dd4hep::DetElement>
centralVolumes
;
45
};
46
50
DD4hepVolumeBuilder
(
const
Acts::DD4hepVolumeBuilder::Config
&
config
,
51
std::unique_ptr<const Logger>
logger
);
52
54
~DD4hepVolumeBuilder
()
override
;
55
59
MutableTrackingVolumeVector
centralVolumes
() const final;
60
63
const std::
string
&
identification
() const final;
64
67
void
setConfiguration
(const
Config
&
config
);
68
71
Config
getConfiguration
() const;
72
75
void
setLogger
(std::unique_ptr<const
Logger
>
logger
);
76
77
private:
79
Config
m_cfg
;
80
82
std::unique_ptr<const
Logger
>
m_logger
;
83
86
const
Logger
& logger()
const
{
return
*
m_logger
; }
87
93
std::shared_ptr<const Acts::Transform3D>
convertTransform
(
94
const
TGeoMatrix* tGeoTrans)
const
;
95
};
96
97
inline
const
std::string&
DD4hepVolumeBuilder::identification
()
const
{
98
return
m_cfg
.
configurationName
;
99
}
100
101
inline
DD4hepVolumeBuilder::Config
DD4hepVolumeBuilder::getConfiguration
()
102
const
{
103
return
m_cfg
;
104
}
105
106
}
// namespace Acts
acts
blob
master
Plugins
DD4hep
include
Acts
Plugins
DD4hep
DD4hepVolumeBuilder.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:25
using
1.8.2 with
ECCE GitHub integration