Belle II Software development
DistanceInTimeVside.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_V_NAME DistanceInTimeVside
14
15namespace Belle2 {
20
22 template <typename PointType>
23 class DISTANCEINTIME_V_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.TimeV() - innerHit.TimeV();
34 }
35 };
36
38}
This variable returns the time difference among the V side clusters of the two space points.
static double value(const PointType &outerHit, const PointType &innerHit)
return the time difference (ns) among the V side clusters of the two space points
PUT_NAME_FUNCTION(DISTANCEINTIME_V_NAME)
is expanded as "static const std:string name(void)" frunction which returns name of the Class
B2Vector3D outerHit(0, 0, 0)
testing out of range behavior
Abstract base class for different kinds of events.