Belle II Software development
IsApplicable.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#pragma once
9
10#include <tracking/trackFindingCDC/utilities/IsDetected.h>
11#include <type_traits>
12
13namespace Belle2 {
18 namespace TrackFindingCDC {
19
25 template <class AFunctor, typename... Ts>
26 constexpr bool isApplicable()
27 {
28 return isDetected<std::result_of_t, AFunctor(Ts...)>();
29 }
30 }
32}
Abstract base class for different kinds of events.