Belle II Software development
DistanceInTimeUside.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_U_NAME DistanceInTimeUside
14
15namespace Belle2 {
20
22 template <typename PointType>
23 class DISTANCEINTIME_U_NAME : public SelectionVariable< PointType, 2, double > {
24 public:
25
28
30 static double value(const PointType& outerHit, const PointType& innerHit)
31 {
32 return
33 outerHit.TimeU() - innerHit.TimeU();
34 }
35 };
36
38}
This variable returns the time difference among the U side clusters of the two space points.
PUT_NAME_FUNCTION(DISTANCEINTIME_U_NAME)
is expanded as "static const std:string name(void)" frunction which returns name of the Class
static double value(const PointType &outerHit, const PointType &innerHit)
return the time difference (ns) among the U side clusters of the two space points
B2Vector3D outerHit(0, 0, 0)
testing out of range behavior
Abstract base class for different kinds of events.