9#include <analysis/modules/ParticleMassUpdater/ParticleMassUpdaterModule.h>
10#include <analysis/dataobjects/ParticleList.h>
12#include <framework/datastore/StoreObjPtr.h>
13#include <framework/gearbox/Const.h>
24 setDescription(
"This module replaces the mass of the particles inside the given particleLists with the invariant mass of the particle corresponding to the given pdgCode.");
39 B2ERROR(
"ParticleList " << iList <<
" not found");
42 if (particlelist->getListSize() == 0)
continue;
43 for (
unsigned int i = 0; i < particlelist->getListSize(); ++i) {
44 Particle* iParticle = particlelist->getParticle(i);
static const ParticleType photon
photon particle
void setDescription(const std::string &description)
Sets the description of the module.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
virtual void event() override
Method called for each event.
std::vector< std::string > m_strParticleLists
Name of the lists.
int m_pdgCode
PDG code for mass reference.
ParticleMassUpdaterModule()
Constructor.
Class to store reconstructed particles.
Type-safe access to single objects 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.