Belle II Software development
DistanceInTime.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 <tracking/trackFindingVXD/filterMap/filterFramework/SelectionVariable.h>
12
13#define DISTANCEINTIME DistanceInTime
14
15namespace Belle2 {
22 template <typename PointType>
23 class DISTANCEINTIME : public SelectionVariable< PointType, 3, double > {
24 public:
25
28
30 static double value(const PointType&, const PointType& centerHit, const PointType&)
31
32 {
33 return
34 centerHit.TimeV() - centerHit.TimeU();
35 }
36 };
37
39}
This variable returns the difference among the V and U side clusters of th ecenter space point.
PUT_NAME_FUNCTION(DISTANCEINTIME)
is expanded as "static const std:string name(void)" frunction which returns name of the Class
static double value(const PointType &, const PointType &centerHit, const PointType &)
return the time difference (ns) among the V and U side clusters of th ecenter space point
Base class of the selection variable objects used for pair filtering.
Abstract base class for different kinds of events.