9 #include <analysis/modules/ExtraInfoRemover/ExtraInfoRemoverModule.h>
10 #include <analysis/dataobjects/ParticleList.h>
21 setDescription(
"Deletes the ExtraInfo from each particle in the given ParticleLists.");
22 setPropertyFlags(c_ParallelProcessingCertified);
24 addParam(
"particleLists", m_strParticleLists,
"List of ParticleLists", vector<string>());
25 addParam(
"removeEventExtraInfo", m_removeEventExtraInfo,
"If True, also eventExtraInfo will be removed",
false);
29 void ExtraInfoRemoverModule::initialize()
33 void ExtraInfoRemoverModule::event()
36 for (
auto& iList : m_strParticleLists) {
39 if (!particleList.isValid()) {
40 B2INFO(
"ParticleList " << iList <<
" not found");
43 for (
unsigned int i = 0; i < particleList->getListSize(); ++i) {
44 Particle* iParticle = particleList ->getParticle(i);
50 if (m_removeEventExtraInfo) {
51 m_eventExtraInfo->removeExtraInfo();
Class to store reconstructed particles.
void removeExtraInfo()
Remove all stored extra info fields.
Type-safe access to single objects in the data store.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.