EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
Options.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Options.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2017 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 <iosfwd>
12
#include <optional>
13
#include <string>
14
#include <utility>
15
#include <vector>
16
17
namespace
ActsExamples {
18
namespace
Options {
19
30
struct
Interval
{
31
std::optional<double>
lower
;
32
std::optional<double>
upper
;
33
};
34
42
std::istream&
operator>>
(std::istream& is,
Interval
& interval);
43
45
std::ostream&
operator<<
(std::ostream& os,
const
Interval
& interval);
46
54
std::istream&
operator>>
(std::istream& is, std::vector<Interval>& intervals);
55
57
std::ostream&
operator<<
(std::ostream& os,
58
const
std::vector<Interval>& intervals);
59
60
}
// namespace Options
61
}
// namespace ActsExamples
62
63
using
read_series
= std::vector<int>;
64
using
read_range
= std::vector<double>;
65
using
read_strings
= std::vector<std::string>;
66
67
// Overloads must exist in the `std` namespace so ADL-lookup can find them.
68
namespace
std {
69
70
std::ostream&
operator<<
(std::ostream& os,
const
read_series
& vec);
71
72
std::ostream&
operator<<
(std::ostream& os,
const
read_range
& vec);
73
74
std::ostream&
operator<<
(std::ostream& os,
const
read_strings
& vec);
75
76
}
// namespace std
acts
blob
sPHENIX
Examples
Framework
include
ActsExamples
Utilities
Options.hpp
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:25
using
1.8.2 with
EIC GitHub integration