CMS 3D CMS Logo

FWPFMaths.h
Go to the documentation of this file.
1 #ifndef _FWPFMATHS_H_
2 #define _FWPFMATHS_H_
3 
4 #include "TEveVector.h"
5 
6 namespace FWPFMaths
7 {
8  TEveVector lineCircleIntersect( const TEveVector &v1, const TEveVector &v2, float r );
9  TEveVector lineLineIntersect( const TEveVector &v1, const TEveVector &v2,
10  const TEveVector &v3, const TEveVector &v4 );
11  TEveVector cross( const TEveVector &v1, const TEveVector &v2 );
12  TEveVector calculateCentre( const float *vertices );
13  float linearInterpolation( const TEveVector &p1, const TEveVector &p2, float r );
14  float dot( const TEveVector &v1, const TEveVector &v2 );
15  float sgn( float val );
16  float calculateEt( const TEveVector &centre, float e );
17  bool checkIntersect( const TEveVector &vec, float r );
18 }
19 #endif
TEveVector cross(const TEveVector &v1, const TEveVector &v2)
Definition: FWPFMaths.cc:16
float sgn(float val)
Definition: FWPFMaths.cc:9
float linearInterpolation(const TEveVector &p1, const TEveVector &p2, float r)
Definition: FWPFMaths.cc:91
bool checkIntersect(const TEveVector &vec, float r)
Definition: FWPFMaths.cc:103
double p2[4]
Definition: TauolaWrapper.h:90
float calculateEt(const TEveVector &centre, float e)
Definition: FWPFMaths.cc:115
TEveVector calculateCentre(const float *vertices)
double p1[4]
Definition: TauolaWrapper.h:89
float dot(const TEveVector &v1, const TEveVector &v2)
Definition: FWPFMaths.cc:29
TEveVector lineCircleIntersect(const TEveVector &v1, const TEveVector &v2, float r)
Definition: FWPFMaths.cc:38
TEveVector lineLineIntersect(const TEveVector &v1, const TEveVector &v2, const TEveVector &v3, const TEveVector &v4)
Definition: FWPFMaths.cc:73