Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
CylindricalContainerBuilder.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file CylindricalContainerBuilder.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2022-2023 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/Detector/Blueprint.hpp
"
12
#include "
Acts/Detector/DetectorComponents.hpp
"
13
#include "
Acts/Detector/interface/IDetectorComponentBuilder.hpp
"
14
#include "
Acts/Geometry/GeometryContext.hpp
"
15
#include "
Acts/Utilities/BinningType.hpp
"
16
#include "
Acts/Utilities/Logger.hpp
"
17
18
#include <memory>
19
#include <string>
20
#include <vector>
21
22
namespace
Acts {
23
namespace
Experimental {
24
25
class
IRootVolumeFinderBuilder;
26
class
IGeometryIdGenerator;
27
44
class
CylindricalContainerBuilder
:
public
IDetectorComponentBuilder
{
45
public
:
47
struct
Config
{
49
std::vector<std::shared_ptr<const IDetectorComponentBuilder>>
builders
= {};
51
std::vector<BinningValue>
binning
= {};
53
std::shared_ptr<const IRootVolumeFinderBuilder>
rootVolumeFinderBuilder
=
54
nullptr
;
56
std::shared_ptr<const IGeometryIdGenerator>
geoIdGenerator
=
nullptr
;
58
bool
geoIdReverseGen
=
false
;
60
std::string
auxiliary
=
""
;
61
};
62
67
CylindricalContainerBuilder
(
68
const
Config
&
cfg
,
69
std::unique_ptr<const Logger>
logger
=
70
getDefaultLogger
(
"CylindricalContainerBuilder"
,
Logging::INFO
));
71
86
CylindricalContainerBuilder
(
87
const
Acts::Experimental::Blueprint::Node
& bpNode,
88
Acts::Logging::Level
logLevel
=
Acts::Logging::INFO
);
89
95
DetectorComponent
construct
(
const
GeometryContext
&
gctx
)
const
final
;
96
97
private
:
99
Config
m_cfg
;
100
102
const
Logger
&
logger
()
const
{
return
*
m_logger
; }
103
105
std::unique_ptr<const Logger>
m_logger
;
106
};
107
108
}
// namespace Experimental
109
}
// namespace Acts
acts
blob
sPHENIX
Core
include
Acts
Detector
CylindricalContainerBuilder.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:32
using
1.8.2 with
sPHENIX GitHub integration