11 #include <tracking/trackFindingVXD/analyzingTools/algorithms/AnalyzingAlgorithmBase.h>
26 template <
class DataType,
class TCInfoType,
class VectorType>
34 DataType
calcData(
const TCInfoType& aTC)
override
37 return tcs.refTC->momSeed.X() - tcs.testTC->momSeed.X();
44 template <
class DataType,
class TCInfoType,
class VectorType>
52 DataType
calcData(
const TCInfoType& aTC)
override
55 return tcs.refTC->momSeed.Y() - tcs.testTC->momSeed.Y();
62 template <
class DataType,
class TCInfoType,
class VectorType>
70 DataType
calcData(
const TCInfoType& aTC)
override
73 return tcs.refTC->momSeed.Z() - tcs.testTC->momSeed.Z();
80 template <
class DataType,
class TCInfoType,
class VectorType>
88 DataType
calcData(
const TCInfoType& aTC)
override
91 return tcs.refTC->momSeed.Perp() - tcs.testTC->momSeed.Perp();
98 template <
class DataType,
class TCInfoType,
class VectorType>
109 return tcs.refTC->momSeed.Mag() - tcs.testTC->momSeed.Mag();
116 template <
class DataType,
class TCInfoType,
class VectorType>
127 return tcs.refTC->momSeed.Theta() * 180.*TMath::InvPi() - tcs.testTC->momSeed.Theta() * 180.*TMath::InvPi();
134 template <
class DataType,
class TCInfoType,
class VectorType>
145 return tcs.refTC->momSeed.Phi() * 180.*TMath::InvPi() - tcs.testTC->momSeed.Phi() * 180.*TMath::InvPi();
152 template <
class DataType,
class TCInfoType,
class VectorType>
163 return tcs.testTC->momSeed.Angle(tcs.refTC->momSeed) * 180.*TMath::InvPi();
170 template <
class DataType,
class TCInfoType,
class VectorType>
181 VectorType refMom = tcs.refTC->momSeed;
183 VectorType testMom = tcs.testTC->momSeed;
185 return testMom.Angle(refMom) * 180.*TMath::InvPi();
192 template <
class DataType,
class TCInfoType,
class VectorType>
203 return (tcs.refTC->posSeed - tcs.testTC->posSeed).Mag();
210 template <
class DataType,
class TCInfoType,
class VectorType>
221 return (tcs.refTC->posSeed - tcs.testTC->posSeed).Perp();
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 exeption 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.