forked from davidrohr/AliceO2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunMonitor.cxx
More file actions
47 lines (39 loc) · 1.35 KB
/
Copy pathrunMonitor.cxx
File metadata and controls
47 lines (39 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Copyright CERN and copyright holders of ALICE O2. This software is
// distributed under the terms of the GNU General Public License v3 (GPL
// Version 3), copied verbatim in the file "COPYING".
//
// See http://alice-o2.web.cern.ch/license for full licensing information.
//
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
///
/// \file runSim.cxx
/// \author Jens Wiechula, Jens.Wiechula@ikf.uni-frankfurt.de
///
#include <boost/program_options.hpp>
#include <iostream>
namespace bpo = boost::program_options;
int main(int argc, char* argv[])
{
// Arguments parsing
bpo::variables_map vm;
bpo::options_description desc("Allowed options");
desc.add_options()("help,h", "Produce help message.")("file,f", "input file(s)");
bpo::store(parse_command_line(argc, argv, desc), vm);
bpo::notify(vm);
// help
if (vm.count("help")) {
std::cout << desc << '\n';
return EXIT_SUCCESS;
}
// Actual "work"
const std::string file = vm["file"].as<std::string>();
std::cout << "####" << '\n';
std::cout << "#### Starting TPC simple online monitor" << '\n';
std::cout << "#### filename: " << file << '\n';
std::cout << "####" << '\n';
std::cout << '\n'
<< '\n';
return EXIT_SUCCESS;
}