EpIC 1.1.0
Monte Carlo generator for exclusive processes
|
Template for services handling generation of MC events. More...
#include <GeneratorService.h>
Public Member Functions | |
GeneratorService (const std::string &className) | |
GeneratorService (const GeneratorService &other) | |
virtual GeneratorService * | clone () const =0 |
virtual | ~GeneratorService () |
void | computeTask (const MonteCarloTask &task) |
virtual void | run ()=0 |
void | printAndSaveGenerationConfiguration () |
virtual void | addAdditionalGenerationConfiguration (GenerationInformation &generationInformation) |
const GeneralConfiguration & | getGeneralConfiguration () const |
void | setGeneralConfiguration (const GeneralConfiguration &generalConfiguration) |
const kinRange & | getKinematicRanges () const |
void | setKinematicRanges (const kinRange &kinematicRanges) |
const ExperimentalConditions & | getExperimentalConditions () const |
void | setExperimentalConditions (const ExperimentalConditions &experimentalConditions) |
procModule * | getProcessModule () const |
void | setProcessModule (procModule *processModule) |
const std::shared_ptr< EventGeneratorModule > & | getEventGeneratorModule () const |
void | setEventGeneratorModule (const std::shared_ptr< EventGeneratorModule > &pEventGeneratorModule) |
const std::shared_ptr< kinModule > & | getKinematicModule () const |
void | setKinematicModule (const std::shared_ptr< kinModule > &pKinematicModule) |
const std::shared_ptr< rcModule > & | getRCModule () const |
void | setRCModule (const std::shared_ptr< rcModule > &pRCModule) |
const std::shared_ptr< WriterModule > & | getWriterModule () const |
void | setWriterModule (const std::shared_ptr< WriterModule > &pWriterModule) |
const std::string & | getScenarioDescription () const |
void | setScenarioDescription (const std::string &scenarioDescription) |
const std::string & | getScenarioDate () const |
void | setScenarioDate (const std::string &scenarioDate) |
Public Member Functions inherited from EPIC::EventGeneratorInterface | |
EventGeneratorInterface () | |
EventGeneratorInterface (const EventGeneratorInterface &other) | |
virtual | ~EventGeneratorInterface () |
virtual double | getEventDistribution (std::vector< double > &kin) const =0 |
Protected Attributes | |
kinRange | m_kinematicRanges |
Kinematic ranges. | |
procModule * | m_pProcessModule |
Process module. | |
std::shared_ptr< kinModule > | m_pKinematicModule |
Kinematic module. | |
std::shared_ptr< rcModule > | m_pRCModule |
Radiative correction module. | |
GeneralConfiguration | m_generalConfiguration |
General configuration. | |
ExperimentalConditions | m_experimentalConditions |
Experimental conditions. | |
std::shared_ptr< EventGeneratorModule > | m_pEventGeneratorModule |
Event generator module. | |
std::shared_ptr< WriterModule > | m_pWriterModule |
Writer module. | |
std::string | m_scenarioDate |
Scenario date. | |
std::string | m_scenarioDescription |
Scenario description. | |
std::pair< std::chrono::steady_clock::time_point, std::chrono::steady_clock::time_point > | m_debugTimeInitialization |
Timer spent for initialization. | |
std::pair< std::chrono::steady_clock::time_point, std::chrono::steady_clock::time_point > | m_debugTimeGeneration |
Timer spent for generation. | |
std::shared_ptr< RandomNumberModule > | m_randomNumberModule |
Random number module. | |
TFile * | m_histogramFile |
File containing histograms. | |
std::vector< TH1 * > | m_histograms |
Template for services handling generation of MC events.
This is a template used to create services handling generation of MC events.
|
inline |
Default constructor.
|
inline |
Copy constructor.
|
inlinevirtual |
Destructor.
|
inlinevirtual |
Add additional information to GenerationInformation printout.
|
inlineprotectedvirtual |
Book histograms.
|
inlineprotected |
Check target polarisation state. If not longitidinal and transverse, generate randomly polarisation state (in any direction).
|
inlineprotected |
Close histogram file.
|
inline |
Configure and run whole computation.
|
protectedpure virtual |
Get additional general configuration from XML.
|
inlineprotected |
Get current date.
|
inline |
Get event generator module.
|
inlineprotected |
Get event generator module from XML.
|
inline |
Get experimental conditions.
|
inlineprotected |
Get experimental conditions from XML.
|
inline |
Get general configurations.
|
inlineprotected |
Get general configuration from XML.
|
protectedpure virtual |
Get Jacobian related to the transformation of kinematic variables.
|
inline |
Get kinematic module.
|
protectedpure virtual |
Get kinematic module from XML.
|
inline |
Get kinematic ranges.
|
protectedpure virtual |
Get kinematic range from XML.
|
inline |
Get process module.
|
protectedpure virtual |
Get process module from XML.
|
inline |
Get radiative correction module.
|
protectedpure virtual |
Get radiative correction module from XML.
|
inline |
Get scenario date.
|
inline |
Get scenario description.
|
inline |
Get writer module.
|
inlineprotected |
Get writer module from XML.
|
inlineprotectedvirtual |
Check if well configured.
|
inlineprotected |
Open histogram file.
|
inline |
Save generation configuration. Must be invoked when writer is open.
|
pure virtual |
Run/
Implemented in EPIC::DDVCSGeneratorService, EPIC::DVCSGeneratorService, EPIC::DVMPGeneratorService, EPIC::GAM2GeneratorService, and EPIC::TCSGeneratorService.
|
inline |
Set event generator module.
|
inline |
Set experimental conditions.
|
inline |
Set general configuration.
|
inline |
Set kinematic module.
|
inline |
Set kinematic ranges.
|
inline |
Set process module.
|
inline |
Set radiative correction module.
|
inline |
Set scenario date.
|
inline |
Set scenario description.
|
inline |
Set writer module.
|
protectedpure virtual |
Transform ranges.
|
protectedpure virtual |
Transform variables.