Belle II Software development
ILayer.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
10namespace Belle2 {
15 namespace TrackFindingCDC {
16
18 using ILayer = signed short;
19
21 struct GetILayer {
23 template <class T, class SFINAE = decltype(&T::getILayer)>
24 ILayer operator()(const T& t) const
25 {
26 return t.getILayer();
27 }
28 };
29 }
31}
Abstract base class for different kinds of events.
Generic functor to get the superlayer id from an object.
Definition: ILayer.h:21
ILayer operator()(const T &t) const
Returns the superlayer of an object.
Definition: ILayer.h:24