00001 #ifndef TAUREC_KINEUTILS_H
00002 #define TAUREC_KINEUTILS_H
00003
00004
00005 #include <string>
00006 #include "TVector2.h"
00007
00008
00009
00010
00019
00020 class Tau1P3PKineUtils
00021 {
00022 public:
00029 static double deltaEta(double eta1, double eta2) { return std::fabs( eta1 - eta2);}
00030
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048 static double deltaPhi(double phi1, double phi2)
00049 {
00050 return TVector2::Phi_mpi_pi(phi1-phi2);
00051 }
00052
00059 static double deltaR(double de,double dp) { return std::sqrt(de*de+dp*dp); }
00060 static double deltaR(double eta1, double phi1, double eta2, double phi2) {
00061 return std::sqrt(deltaEta(eta1,eta2)*deltaEta(eta1,eta2)+deltaPhi(phi1,phi2)*deltaPhi(phi1,phi2));
00062 }
00063
00064 };
00065
00066 #endif