Belle II Software  release-05-02-19
RemoveParticlesNotInLists.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2014 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Christian Pulvermacher *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <framework/core/Module.h>
14 
15 #include <analysis/utility/ParticleSubset.h>
16 
17 #include <string>
18 #include <vector>
19 
20 namespace Belle2 {
29  class RemoveParticlesNotInListsModule : public Module {
30 
31  public:
32 
37 
42  virtual void initialize() override;
43 
45  virtual void event() override;
46 
51  virtual void terminate() override;
52 
53 
54  private:
55  std::vector<std::string> m_particleLists;
57  unsigned long m_nRemoved;
58  unsigned long m_nTotal;
60  };
61 
63 } // Belle2 namespace
Belle2::RemoveParticlesNotInListsModule::m_particleLists
std::vector< std::string > m_particleLists
keep Particles and daughters in these lists.
Definition: RemoveParticlesNotInLists.h:63
Belle2::RemoveParticlesNotInListsModule::RemoveParticlesNotInListsModule
RemoveParticlesNotInListsModule()
Constructor.
Definition: RemoveParticlesNotInLists.cc:23
Belle2::RemoveParticlesNotInListsModule::m_subset
ParticleSubset m_subset
reduces the Particles array.
Definition: RemoveParticlesNotInLists.h:64
Belle2::RemoveParticlesNotInListsModule::event
virtual void event() override
process event
Definition: RemoveParticlesNotInLists.cc:42
Belle2::RemoveParticlesNotInListsModule::m_nTotal
unsigned long m_nTotal
number of particles before removal.
Definition: RemoveParticlesNotInLists.h:66
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::RemoveParticlesNotInListsModule::terminate
virtual void terminate() override
Terminate the Module.
Definition: RemoveParticlesNotInLists.cc:55
Belle2::ParticleSubset
Specialised SelectSubset<Particle> that also fixes daughter indices and all ParticleLists.
Definition: ParticleSubset.h:15
Belle2::RemoveParticlesNotInListsModule::m_nRemoved
unsigned long m_nRemoved
number of particles removed.
Definition: RemoveParticlesNotInLists.h:65
Belle2::RemoveParticlesNotInListsModule::initialize
virtual void initialize() override
Initialize the Module.
Definition: RemoveParticlesNotInLists.cc:31