FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
runTutorial1.cxx
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 #include "../macros/run_tutorial1_binary.C"
9 #include "FairLogger.h"
10 #include "FairSimConfig.h"
11 
12 int main(int argc, char* argv[])
13 {
14  FairSimConfig simConfig;
15 
16  int value = simConfig.ParseCommandLine(argc, argv);
17 
18  if (value) {
19  return 0;
20  }
21 
22  if (simConfig.IsHelp()) {
23  simConfig.PrintHelpMessage();
24  return 0;
25  }
26 
27  LOG(info) << "Executing runTutorial1";
28 
29  run_tutorial1_main(simConfig);
30 
31  return 0;
32 }
int ParseCommandLine(int argc, char *argv[])
void run_tutorial1_main(const FairSimConfig &config)
int main(void)
bool IsHelp() const
Definition: FairSimConfig.h:29
void PrintHelpMessage()