Belle II Software  release-08-01-10
DeltaSlopeRZ.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 #include <tracking/trackFindingVXD/filterMap/twoHitVariables/SlopeRZ.h>
13 
14 #define DELTASLOPERZ_NAME DeltaSlopeRZ
15 
16 namespace Belle2 {
26  template <typename PointType >
27  class DELTASLOPERZ_NAME : public SelectionVariable< PointType, 3, double > {
28  public:
29 
32 
34  static double value(const PointType& outerHit, const PointType& centerHit, const PointType& innerHit)
35  {
36 
37  double slopeOC = SlopeRZ<PointType>::value(outerHit, centerHit);
38  double slopeCI = SlopeRZ<PointType>::value(centerHit, innerHit);
39 
40  return slopeCI - slopeOC;
41  } // return unit: none
42  };
43 
45 }
calculates deviations in the slope of the inner segment and the outer segment, returning unit: none
Definition: DeltaSlopeRZ.h:27
PUT_NAME_FUNCTION(DELTASLOPERZ_NAME)
is replaced by "static const std:string name(void)" frunction which returns name of the Class
static double value(const PointType &outerHit, const PointType &centerHit, const PointType &innerHit)
calculates deviations in the slope of the inner segment and the outer segment, returning unit: none
Definition: DeltaSlopeRZ.h:34
Base class of the selection variable objects used for pair filtering.
Abstract base class for different kinds of events.