FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairSimConfig.h
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 #ifndef FAIRSIMCONFIG
9 #define FAIRSIMCONFIG
10 
11 #include "boost/program_options.hpp"
12 
13 #include <Rtypes.h>
14 #include <TString.h>
15 #include <string>
16 
17 namespace po = boost::program_options;
18 
20 {
21  public:
22  FairSimConfig();
23  virtual ~FairSimConfig();
24 
25  int ParseCommandLine(int argc, char* argv[]);
26 
27  void PrintHelpMessage();
28 
29  bool IsHelp() const { return fHelp; }
30  int GetNEvents() const { return fnEvents; }
31  TString GetEngine() const { return TString(fEngine); }
32  bool IsMultiThreaded() const { return fMultiThreaded; }
33  TString GetOutputFile() const { return TString(fOutputFile); }
34  TString GetParameterFile() const { return TString(fParameterFile); }
35  int GetRandomSeed() const { return fRandomSeed; }
36 
37  private:
38  po::options_description fDescription;
39  po::variables_map fMap;
40 
41  bool fHelp;
42  int fnEvents;
43  std::string fEngine;
44  bool fMultiThreaded;
45  std::string fOutputFile;
46  std::string fParameterFile;
47  int fRandomSeed;
48 
49  ClassDef(FairSimConfig, 1);
50 };
51 
52 #endif
int ParseCommandLine(int argc, char *argv[])
TString GetEngine() const
Definition: FairSimConfig.h:31
TString GetOutputFile() const
Definition: FairSimConfig.h:33
bool IsMultiThreaded() const
Definition: FairSimConfig.h:32
int GetRandomSeed() const
Definition: FairSimConfig.h:35
int GetNEvents() const
Definition: FairSimConfig.h:30
virtual ~FairSimConfig()
bool IsHelp() const
Definition: FairSimConfig.h:29
TString GetParameterFile() const
Definition: FairSimConfig.h:34
void PrintHelpMessage()