|
DAS
3.0
Das Analysis System
|
Go to the documentation of this file. 1 #ifndef DARWIN_OPTIONS_H
2 #define DARWIN_OPTIONS_H
10 #include <boost/program_options/options_description.hpp>
11 #include <boost/program_options/positional_options.hpp>
12 #include <boost/property_tree/ptree.hpp>
14 #ifndef DARWIN_GIT_COMMIT
15 # define DARWIN_GIT_COMMIT nullptr
18 #ifndef DARWIN_EXAMPLE
19 # define DARWIN_EXAMPLE nullptr
59 boost::program_options::options_description
hidden,
63 boost::program_options::positional_options_description
pos_hide;
96 static void check_input (
const std::filesystem::path&
114 const boost::program_options::value_semantic *,
123 > std::function<void(T)>
put (
const char * configpath
126 return [configpath,
this](T value) {
pt_conf.put<T>(configpath, value); };
137 std::string
exec (
const std::string&
181 std::filesystem::path *,
192 std::vector<std::filesystem::path> *,
203 std::filesystem::path *,
213 const char * configpath,
217 if (
stage > Stage::Arg)
218 BOOST_THROW_EXCEPTION(std::runtime_error(
"Not possible to add another argument at this stage"));
223 const boost::program_options::value_semantic * s =
224 boost::program_options::value<T>()->notifier(put<T>(configpath));
233 const char * configpath,
240 const boost::property_tree::ptree&
operator() (
int,
const char *
const []);
256 static inline std::filesystem::path
parse_env_var (
const std::filesystem::path&
p)
278 inline std::pair<unsigned, unsigned>
slice ()
const
281 BOOST_THROW_EXCEPTION(std::invalid_argument(
"No splitting of the input file."));
282 return std::make_pair(
j,
k);
name
Definition: DYToLL_M-50_13TeV_pythia8_cff_GEN_SIM_RECOBEFMIX_DIGI_L1_DIGI2RAW_L1Reco_RECO.py:48
p
Definition: Ntupliser_cfg.py:361
#define DARWIN_EXAMPLE
Definition: Options.h:19
#define DARWIN_GIT_COMMIT
Definition: Options.h:15