Analysis Software
Documentation for sPHENIX simulation software
 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 
10 
16 
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 }