Belle II Software  release-05-01-25
DeltaSlopeRZ.h
1 /**************************************************************************
2 * BASF2 (Belle Analysis Framework 2) *
3 * Copyright(C) 2014 - Belle II Collaboration *
4 * *
5 * Author: The Belle II Collaboration *
6 * Contributors: Jakob Lettenbichler (jakob.lettenbichler@oeaw.ac.at) *
7 * *
8 * This software is provided "as is" without any warranty. *
9 **************************************************************************/
10 
11 #pragma once
12 
13 #include <tracking/trackFindingVXD/filterMap/filterFramework/SelectionVariable.h>
14 #include <tracking/trackFindingVXD/filterMap/twoHitVariables/SlopeRZ.h>
15 
16 #define DELTASLOPERZ_NAME DeltaSlopeRZ
17 
18 namespace Belle2 {
28  template <typename PointType >
29  class DELTASLOPERZ_NAME : public SelectionVariable< PointType , 3, double > {
30  public:
31 
34 
36  static double value(const PointType& outerHit, const PointType& centerHit, const PointType& innerHit)
37  {
38 
39  double slopeOC = SlopeRZ<PointType>::value(outerHit, centerHit);
40  double slopeCI = SlopeRZ<PointType>::value(centerHit, innerHit);
41 
42  return slopeCI - slopeOC;
43  } // return unit: none
44  };
45 
47 }
Belle2::DELTASLOPERZ_NAME
calculates deviations in the slope of the inner segment and the outer segment, returning unit: none
Definition: DeltaSlopeRZ.h:29
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::SelectionVariable
Base class of the selection variable objects used for pair filtering.
Definition: SelectionVariable.h:54
Belle2::DELTASLOPERZ_NAME::PUT_NAME_FUNCTION
PUT_NAME_FUNCTION(DELTASLOPERZ_NAME)
is replaced by "static const std:string name(void)" frunction which returns name of the Class
Belle2::DELTASLOPERZ_NAME::value
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:36