#include <CepGenEventGenerator.h>
Definition at line 15 of file CepGenEventGenerator.h.
◆ CepGenEventGenerator()
Definition at line 25 of file CepGenEventGenerator.cc.
References cepgen::fromParameterSet(), get, edm::ParameterSet::getUntrackedParameter(), mod(), modif_modules_, output_modules_, and proc_params_.
37 edm::LogInfo(
"CepGenEventGenerator") <<
"Event modifier modules: " << modif_mods <<
".";
38 for (
const auto&
mod : modif_mods.keys())
41 const auto output_mods =
43 edm::LogInfo(
"CepGenEventGenerator") <<
"Output modules: " << output_mods <<
".";
44 for (
const auto&
mod : output_mods.keys())
T getParameter(std::string const &) const
BaseHadronizer(edm::ParameterSet const &ps)
T getUntrackedParameter(std::string const &, T const &) const
std::vector< std::pair< std::string, cepgen::ParametersList > > modif_modules_
std::vector< std::pair< std::string, cepgen::ParametersList > > output_modules_
Log< level::Info, false > LogInfo
const cepgen::ParametersList proc_params_
ParametersList fromParameterSet(const edm::ParameterSet &iConfig)
T mod(const T &a, const T &b)
◆ ~CepGenEventGenerator()
CepGenEventGenerator::~CepGenEventGenerator |
( |
| ) |
|
|
virtual |
◆ classname()
const char* gen::CepGenEventGenerator::classname |
( |
| ) |
const |
|
inline |
◆ decay()
bool gen::CepGenEventGenerator::decay |
( |
| ) |
|
|
inline |
◆ declareSpecialSettings()
bool gen::CepGenEventGenerator::declareSpecialSettings |
( |
const std::vector< std::string > & |
| ) |
|
|
inline |
◆ declareStableParticles()
bool gen::CepGenEventGenerator::declareStableParticles |
( |
const std::vector< int > & |
| ) |
|
|
inline |
◆ doSharedResources()
const std::vector<std::string>& gen::CepGenEventGenerator::doSharedResources |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ finalizeEvent()
void gen::CepGenEventGenerator::finalizeEvent |
( |
| ) |
|
|
inline |
◆ generatePartonsAndHadronize()
bool CepGenEventGenerator::generatePartonsAndHadronize |
( |
| ) |
|
◆ initializeForInternalPartons()
bool CepGenEventGenerator::initializeForInternalPartons |
( |
| ) |
|
Definition at line 50 of file CepGenEventGenerator.cc.
References newFWLiteAna::build, looper::cfg, gen_, g4SimHits_cfi::Generator, get, mod(), modif_modules_, eostools::move(), output_modules_, proc_params_, gen::BaseHadronizer::runInfo(), GenRunInfoProduct::setInternalXSec(), and xsec_.
55 pproc +=
proc_params_.get<cepgen::ParametersList>(
"processParameters");
56 pproc.erase(
"processParameters");
57 auto& pkin = pproc.operator[]<cepgen::ParametersList>(
"kinematics");
58 pkin += pproc.get<cepgen::ParametersList>(
"inKinematics");
59 pproc.erase(
"inKinematics");
60 pkin += pproc.get<cepgen::ParametersList>(
"outKinematics");
61 pproc.erase(
"outKinematics");
62 if (pproc.has<
unsigned long long>(
"mode"))
63 pkin.set<
int>(
"mode", pproc.get<
unsigned long long>(
"mode"));
67 if (!
gen_->runParameters().hasProcess())
68 throw cms::Exception(
"CepGenEventGenerator") <<
"Failed to retrieve a process from the configuration";
71 for (
const auto&
cfg :
mod.second.get<std::vector<std::string> >(
"preConfiguration"))
72 modifier->readString(
cfg);
73 for (
const auto&
cfg :
mod.second.get<std::vector<std::string> >(
"processConfiguration"))
74 modifier->readString(
cfg);
80 edm::LogInfo(
"CepGenEventGenerator") <<
"Run parameters:\n" <<
gen_->runParameters();
81 const auto xsec =
gen_->computeXsection();
82 xsec_.set_cross_section(xsec, xsec.uncertainty());
void setInternalXSec(const XSec &xsec)
GenRunInfoProduct & runInfo()
HepMC::GenCrossSection xsec_
std::vector< std::pair< std::string, cepgen::ParametersList > > modif_modules_
std::vector< std::pair< std::string, cepgen::ParametersList > > output_modules_
Log< level::Info, false > LogInfo
const cepgen::ParametersList proc_params_
T mod(const T &a, const T &b)
◆ readSettings()
bool gen::CepGenEventGenerator::readSettings |
( |
int |
| ) |
|
|
inline |
◆ residualDecay()
bool gen::CepGenEventGenerator::residualDecay |
( |
| ) |
|
|
inline |
◆ statistics()
void gen::CepGenEventGenerator::statistics |
( |
| ) |
|
|
inline |
◆ gen_
cepgen::Generator* gen::CepGenEventGenerator::gen_ {nullptr} |
|
private |
◆ modif_modules_
std::vector<std::pair<std::string, cepgen::ParametersList> > gen::CepGenEventGenerator::modif_modules_ |
|
private |
◆ output_modules_
std::vector<std::pair<std::string, cepgen::ParametersList> > gen::CepGenEventGenerator::output_modules_ |
|
private |
◆ proc_params_
const cepgen::ParametersList gen::CepGenEventGenerator::proc_params_ |
|
private |
◆ shared_resources_
const std::vector<std::string> gen::CepGenEventGenerator::shared_resources_ |
|
private |
◆ xsec_
HepMC::GenCrossSection gen::CepGenEventGenerator::xsec_ |
|
private |