Belle II Software development
PrescaleModule.h
1#pragma once
2/**************************************************************************
3 * basf2 (Belle II Analysis Software Framework) *
4 * Author: The Belle II Collaboration *
5 * *
6 * See git log for contributors and copyright holders. *
7 * This file is licensed under LGPL-3.0, see LICENSE.md. *
8 **************************************************************************/
9
10#include <framework/core/Module.h>
11
12namespace Belle2 {
23 class PrescaleModule : public Module {
24 public:
27
29 virtual ~PrescaleModule() {};
30
32 virtual void initialize() override {};
33
35 virtual void event() override;
36
37 private:
39 double m_prescale;
40 };
42}
Base class for Modules.
Definition: Module.h:72
The Prescale module.
virtual void event() override
Sets the return value by running a RNG vs.
virtual void initialize() override
No Initialization necessary.
double m_prescale
Prescale module parameter, this fraction of events will return True.
PrescaleModule()
Constructor of the module.
virtual ~PrescaleModule()
Destructor of the module.
Abstract base class for different kinds of events.