CMS 3D CMS Logo

HerwigUIProvider.h
Go to the documentation of this file.
1 
4 #ifndef SRC_HERWIG_UIProvider_H
5 #define SRC_HERWIG_UIProvider_H
6 
7 #include <Herwig/API/HerwigUI.h>
8 #include <iostream>
9 
11 
12 namespace Herwig {
13 
18 class HerwigUIProvider : public HerwigUI {
19 public:
20 
23 
26 
28  RunMode::Mode runMode() const { return runMode_; }
29 
31  bool resume() const { return resume_; }
32 
34  bool tics() const { return tics_; }
35 
37  std::string tag() const { return tag_; }
38 
40  std::string inputfile() const { return inputfile_; }
41 
43  std::string repository() const { return repository_; }
44 
46  std::string setupfile() const { return setupfile_; }
47 
49 
50 
51  const std::vector<std::string> &
53 
54  const std::vector<std::string> &
56 
57  long N() const { return nEvents_; }
58  int seed() const { return seed_; }
59  int jobs() const { return jobs_; }
60  unsigned int jobSize() const { return jobsize_; }
61  unsigned int maxJobs() const { return maxjobs_; }
62 
63  void quitWithHelp() const;
64 
65  void quit() const;
66 
68  virtual std::ostream& outStream() const { return std::cout; }
69 
71  virtual std::ostream& errStream() const { return std::cerr; }
72 
74  virtual std::istream& inStream() const { return std::cin; }
75 
83 
84 
85 private:
86 
88 
89  bool resume_;
90  bool tics_;
92 
96 
98 
99  std::vector<std::string> prependReadDirectories_;
100  std::vector<std::string> appendReadDirectories_;
101 
102  long nEvents_;
103  int seed_;
104  int jobs_;
105  unsigned int jobsize_;
106  unsigned int maxjobs_;
107 
108 };
109 
110 }
111 
112 #endif
std::string tag() const
A user-defined tag to append to the run name.
std::vector< std::string > appendReadDirectories_
bool resume() const
Try to resume execution from an earlier interrupted run.
virtual std::ostream & errStream() const
Return the standard err stream to be used.
bool tics() const
Require verbose progress markers.
virtual std::ostream & outStream() const
Return the standard out stream to be used.
unsigned int jobSize() const
const std::vector< std::string > & prependReadDirectories() const
HerwigUIProvider(const edm::ParameterSet &pset, std::string inputFileName, RunMode::Mode)
Constructor from the arguments provided by CMSSW.
std::string setupfile() const
Name of the setup file to be read, to modify the repository.
void setRunMode(RunMode::Mode runMode, const edm::ParameterSet &pset, std::string inputFile="")
std::string inputfile() const
Name of the file to be read.
std::string repository() const
Repository name to operate on.
virtual std::istream & inStream() const
Return the standard in stream to be used.
std::vector< std::string > prependReadDirectories_
const std::vector< std::string > & appendReadDirectories() const
~HerwigUIProvider()
Destructor to leave a clean ThePEG::Repository behind.
unsigned int maxJobs() const
RunMode::Mode runMode() const
Requested Herwig run mode.
std::string integrationList() const