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
CsvOptionsReader.cpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file CsvOptionsReader.cpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2019 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/Options/CsvOptionsReader.hpp
"
10
11
#include <boost/program_options.hpp>
12
13
ActsExamples::CsvParticleReader::Config
14
ActsExamples::Options::readCsvParticleReaderConfig
(
const
Variables
& vm) {
15
ActsExamples::CsvParticleReader::Config
cfg
;
16
if
(not vm[
"input-dir"
].empty()) {
17
cfg.
inputDir
= vm[
"input-dir"
].as<
std::string
>();
18
}
19
return
cfg
;
20
}
21
22
ActsExamples::CsvSimHitReader::Config
23
ActsExamples::Options::readCsvSimHitReaderConfig
(
const
Variables
& vm) {
24
ActsExamples::CsvSimHitReader::Config
cfg
;
25
if
(not vm[
"input-dir"
].empty()) {
26
cfg.
inputDir
= vm[
"input-dir"
].as<
std::string
>();
27
}
28
return
cfg
;
29
}
30
31
ActsExamples::CsvSpacePointReader::Config
32
ActsExamples::Options::readCsvSpacePointReaderConfig
(
const
Variables
& vm) {
33
ActsExamples::CsvSpacePointReader::Config
cfg
;
34
if
(not vm[
"input-dir"
].empty()) {
35
cfg.
inputDir
= vm[
"input-dir"
].as<
std::string
>();
36
}
37
return
cfg
;
38
}
39
40
ActsExamples::CsvMeasurementReader::Config
41
ActsExamples::Options::readCsvMeasurementReaderConfig
(
const
Variables
& vm) {
42
ActsExamples::CsvMeasurementReader::Config
cfg
;
43
if
(not vm[
"input-dir"
].empty()) {
44
cfg.
inputDir
= vm[
"input-dir"
].as<
std::string
>();
45
}
46
return
cfg
;
47
}
48
49
ActsExamples::CsvPlanarClusterReader::Config
50
ActsExamples::Options::readCsvPlanarClusterReaderConfig
(
const
Variables
& vm) {
51
ActsExamples::CsvPlanarClusterReader::Config
cfg
;
52
if
(not vm[
"input-dir"
].empty()) {
53
cfg.
inputDir
= vm[
"input-dir"
].as<
std::string
>();
54
}
55
return
cfg
;
56
}
acts
blob
sPHENIX
Examples
Run
Common
src
CsvOptionsReader.cpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:39
using
1.8.2 with
sPHENIX GitHub integration