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
MockupSectorBuilder.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file MockupSectorBuilder.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2022-2023 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/Detector/DetectorVolume.hpp
"
12
#include "
Acts/Geometry/GeometryContext.hpp
"
13
14
#include <iostream>
15
#include <memory>
16
#include <string>
17
#include <vector>
18
19
class
G4VPhysicalVolume
;
20
21
namespace
Acts {
22
namespace
Experimental {
23
class
DetectorVolume;
24
}
// namespace Experimental
25
}
// namespace Acts
26
27
namespace
ActsExamples {
28
32
33
class
MockupSectorBuilder
{
34
public
:
36
struct
Config
{
37
// The path of the gdml file that holds the mockup geometry
38
std::string
gdmlPath
=
""
;
39
40
// The number of sectors we want to create
41
int
NumberOfSectors
= 1;
42
43
float
toleranceOverlap
= 10.;
44
};
45
47
struct
ChamberConfig
{
48
// The name of the chamber
49
std::string
name
;
50
51
// The names of the sensitive surfaces
52
std::vector<std::string>
SensitiveNames
;
53
54
// The names of the passive surfaces
55
std::vector<std::string>
PassiveNames
;
56
};
57
60
MockupSectorBuilder
(
const
Config
&
config
);
61
63
~MockupSectorBuilder
() =
default
;
64
68
std::shared_ptr<Acts::Experimental::DetectorVolume>
buildChamber
(
69
const
ChamberConfig
& chamberConfig);
70
74
std::shared_ptr<Acts::Experimental::DetectorVolume>
buildSector
(
75
std::vector<std::shared_ptr<Acts::Experimental::DetectorVolume>>
76
detVolumes);
77
80
void
drawSector
(
const
std::shared_ptr<Acts::Experimental::DetectorVolume>&
81
detectorVolumeSector
,
82
const
std::string
& nameObjFile);
83
84
private
:
85
Config
mCfg
;
86
87
G4VPhysicalVolume
*
g4World
=
nullptr
;
88
89
int
maxNumberOfSectors
= 8;
90
};
91
92
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Detectors
MuonSpectrometerMockupDetector
include
ActsExamples
MuonSpectrometerMockupDetector
MockupSectorBuilder.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:37
using
1.8.2 with
sPHENIX GitHub integration