LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
catch_main.cc
Go to the documentation of this file.
1
// vim: set sw=2 expandtab :
2
#include "catch2/catch_session.hpp"
3
4
#include "cetlib/filepath_maker.h"
5
#include "
fhiclcpp/ParameterSet.h
"
6
#include "
messagefacility/MessageLogger/MessageLogger.h
"
7
8
#include <string>
9
10
using namespace
std
;
11
using namespace
std::string_literals
;
12
13
int
14
main
(
int
argc,
char
** argv)
15
{
16
Catch::Session
session
;
17
std::string fhiclConfigFileName;
18
using namespace
Catch::Clara;
19
// Our non-option argument, being non-optional, should be first.
20
auto
cli = Arg(fhiclConfigFileName,
"config.fcl"
)(
"<fhicl-config-file>"
) |
21
session.cli();
22
23
session.cli(cli);
24
25
int
result = session.applyCommandLine(argc, argv);
26
if
(result == 0) {
27
mf::SetIteration
(
"JobSetup"
s);
28
cet::filepath_maker fpm;
29
auto
const
msg_ps =
fhicl::ParameterSet::make
(fhiclConfigFileName, fpm);
30
mf::StartMessageFacility
(msg_ps);
31
result = session.run();
32
}
33
return
(result < 0xff ? result : 0xff);
34
}
mf::SetIteration
void SetIteration(string const &val)
Definition:
MessageLogger.cc:580
session
static G4UIterminal * session
Definition:
pyG4UIterminal.cc:37
fhicl::ParameterSet::make
static ParameterSet make(intermediate_table const &tbl)
Definition:
ParameterSet.cc:68
std
STL namespace.
MessageLogger.h
ParameterSet.h
string_literals
mf::StartMessageFacility
void StartMessageFacility(fhicl::ParameterSet const &pset, string const &applicationName)
Definition:
MessageLogger.cc:458
main
int main(int argc, char **argv)
Definition:
catch_main.cc:14
messagefacility
Utilities
catch_main.cc
Generated on Thu May 2 2024 20:59:52 for LArSoft by
1.8.11