00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef Helper_HH
00027 #define Helper_HH
00028
00029 #include "StEventTypes.h"
00030 #include "StPhysicalHelixD.hh"
00031
00032
00033
00034
00035 double distance(double a1, double b1, double a2, double b2);
00036 double distance(const StThreeVectorF& point1,
00037 const StThreeVectorF& point2);
00038
00039 double dca3d(const StPhysicalHelixD&, const StThreeVectorF& point);
00040
00041 double dca2d(const StPhysicalHelixD&, const StThreeVectorF& point,
00042 const StThreeVectorF* origin=0);
00043
00044 double dcaz(const StPhysicalHelixD&, const StThreeVectorF& point,
00045 const StTrack* track=0);
00046
00047
00048
00049
00050
00051 double crossingAngle(const StPhysicalHelixD& helix,
00052 const StTpcHit* hit, float bField=0);
00053
00054 double padrowDca(const StPhysicalHelixD& helix,
00055 const StTpcHit* hit);
00056
00057
00058
00059 double propagateToPadrow(const StPhysicalHelixD& helix,
00060 const StTpcHit* hit);
00061 double helixPadrowDca(const StPhysicalHelixD& helix,
00062 const StTpcHit* hit);
00063 double helixCrossingAngle(const StPhysicalHelixD& helix,
00064 const StTpcHit* hit, float bField);
00065
00066 double helixDca2D(const StPhysicalHelixD&,const StThreeVectorF& point);
00067
00068
00069
00070
00071 StThreeVectorF lineAt2d(const StPhysicalHelixD&, const StThreeVectorF& point);
00072
00073 double
00074 linePadrowDca(const StPhysicalHelixD& helix,
00075 const StTpcHit* hit);
00076
00077 double
00078 lineCrossingAngle(const StPhysicalHelixD& helix,
00079 const StTpcHit* hit);
00080
00081 double
00082 lineCrossingAngle(const StPhysicalHelixD& helix,
00083 const int sector);
00084
00085 double
00086 lineDca2D(const StPhysicalHelixD& helix,
00087 const StThreeVectorF& hit,
00088 const StThreeVectorF& origin);
00089
00090 #endif