9#include <analysis/modules/ContinuumSuppressionBuilder/ContinuumSuppressionBuilderModule.h>
11#include <analysis/ContinuumSuppression/ContinuumSuppression.h>
12#include <analysis/dataobjects/RestOfEvent.h>
28 setDescription(
"Creates for each Particle in the given ParticleLists a ContinuumSuppression dataobject and makes basf2 relation between them.");
48 B2ERROR(
"The ROE mask for the continuum suppression must not be called " <<
m_ROEMask);
58 for (
unsigned i = 0; i <
m_plist->getListSize(); i++) {
ContinuumSuppressionBuilderModule()
constructor
std::string m_ROEMask
ROE mask.
std::string m_particleListName
Name of the ParticleList.
virtual void initialize() override
initialize the module (setup the data store)
virtual void event() override
process event
StoreArray< ContinuumSuppression > m_csarray
StoreArray of ContinuumSuppression.
StoreObjPtr< ParticleList > m_plist
input particle list
void setDescription(const std::string &description)
Sets the description of the module.
static constexpr const char * c_defaultMaskName
Default mask name.
bool isRequired(const std::string &name="")
Ensure this array/object has been registered previously.
Accessor to arrays stored in the data store.
bool registerRelationTo(const StoreArray< TO > &toArray, DataStore::EDurability durability=DataStore::c_Event, DataStore::EStoreFlags storeFlags=DataStore::c_WriteOut, const std::string &namedRelation="") const
Register a relation to the given StoreArray.
void addContinuumSuppression(const Particle *particle, const std::string &maskName)
Adds continuum suppression variables.
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.