11#include <tracking/trackFindingVXD/analyzingTools/algorithms/AnalyzingAlgorithmBase.h>
15#include <Math/VectorUtil.h>
27 template <
class DataType,
class TCInfoType,
class VectorType>
35 DataType
calcData(
const TCInfoType& aTC)
override
38 return tcs.refTC->momSeed.X() - tcs.testTC->momSeed.X();
45 template <
class DataType,
class TCInfoType,
class VectorType>
53 DataType
calcData(
const TCInfoType& aTC)
override
56 return tcs.refTC->momSeed.Y() - tcs.testTC->momSeed.Y();
63 template <
class DataType,
class TCInfoType,
class VectorType>
71 DataType
calcData(
const TCInfoType& aTC)
override
74 return tcs.refTC->momSeed.Z() - tcs.testTC->momSeed.Z();
81 template <
class DataType,
class TCInfoType,
class VectorType>
89 DataType
calcData(
const TCInfoType& aTC)
override
92 return tcs.refTC->momSeed.Rho() - tcs.testTC->momSeed.Rho();
99 template <
class DataType,
class TCInfoType,
class VectorType>
110 return tcs.refTC->momSeed.R() - tcs.testTC->momSeed.R();
117 template <
class DataType,
class TCInfoType,
class VectorType>
128 return tcs.refTC->momSeed.Theta() * TMath::RadToDeg() - tcs.testTC->momSeed.Theta() * TMath::RadToDeg();
135 template <
class DataType,
class TCInfoType,
class VectorType>
146 return tcs.refTC->momSeed.Phi() * TMath::RadToDeg() - tcs.testTC->momSeed.Phi() * TMath::RadToDeg();
153 template <
class DataType,
class TCInfoType,
class VectorType>
164 return ROOT::Math::VectorUtil::Angle(tcs.testTC->momSeed, tcs.refTC->momSeed) * TMath::RadToDeg();
171 template <
class DataType,
class TCInfoType,
class VectorType>
182 VectorType refMom = tcs.refTC->momSeed;
184 VectorType testMom = tcs.testTC->momSeed;
186 return ROOT::Math::VectorUtil::Angle(testMom, refMom) * TMath::RadToDeg();
193 template <
class DataType,
class TCInfoType,
class VectorType>
204 return (tcs.refTC->posSeed - tcs.testTC->posSeed).R();
211 template <
class DataType,
class TCInfoType,
class VectorType>
222 return (tcs.refTC->posSeed - tcs.testTC->posSeed).Rho();
Small class for classifying types of analyzing algorithms.
Base class for storing an algorithm determining the data one wants to have.
virtual const TcPair chooseCorrectPairOfTCs(const TCInfoType &aTC) const
makes sure that TcPair.refTC and .testTC are correctly set - throws exception if there are problems
Class for storing an algorithm determining the residual (ref-test) of momentum in its angle (directio...
DataType calcData(const TCInfoType &aTC) override
returns the residual (ref-test) of momentum in its angle (direction residual in degrees)
AnalyzingAlgorithmResidualPAngle()
constructor
Class for storing an algorithm determining the residual (ref-test) of momentum in phi (in degrees)
DataType calcData(const TCInfoType &aTC) override
returns the residual (ref-test) of momentum in phi (in degrees)
AnalyzingAlgorithmResidualPPhi()
constructor
Class for storing an algorithm determining the residual (ref-test) of pT in angle (transverse directi...
AnalyzingAlgorithmResidualPTAngle()
constructor
DataType calcData(const TCInfoType &aTC) override
returns the residual (ref-test) of pT in angle (transverse direction residual in degrees)
Class for storing an algorithm determining the residual (ref-test) of momentum in pT.
DataType calcData(const TCInfoType &aTC) override
returns the residual (ref-test) of momentum in pT
AnalyzingAlgorithmResidualPT()
constructor
Class for storing an algorithm determining the residual (ref-test) of momentum in theta (in degrees)
DataType calcData(const TCInfoType &aTC) override
returns the residual (ref-test) of momentum in theta (in degrees)
AnalyzingAlgorithmResidualPTheta()
constructor
INFO This file contains all the algorithms calculating residuals of something.
AnalyzingAlgorithmResidualPX()
constructor
DataType calcData(const TCInfoType &aTC) override
returns the residual (ref-test) of momentum in X
Class for storing an algorithm determining the residual (ref-test) of momentum in Y.
AnalyzingAlgorithmResidualPY()
constructor
DataType calcData(const TCInfoType &aTC) override
returns the residual (ref-test) of momentum in Y
Class for storing an algorithm determining the residual (ref-test) of momentum in Z.
AnalyzingAlgorithmResidualPZ()
constructor
DataType calcData(const TCInfoType &aTC) override
returns the residual (ref-test) of momentum in Z
Class for storing an algorithm determining the residual (ref-test) of momentum in |p|.
AnalyzingAlgorithmResidualP()
constructor
DataType calcData(const TCInfoType &aTC) override
returns the residual (ref-test) of momentum in |p|
Class for storing an algorithm determining the residual (ref-test) of the seed position in XY (=r)
DataType calcData(const TCInfoType &aTC) override
returns the residual (ref-test) of the seed position in XY (=r)
AnalyzingAlgorithmResidualPositionXY()
constructor
Class for storing an algorithm determining the residual (ref-test) of the seed position in 3D.
AnalyzingAlgorithmResidualPosition()
constructor
DataType calcData(const TCInfoType &aTC) override
returns the residual (ref-test) of the seed position in 3D
Abstract base class for different kinds of events.