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
TGeoCylinderDiscSplitter.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TGeoCylinderDiscSplitter.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2021 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/GeometryContext.hpp
"
12
#include "
Acts/Plugins/TGeo/ITGeoDetectorElementSplitter.hpp
"
13
#include "
Acts/Utilities/Logger.hpp
"
14
15
#include <memory>
16
#include <vector>
17
18
class
TGeoNode;
19
20
namespace
Acts {
21
22
class
TGeoDetectorElement;
23
27
class
TGeoCylinderDiscSplitter
:
public
ITGeoDetectorElementSplitter
{
28
public
:
30
struct
Config
{
32
int
cylinderPhiSegments
= -1;
34
int
cylinderLongitudinalSegments
= -1;
35
37
int
discPhiSegments
= -1;
39
int
discRadialSegments
= -1;
40
};
41
46
TGeoCylinderDiscSplitter
(
47
const
Config
&
cfg
,
48
std::unique_ptr<const Acts::Logger>
logger
=
Acts::getDefaultLogger
(
49
"TGeoCylinderDiscSplitter"
,
Acts::Logging::INFO
));
50
51
~TGeoCylinderDiscSplitter
()
override
=
default
;
52
61
std::vector<std::shared_ptr<const Acts::TGeoDetectorElement>>
split
(
62
const
GeometryContext
&
gctx
,
63
std::shared_ptr<const Acts::TGeoDetectorElement> tgde)
const override
;
64
65
private
:
66
Config
m_cfg
;
67
69
const
Acts::Logger
&
logger
()
const
{
return
*
m_logger
; }
70
72
std::unique_ptr<const Acts::Logger>
m_logger
;
73
};
74
75
}
// namespace Acts
acts
blob
sPHENIX
Plugins
TGeo
include
Acts
Plugins
TGeo
TGeoCylinderDiscSplitter.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:42
using
1.8.2 with
sPHENIX GitHub integration