Belle II Software development
Observer.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
12namespace Belle2 {
19 class Observer {
20 public:
22 template<class T, class someRangeType, class someHitType>
23 static void notify(T, double, someRangeType, const someHitType&, const someHitType&) {};
24
26 explicit Observer() {};
27
29 template <typename ... types>
30 static void initialize(const types& ...) {};
31
33 template <typename ... types>
34 static void terminate(const types& ...) {};
35 };
37}
Observer base class which can be used to evaluate the VXDTF2's Filters.
Definition: Observer.h:19
static void terminate(const types &...)
static method used by the observed object to terminate the observer.
Definition: Observer.h:34
static void notify(T, double, someRangeType, const someHitType &, const someHitType &)
exemplary draft for a notify-function of an observer
Definition: Observer.h:23
static void initialize(const types &...)
static method used by the observed object to initialize the observer.
Definition: Observer.h:30
Observer()
An empty constructor for an empty class.
Definition: Observer.h:26
Abstract base class for different kinds of events.