Belle II Software development
PartialSelectModule.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
13namespace Belle2 {
25 class PartialSelectModule : public Module {
26
27 public:
28
34
36 void initialize() override;
37
42 void event() override;
43
44
45 private:
46
48 int m_nTotal = 0;
49
55
61
67 bool m_returnValue = true;
68
73 int m_events = 0;
74
75 };
77}
Base class for Modules.
Definition: Module.h:72
The PartialSelect module.
int m_nTotal
Total number of events in the input file.
double m_entryStart
Input parameter [0.0 -> 1.0) used to determine event start id: (m_entryStart*m_nTotal).
void initialize() override
Initialization fetches the event count in the input file (m_nEvents).
bool m_returnValue
Flag that will be returned by the module.
void event() override
Checks if we are within the passed window to set return value to True, and False if not.
PartialSelectModule()
Constructor: Sets the description, the properties and the parameters of the module.
int m_events
Keeps track of how many events have been processed for so far.
double m_entryStop
Input parameter (0.0 -> 1.0] used to determine event stop id: (m_entryStop*m_nTotal).
Abstract base class for different kinds of events.