|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef GENERATORMODULES_HERWIG7_H
12 #define GENERATORMODULES_HERWIG7_H
16 #include "ThePEG/Repository/Repository.h"
17 #include "ThePEG/Repository/EventGenerator.h"
18 #include "ThePEG/EventRecord/Event.h"
19 #include "Herwig/API/HerwigUI.h"
42 virtual bool resume()
const {
return false; }
45 virtual bool tics()
const {
return false; }
59 virtual std::string
tag()
const {
return(
m_tag); }
72 virtual long N()
const {
return 0; }
83 std::cerr <<
"=================================\n";
84 std::cerr <<
"HERE I CAN PUT SOME ERROR MESSAGE\n";
85 std::cerr <<
"=================================\n";
90 virtual void quit()
const {
91 ThePEG::Repository::cleanup();
96 virtual std::ostream&
outStream()
const {
return(std::cout); }
99 virtual std::ostream&
errStream()
const {
return(std::cerr); }
102 virtual std::istream&
inStream()
const {
return(std::cin); }
134 Herwig7(
const std::string&
name, ISvcLocator* pSvcLocator);
201 ,
"ReadHandleKey for xAOD::EventInfo"};
virtual const std::vector< std::string > & prependReadDirectories() const
Directories from which Herwig reads input files, will be prepended to the search path.
virtual std::string inputfile() const
Name of the file to be read.
std::string m_pdfname_mpi
PS PDF name, stored for AMI capture at finalize.
double m_xsscale
Scale integrated cross section by a factor for MetaData output.
std::string m_pdfname_me
ME PDF name, stored for AMI capture at finalize.
void seed(int seed)
The seed to use.
virtual std::string tag() const
A user-defined tag to append to the run name.
virtual bool resume() const
Try to resume execution from an earlier interrupted run.
virtual std::istream & inStream() const
Return the standard in stream to be used.
virtual const std::vector< std::string > & appendReadDirectories() const
Directories from which Herwig reads input files, will be appended to the search path.
virtual void quit() const
Bail out and be quiet.
StatusCode genFinalize()
Close down the generator.
int m_seed_from_generatetf
Random number seed from Generate_tf.py.
StatusCode genInitialize()
Initialize the generator.
std::string m_runname
Run name, used in the Herwig/ThePEG config system.
ThePEG::EventPtr m_event
ThePEG event object.
SG::ReadHandleKey< xAOD::EventInfo > m_evtInfoKey
int m_dsid
Gen_tf.py run args needed in interface.
Base class for common behaviour of generator interfaces.
Herwig::RunMode::Mode m_runMode
std::vector< std::string > m_appendReadDirectories
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual unsigned int jobSize() const
The number of jobs to fork.
Interface to the Herwig7 API.
virtual std::string integrationList() const
An identifier for the integration job to be handled.
virtual void quitWithHelp() const
The maximum number of integration jobs.
virtual unsigned int maxJobs() const
The number of subprocesses to integrate per integratoin job.
Herwig7API m_api
Herwig7 API object.
virtual std::string setupfile() const
Name of the setup file to be read, to modify the repository.
Herwig7(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
std::string m_integrationList
void inputfile(const std::string &inputfile)
virtual std::ostream & outStream() const
Return the standard out stream to be used.
Herwig::RunMode::Mode runMode() const
Requested Herwig run mode.
virtual bool tics() const
Require verbose progress markers.
ThePEG::EGPtr m_gen
ThePEG generator object.
virtual std::string repository() const
Repository name to operate on.
std::vector< std::string > m_prependReadDirectories
std::string m_runfile
Name of run file.
StatusCode callGenerator()
Run the generator for one event.
StatusCode fillEvt(HepMC::GenEvent *evt)
Convert the generated event into the HepMC format.
bool m_use_seed_from_generatetf
Ignore random number seed provided by athena and use the one from Generate_tf.py instead.
virtual std::ostream & errStream() const
Return the standard err stream to be used.
virtual int seed() const
The number of events to generate.
std::string m_setupfile
Name of setup file.
bool m_cleanup_herwig_scratch
Possibly remove Herwig-scratch folder after finishing the event generation.