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
Tests
Benchmarks
CommonHelpers
DownstreamProject
DownstreamProjectNodeps
IntegrationTests
UnitTests
Alignment
Benchmarks
Core
Clusterization
Definitions
Detector
Digitization
EventData
Geometry
MagneticField
Material
Navigation
Propagator
Seeding
SpacePointFormation
Surfaces
TrackFinding
TrackFitting
Utilities
Vertexing
Visualization
EventDataView3DBase.hpp
EventDataView3DTests.cpp
PrimitivesView3DBase.hpp
PrimitivesView3DTests.cpp
SurfaceView3DBase.hpp
SurfaceView3DTests.cpp
TrackingGeometryView3DBase.hpp
TrackingGeometryView3DTests.cpp
Visualization3DTester.hpp
Visualization3DTests.cpp
VolumeView3DBase.hpp
VolumeView3DTests.cpp
VersionTests.cpp
Examples
Fatras
Plugins
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
TrackingGeometryView3DBase.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TrackingGeometryView3DBase.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2020 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/Geometry/TrackingGeometry.hpp
"
12
#include "
Acts/Geometry/TrackingVolume.hpp
"
13
#include "
Acts/Tests/CommonHelpers/CylindricalTrackingGeometry.hpp
"
14
#include "
Acts/Visualization/GeometryView3D.hpp
"
15
#include "
Acts/Visualization/IVisualization3D.hpp
"
16
17
#include <fstream>
18
#include <sstream>
19
#include <string>
20
21
namespace
Acts {
22
23
namespace
TrackingGeometryView3DTest {
24
25
GeometryContext
tgContext
=
GeometryContext
();
26
27
Test::CylindricalTrackingGeometry
cGeometry
(
tgContext
);
28
auto
tGeometry
=
cGeometry
();
29
37
38
static
inline
std::string
run
(
IVisualization3D
& helper,
bool
triangulate,
39
const
std::string
& tag) {
40
std::stringstream cStream;
41
42
ViewConfig
viewSensitive =
ViewConfig
({0, 180, 240});
43
viewSensitive.
triangulate
= triangulate;
44
ViewConfig
viewPassive =
ViewConfig
({240, 280, 0});
45
viewPassive.
triangulate
= triangulate;
46
ViewConfig
viewVolume =
ViewConfig
({220, 220, 0});
47
viewVolume.
triangulate
= triangulate;
48
ViewConfig
viewContainer =
ViewConfig
({220, 220, 0});
49
viewContainer.
triangulate
= triangulate;
50
ViewConfig
viewGrid =
ViewConfig
({220, 0, 0});
51
viewGrid.
nSegments
= 8;
52
viewGrid.
offset
= 3.;
53
viewGrid.
triangulate
= triangulate;
54
55
const
Acts::TrackingVolume
& tgVolume = *(
tGeometry
->highestTrackingVolume());
56
57
GeometryView3D::drawTrackingVolume
(helper, tgVolume,
tgContext
, viewContainer,
58
viewVolume, viewPassive, viewSensitive,
59
viewGrid,
true
, tag);
60
61
GeometryView3D::drawTrackingVolume
(helper, tgVolume,
tgContext
, viewContainer,
62
viewVolume, viewPassive, viewSensitive,
63
viewGrid,
false
);
64
helper.
write
(cStream);
65
66
return
cStream.str();
67
}
68
69
}
// namespace TrackingGeometryView3DTest
70
}
// namespace Acts
acts
blob
sPHENIX
Tests
UnitTests
Core
Visualization
TrackingGeometryView3DBase.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:45
using
1.8.2 with
sPHENIX GitHub integration