Belle II Software development
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
14namespace Belle2 {
23 class SkimFilterModule : public Module {
24 private:
28 std::vector<std::string> m_strParticleLists;
29
30 public:
33
36 virtual void initialize() override;
38 virtual void event() override;
40 virtual void terminate() override;
41 };
43} // end namespace Belle2
44
45
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.