--- DarthVader/TrackerLevel2/inc/TrkLevel2.h 2006/05/19 13:15:52 1.1 +++ DarthVader/TrackerLevel2/inc/TrkLevel2.h 2006/06/01 09:03:09 1.2 @@ -10,6 +10,13 @@ #include #include +// z-coordinate of track state-vector reference-plane +#define ZINI 23.5 +// upper and lower (mechanical) z-coordinate of the tracker +#define ZTRKUP 22.29 +#define ZTRKDW -22.22 + + /** * \brief Class to describe, by points, a particle trajectory in the apparatus. * @@ -26,12 +33,18 @@ float* x; ///< x coordinates float* y; ///< y coordinates float* z; ///< z coordinates + float* thx; ///< x projected angle + float* thy; ///< y projected angle + float* tl; ///< track length - Trajectory(){npoint=1; x = new float; y = new float; z = new float; return;}; + Trajectory(); Trajectory(int n); Trajectory(int n, float* pz); void Dump(); + float GetLength(){float l=0; for(int i=0; i