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:
22 
24  ~HerwigUIProvider() override;
25 
27  RunMode::Mode runMode() const override { return runMode_; }
28  void setSeed(long seed) { seed_ = seed; }
29 
31  bool resume() const override { return resume_; }
32 
34  bool tics() const override { return tics_; }
35 
37  std::string tag() const override { return tag_; }
38 
40  std::string inputfile() const override { return inputfile_; }
41 
43  std::string repository() const override { return repository_; }
44 
46  std::string setupfile() const override { return setupfile_; }
47 
48  std::string integrationList() const override { return integrationList_; }
49 
50  const std::vector<std::string>& prependReadDirectories() const override { return prependReadDirectories_; }
51 
52  const std::vector<std::string>& appendReadDirectories() const override { return appendReadDirectories_; }
53 
54  long N() const override { return nEvents_; }
55  int seed() const override { return seed_; }
56  int jobs() const override { return jobs_; }
57  unsigned int jobSize() const override { return jobsize_; }
58  unsigned int maxJobs() const override { return maxjobs_; }
59 
60  void quitWithHelp() const override;
61 
62  void quit() const override;
63 
65  std::ostream& outStream() const override { return std::cout; }
66 
68  std::ostream& errStream() const override { return std::cerr; }
69 
71  std::istream& inStream() const override { return std::cin; }
72 
80 
81  private:
83 
84  bool resume_;
85  bool tics_;
87 
91 
93 
94  std::vector<std::string> prependReadDirectories_;
95  std::vector<std::string> appendReadDirectories_;
96 
97  long nEvents_;
98  int seed_;
99  int jobs_;
100  unsigned int jobsize_;
101  unsigned int maxjobs_;
102  };
103 
104 } // namespace Herwig
105 
106 #endif
Herwig::HerwigUIProvider::seed_
int seed_
Definition: HerwigUIProvider.h:98
Herwig::HerwigUIProvider::HerwigUIProvider
HerwigUIProvider(const edm::ParameterSet &pset, std::string inputFileName, RunMode::Mode)
Constructor from the arguments provided by CMSSW.
Definition: HerwigUIProvider.cc:31
Herwig::HerwigUIProvider::setSeed
void setSeed(long seed)
Definition: HerwigUIProvider.h:28
Herwig::HerwigUIProvider::runMode
RunMode::Mode runMode() const override
Requested Herwig run mode.
Definition: HerwigUIProvider.h:27
Herwig::HerwigUIProvider::jobs
int jobs() const override
Definition: HerwigUIProvider.h:56
HcalTopologyMode::Mode
Mode
Definition: HcalTopologyMode.h:26
Herwig::HerwigUIProvider::appendReadDirectories_
std::vector< std::string > appendReadDirectories_
Definition: HerwigUIProvider.h:95
gather_cfg.cout
cout
Definition: gather_cfg.py:144
Herwig::HerwigUIProvider::jobs_
int jobs_
Definition: HerwigUIProvider.h:99
Herwig::HerwigUIProvider::nEvents_
long nEvents_
Definition: HerwigUIProvider.h:97
Herwig::HerwigUIProvider::prependReadDirectories
const std::vector< std::string > & prependReadDirectories() const override
Definition: HerwigUIProvider.h:50
Herwig::HerwigUIProvider::setupfile_
std::string setupfile_
Definition: HerwigUIProvider.h:90
Herwig::HerwigUIProvider::appendReadDirectories
const std::vector< std::string > & appendReadDirectories() const override
Definition: HerwigUIProvider.h:52
Herwig::HerwigUIProvider::tics_
bool tics_
Definition: HerwigUIProvider.h:85
Herwig::HerwigUIProvider::jobsize_
unsigned int jobsize_
Definition: HerwigUIProvider.h:100
Herwig::HerwigUIProvider::resume_
bool resume_
Definition: HerwigUIProvider.h:84
InefficientDoubleROC.inputFileName
inputFileName
Definition: InefficientDoubleROC.py:437
Herwig::HerwigUIProvider
Definition: HerwigUIProvider.h:18
Herwig::HerwigUIProvider::quitWithHelp
void quitWithHelp() const override
Definition: HerwigUIProvider.cc:19
Herwig::HerwigUIProvider::inputfile
std::string inputfile() const override
Name of the file to be read.
Definition: HerwigUIProvider.h:40
Herwig::HerwigUIProvider::inputfile_
std::string inputfile_
Definition: HerwigUIProvider.h:88
Herwig::HerwigUIProvider::integrationList_
std::string integrationList_
Definition: HerwigUIProvider.h:92
Herwig::HerwigUIProvider::prependReadDirectories_
std::vector< std::string > prependReadDirectories_
Definition: HerwigUIProvider.h:94
Herwig::HerwigUIProvider::setupfile
std::string setupfile() const override
Name of the setup file to be read, to modify the repository.
Definition: HerwigUIProvider.h:46
Herwig::HerwigUIProvider::maxJobs
unsigned int maxJobs() const override
Definition: HerwigUIProvider.h:58
Herwig::HerwigUIProvider::maxjobs_
unsigned int maxjobs_
Definition: HerwigUIProvider.h:101
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
Herwig
Definition: HerwigUIProvider.h:12
Herwig::HerwigUIProvider::~HerwigUIProvider
~HerwigUIProvider() override
Destructor to leave a clean ThePEG::Repository behind.
Definition: HerwigUIProvider.cc:29
edm::ParameterSet
Definition: ParameterSet.h:36
Herwig::HerwigUIProvider::integrationList
std::string integrationList() const override
Definition: HerwigUIProvider.h:48
Herwig::HerwigUIProvider::tag
std::string tag() const override
A user-defined tag to append to the run name.
Definition: HerwigUIProvider.h:37
Herwig::HerwigUIProvider::inStream
std::istream & inStream() const override
Return the standard in stream to be used.
Definition: HerwigUIProvider.h:71
beam_dqm_sourceclient-live_cfg.cerr
cerr
Definition: beam_dqm_sourceclient-live_cfg.py:17
Herwig::HerwigUIProvider::seed
int seed() const override
Definition: HerwigUIProvider.h:55
dtResolutionTest_cfi.inputFile
inputFile
Definition: dtResolutionTest_cfi.py:14
Herwig::HerwigUIProvider::N
long N() const override
Definition: HerwigUIProvider.h:54
Herwig::HerwigUIProvider::jobSize
unsigned int jobSize() const override
Definition: HerwigUIProvider.h:57
Herwig::HerwigUIProvider::errStream
std::ostream & errStream() const override
Return the standard err stream to be used.
Definition: HerwigUIProvider.h:68
Herwig::HerwigUIProvider::tag_
std::string tag_
Definition: HerwigUIProvider.h:86
Herwig::HerwigUIProvider::runMode_
RunMode::Mode runMode_
Definition: HerwigUIProvider.h:82
Herwig::HerwigUIProvider::outStream
std::ostream & outStream() const override
Return the standard out stream to be used.
Definition: HerwigUIProvider.h:65
Herwig::HerwigUIProvider::resume
bool resume() const override
Try to resume execution from an earlier interrupted run.
Definition: HerwigUIProvider.h:31
ParameterSet.h
Herwig::HerwigUIProvider::repository_
std::string repository_
Definition: HerwigUIProvider.h:89
Herwig::HerwigUIProvider::setRunMode
void setRunMode(RunMode::Mode runMode, const edm::ParameterSet &pset, std::string inputFile="")
Definition: HerwigUIProvider.cc:149
Herwig::HerwigUIProvider::repository
std::string repository() const override
Repository name to operate on.
Definition: HerwigUIProvider.h:43
Herwig::HerwigUIProvider::tics
bool tics() const override
Require verbose progress markers.
Definition: HerwigUIProvider.h:34
Herwig::HerwigUIProvider::quit
void quit() const override
Definition: HerwigUIProvider.cc:24
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27