Belle II Software  release-08-01-10
SkimFilterModule.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #pragma once
10 
11 #include <framework/core/Module.h>
12 #include <string>
13 
14 namespace Belle2 {
26  class SkimFilterModule : public Module {
27  private:
29  int m_nPass;
31  std::vector<std::string> m_strParticleLists;
32 
33  public:
36 
39  virtual void initialize() override;
41  virtual void event() override;
43  virtual void terminate() override;
44  };
46 } // end namespace Belle2
47 
48 
Base class for Modules.
Definition: Module.h:72
This module filters events based on presence of candidates in a list of ParticleLists.
virtual void initialize() override
Initialises the module.
virtual void event() override
Method called for each event.
virtual void terminate() override
Write TTree to file, and close file if necessary.
std::vector< std::string > m_strParticleLists
Name of the lists.
int m_nPass
Number of events with Particle candidates.
Abstract base class for different kinds of events.