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
Algorithms
Detectors
Framework
Io
Python
Run
Alignment
Common
include
src
AlignedDetectorWithOptions.cpp
CommonGeometry.cpp
CommonMaterialMapping.cpp
CommonOptions.cpp
CommonSimulation.cpp
CsvOptionsReader.cpp
CsvOptionsWriter.cpp
DigitizationOptions.cpp
EmptyDetector.cpp
GenericDetectorWithOptions.cpp
GeometryExampleBase.cpp
JsonOptionsWriter.cpp
MagneticFieldOptions.cpp
MaterialValidationBase.cpp
NuclearInteractionOptions.cpp
ParticleGunOptions.cpp
ParticleSelectorOptions.cpp
ParticleSmearingOptions.cpp
PropagationExampleBase.cpp
ReconstructionBase.cpp
SpacePointMakerOptions.cpp
TelescopeDetectorWithOptions.cpp
TGeoDetectorWithOptions.cpp
TrackFindingOptions.cpp
TrackFittingOptions.cpp
TruthSeedSelectorOptions.cpp
VertexingOptions.cpp
DD4hep
Digitization
Fatras
Geant4
Generators
Geometry
HelloWorld
HepMC3
MagneticField
MaterialMapping
Misc
Propagation
Reconstruction
Show
Vertexing
Scripts
Fatras
Plugins
Tests
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
GenericDetectorWithOptions.cpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file GenericDetectorWithOptions.cpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2022 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
#include "
ActsExamples/Detector/GenericDetectorWithOptions.hpp
"
10
11
#include "
ActsExamples/Options/GenericDetectorOptions.hpp
"
12
13
#include <boost/program_options.hpp>
14
15
namespace
ActsExamples {
16
17
void
GenericDetectorWithOptions::addOptions
(
18
boost::program_options::options_description& opt)
const
{
19
ActsExamples::Options::addGenericGeometryOptions
(opt);
20
}
21
22
auto
GenericDetectorWithOptions::finalize
(
23
const
boost::program_options::variables_map& vm,
24
std::shared_ptr<const Acts::IMaterialDecorator> mdecorator)
25
-> std::pair<TrackingGeometryPtr, ContextDecorators> {
26
GenericDetector::Config
cfg
;
27
28
cfg.
buildLevel
= vm[
"geo-generic-buildlevel"
].template as<size_t>();
29
// set geometry building logging level
30
cfg.
surfaceLogLevel
=
31
Acts::Logging::Level
(vm[
"geo-surface-loglevel"
].
template
as<size_t>());
32
cfg.
layerLogLevel
=
33
Acts::Logging::Level
(vm[
"geo-layer-loglevel"
].
template
as<size_t>());
34
cfg.
volumeLogLevel
=
35
Acts::Logging::Level
(vm[
"geo-volume-loglevel"
].
template
as<size_t>());
36
37
cfg.
buildProto
= (vm[
"mat-input-type"
].template as<std::string>() ==
"proto"
);
38
39
return
m_detector.finalize(cfg,
std::move
(mdecorator));
40
}
41
42
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Run
Common
src
GenericDetectorWithOptions.cpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:39
using
1.8.2 with
sPHENIX GitHub integration