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 
25  ~HerwigUIProvider() override;
26 
28  RunMode::Mode runMode() const override { return runMode_; }
29  void setSeed(long seed){ seed_=seed; }
30 
31 
33  bool resume() const override { return resume_; }
34 
36  bool tics() const override { return tics_; }
37 
39  std::string tag() const override { return tag_; }
40 
42  std::string inputfile() const override { return inputfile_; }
43 
45  std::string repository() const override { return repository_; }
46 
48  std::string setupfile() const override { return setupfile_; }
49 
50  std::string integrationList() const override { return integrationList_; }
51 
52 
53  const std::vector<std::string> &
54  prependReadDirectories() const override { return prependReadDirectories_; }
55 
56  const std::vector<std::string> &
57  appendReadDirectories() const override { return appendReadDirectories_; }
58 
59  long N() const override { return nEvents_; }
60  int seed() const override { return seed_; }
61  int jobs() const override { return jobs_; }
62  unsigned int jobSize() const override { return jobsize_; }
63  unsigned int maxJobs() const override { return maxjobs_; }
64 
65  void quitWithHelp() const override;
66 
67  void quit() const override;
68 
70  std::ostream& outStream() const override { return std::cout; }
71 
73  std::ostream& errStream() const override { return std::cerr; }
74 
76  std::istream& inStream() const override { return std::cin; }
77 
85 
86 
87 private:
88 
90 
91  bool resume_;
92  bool tics_;
94 
98 
100 
101  std::vector<std::string> prependReadDirectories_;
102  std::vector<std::string> appendReadDirectories_;
103 
104  long nEvents_;
105  int seed_;
106  int jobs_;
107  unsigned int jobsize_;
108  unsigned int maxjobs_;
109 
110 };
111 
112 }
113 
114 #endif
const std::vector< std::string > & prependReadDirectories() const override
bool resume() const override
Try to resume execution from an earlier interrupted run.
std::vector< std::string > appendReadDirectories_
unsigned int maxJobs() const override
const std::vector< std::string > & appendReadDirectories() const override
std::ostream & outStream() const override
Return the standard out stream to be used.
HerwigUIProvider(const edm::ParameterSet &pset, std::string inputFileName, RunMode::Mode)
Constructor from the arguments provided by CMSSW.
void quit() const override
long N() const override
unsigned int jobSize() const override
void setRunMode(RunMode::Mode runMode, const edm::ParameterSet &pset, std::string inputFile="")
bool tics() const override
Require verbose progress markers.
std::string integrationList() const override
std::string tag() const override
A user-defined tag to append to the run name.
~HerwigUIProvider() override
Destructor to leave a clean ThePEG::Repository behind.
std::string setupfile() const override
Name of the setup file to be read, to modify the repository.
std::vector< std::string > prependReadDirectories_
int seed() const override
std::string inputfile() const override
Name of the file to be read.
std::string repository() const override
Repository name to operate on.
std::ostream & errStream() const override
Return the standard err stream to be used.
void quitWithHelp() const override
int jobs() const override
std::istream & inStream() const override
Return the standard in stream to be used.
RunMode::Mode runMode() const override
Requested Herwig run mode.