Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ObjTrackingGeometryWriter.cpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file ObjTrackingGeometryWriter.cpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2017 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 
21 
23  return "ObjTrackingGeometryWriter";
24 }
25 
27  const AlgorithmContext& context, const Acts::TrackingGeometry& tGeometry) {
28  ACTS_DEBUG(">>Obj: Writer for TrackingGeometry object called.");
29 
30  auto world = tGeometry.highestTrackingVolume();
31  if (world != nullptr) {
32  write(context, *world);
33  }
35 }
36 
38  const AlgorithmContext& context, const Acts::TrackingVolume& tVolume) {
39  ACTS_DEBUG(">>Obj: Writer for TrackingVolume object called.");
40 
41  Acts::ObjVisualization3D objVis(m_cfg.outputPrecision, m_cfg.outputScalor);
42 
44  objVis, tVolume, context.geoContext, m_cfg.containerView,
45  m_cfg.volumeView, m_cfg.passiveView, m_cfg.sensitiveView, m_cfg.gridView,
46  true, "", m_cfg.outputDir);
47 }