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
GenericDetector.cpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file GenericDetector.cpp
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
#include "
ActsExamples/GenericDetector/GenericDetector.hpp
"
10
11
#include "
Acts/Geometry/ILayerBuilder.hpp
"
12
#include "
Acts/Geometry/TrackingGeometry.hpp
"
13
#include "
ActsExamples/GenericDetector/BuildGenericDetector.hpp
"
14
#include "
ActsExamples/GenericDetector/GenericDetectorElement.hpp
"
15
#include "
ActsExamples/GenericDetector/ProtoLayerCreatorT.hpp
"
16
17
auto
GenericDetector::finalize
(
18
const
Config
&
cfg
,
19
std::shared_ptr<const Acts::IMaterialDecorator> mdecorator)
20
-> std::pair<TrackingGeometryPtr, ContextDecorators> {
21
DetectorElement::ContextType
nominalContext;
23
TrackingGeometryPtr
gGeometry =
24
ActsExamples::Generic::buildDetector<DetectorElement>(
25
nominalContext, detectorStore,
cfg
.buildLevel,
std::move
(mdecorator),
26
cfg
.buildProto,
cfg
.surfaceLogLevel,
cfg
.layerLogLevel,
27
cfg
.volumeLogLevel);
28
ContextDecorators
gContextDecorators = {};
29
// return the pair of geometry and empty decorators
30
return
std::make_pair<TrackingGeometryPtr, ContextDecorators>(
31
std::move
(gGeometry),
std::move
(gContextDecorators));
32
}
acts
blob
sPHENIX
Examples
Detectors
GenericDetector
src
GenericDetector.cpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:37
using
1.8.2 with
sPHENIX GitHub integration