EpIC 1.1.0
Monte Carlo generator for exclusive processes
Loading...
Searching...
No Matches
GeneralConfiguration.h
1/*
2 * GeneralConfiguration.h
3 *
4 * Created on: Feb 9, 2021
5 * Author: Pawel Sznajder (NCBJ)
6 */
7
8#ifndef BEANS_GENERALCONFIGURATION_H_
9#define BEANS_GENERALCONFIGURATION_H_
10
11#include <partons/BaseObject.h>
12#include <stddef.h>
13#include <string>
14
15namespace EPIC {
16class MonteCarloTask;
17} /* namespace EPIC */
18
19namespace EPIC {
20
29class GeneralConfiguration: public PARTONS::BaseObject {
30
31 static const std::string GENERAL_CONFIGURATION_NUMBER_OF_EVENTS;
32 static const std::string GENERAL_CONFIGURATION_HISTOGRAM_FILE_PATH;
33
34public:
39
43 GeneralConfiguration(size_t nEvents, const std::string& histogramFilePath);
44
49
54
55 virtual std::string toString() const;
56
61
62 //********************************************************
63 //*** SETTERS AND GETTERS ********************************
64 //********************************************************
65
69 size_t getNEvents() const;
70
74 void setNEvents(size_t nEvents);
75
79 const std::string& getHistogramFilePath() const;
80
84 void setHistogramFilePath(const std::string& histogramFilePath);
85
86private:
87
88 size_t m_nEvents;
89 std::string m_histogramFilePath;
90};
91
92} /* namespace EPIC */
93
94#endif /* BEANS_GENERALCONFIGURATION_H_ */
Container to store general configuration of generator.
Definition: GeneralConfiguration.h:29
static GeneralConfiguration fromTask(const MonteCarloTask &task)
void setHistogramFilePath(const std::string &histogramFilePath)
const std::string & getHistogramFilePath() const
GeneralConfiguration(const GeneralConfiguration &other)
void setNEvents(size_t nEvents)
GeneralConfiguration(size_t nEvents, const std::string &histogramFilePath)
Container to store information from xml scenario for a single task.
Definition: MonteCarloTask.h:23