8#ifndef MODULES_EVENTGENERATOR_EVENTGENERATORMODULE_H_
9#define MODULES_EVENTGENERATOR_EVENTGENERATORMODULE_H_
11#include <ElementaryUtils/parameters/Parameters.h>
16#include "../../beans/containers/KinematicRange.h"
17#include "../EpicModuleObject.h"
20class EventGeneratorInterface;
56 virtual void configure(
const ElemUtils::Parameters ¶meters);
63 virtual void initialise(
const std::vector<KinematicRange> &kinematicRanges,
92 virtual void initModule();
93 virtual void isModuleWellConfigured();
Testable version of PARTONS::ModuleObject.
Definition: EpicModuleObject.h:26
Interface to EventGeneratorModule.
Definition: EventGeneratorInterface.h:22
Definition of module for generation of events from a given distribution.
Definition: EventGeneratorModule.h:34
virtual std::pair< double, double > getIntegral()=0
void setInitStatePath(const std::string &initStatePath)
static const std::string EVENT_GENERATOR_MODULE_CLASS_NAME
Class name used in parsing XML.
Definition: EventGeneratorModule.h:38
EventGeneratorModule(const EventGeneratorModule &other)
virtual ~EventGeneratorModule()
const std::string & getInitStatePath() const
std::string m_initStatePath
Path to file to either load (if exist) or save (if not) initial state of generator.
Definition: EventGeneratorModule.h:95
static const std::string EVENT_GENERATOR_MODULE_INIT_STATE_PATH
String used to set path to init state file type via XML scenario.
Definition: EventGeneratorModule.h:39
virtual bool runTest() const
virtual void initialise(const std::vector< KinematicRange > &kinematicRanges, const EventGeneratorInterface &service)=0
virtual std::pair< std::vector< double >, double > generateEvent()=0
EventGeneratorModule(const std::string &className)