Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
Analysis Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
blob
sPHENIX
Alignment
CI
cmake
Core
docs
Examples
Fatras
Plugins
ActSVG
Autodiff
Cuda
DD4hep
include
Acts
Plugins
DD4hep
ConvertDD4hepDetector.hpp
DD4hepBinningHelpers.hpp
DD4hepConversionHelpers.hpp
DD4hepDetectorElement.hpp
DD4hepDetectorSurfaceFactory.hpp
DD4hepLayerBuilder.hpp
DD4hepLayerStructure.hpp
DD4hepMaterialHelpers.hpp
DD4hepVolumeBuilder.hpp
DD4hepVolumeStructure.hpp
src
EDM4hep
ExaTrkX
FpeMonitoring
Geant4
Identification
Json
Legacy
Mlpack
Onnx
Podio
Sycl
TGeo
Tests
acts-fatras
analysis
analysis_tpc_prototype
coresoftware
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
KFParticle
macros
online_distribution
OnlMon
prototype
pythia6
rcdaq
RDBC
tutorials
doxygen_mainpage.h
File Members
Examples
External Links
•
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/Definitions/Algebra.hpp
"
11
#include "
Acts/Geometry/IConfinedTrackingVolumeBuilder.hpp
"
12
#include "
Acts/Geometry/TrackingVolume.hpp
"
13
#include "
Acts/Surfaces/Surface.hpp
"
14
#include "
Acts/Utilities/Logger.hpp
"
15
16
#include <memory>
17
#include <string>
18
#include <vector>
19
20
#include "DD4hep/DetElement.h"
21
22
class
TrackingVolume;
23
namespace
Acts {
24
class
Logger;
25
}
// namespace Acts
26
27
using
MutableTrackingVolumePtr
= std::shared_ptr<TrackingVolume>;
28
using
MutableTrackingVolumeVector
= std::vector<MutableTrackingVolumePtr>;
29
30
class
TGeoMatrix;
31
32
namespace
Acts {
33
41
42
class
DD4hepVolumeBuilder
:
public
IConfinedTrackingVolumeBuilder
{
43
public
:
46
struct
Config
{
48
std::string
configurationName
=
"undefined"
;
50
std::vector<dd4hep::DetElement>
centralVolumes
;
51
};
52
56
DD4hepVolumeBuilder
(
const
Acts::DD4hepVolumeBuilder::Config
&
config
,
57
std::unique_ptr<const Logger>
logger
);
58
60
~DD4hepVolumeBuilder
()
override
;
61
65
MutableTrackingVolumeVector
centralVolumes
() const final;
66
69
const std::
string
&
identification
() const final;
70
73
void
setConfiguration
(const
Config
&
config
);
74
77
Config
getConfiguration
() const;
78
81
void
setLogger
(std::unique_ptr<const
Logger
>
logger
);
82
83
private
:
85
Config
m_cfg
;
86
88
std::unique_ptr<const
Logger
>
m_logger
;
89
92
const
Logger
& logger()
const
{
return
*
m_logger
; }
93
99
Acts::Transform3
convertTransform
(
const
TGeoMatrix* tGeoTrans)
const
;
100
};
101
102
inline
const
std::string
&
DD4hepVolumeBuilder::identification
()
const
{
103
return
m_cfg
.
configurationName
;
104
}
105
106
inline
DD4hepVolumeBuilder::Config
DD4hepVolumeBuilder::getConfiguration
()
107
const
{
108
return
m_cfg
;
109
}
110
111
}
// namespace Acts
acts
blob
sPHENIX
Plugins
DD4hep
include
Acts
Plugins
DD4hep
DD4hepVolumeBuilder.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:41
using
1.8.2 with
sPHENIX GitHub integration