10#include <generators/modules/koralwinput/KoralWInputModule.h>
13#include <framework/datastore/StoreArray.h>
14#include <framework/logging/Logger.h>
15#include <framework/utilities/FileSystem.h>
17#include <Math/Vector3D.h>
29 setDescription(
"Generates four fermion final state events with KoralW.");
60 B2FATAL(
"KorlalW is not properly initialized.");
64 B2FATAL(
"BeamParameters have changed within a job, this is not supported for KoralW.");
69 ROOT::Math::LorentzRotation boost = initial.
getCMSToLab();
72 ROOT::Math::XYZVector vertex = initial.
getVertex();
82 B2RESULT(
"Total cross section: " <<
m_generator.getCrossSection() <<
" pb +- " <<
m_generator.getCrossSectionError() <<
" pb");
This class contains the nominal beam parameters and the parameters used for smearing of the primary v...
static std::string findFile(const std::string &path, bool silent=false)
Search for given file or directory in local or central release directory, and return absolute path if...
GeneratorBaseModule()
Constructor.
This class contains the initial state for the given event.
const ROOT::Math::LorentzRotation & getCMSToLab() const
Return the LorentzRotation to convert from CMS to lab frame.
const ROOT::Math::XYZVector & getVertex() const
Get the position of the collision.
double getMass() const
Get the invariant mass of the collision (= energy in CMS)
@ c_checkCyclic
Check for cyclic dependencies.
@ c_setDecayInfo
Set decay time and vertex.
void setDescription(const std::string &description)
Sets the description of the module.
bool registerInDataStore(DataStore::EStoreFlags storeFlags=DataStore::c_WriteOut)
Register the object/array in the DataStore.
Accessor to arrays stored in the data store.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.