// @(#)root/eve:$Id$
// Author: Matevz Tadel 2010

/*************************************************************************
 * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TEvePathMark
#define ROOT_TEvePathMark

#include <TEveVector.h>

//==============================================================================
// TEvePathMark
//==============================================================================

template <typename TT>
class TEvePathMarkT
{
public:
   enum EType_e { kReference, kDaughter, kDecay, kCluster2D, kLineSegment };

   EType_e         fType; // Mark-type.
   TEveVectorT<TT> fV;    // Vertex.
   TEveVectorT<TT> fP;    // Momentum.
   TEveVectorT<TT> fE;    // Extra, meaning depends on fType.
   TT              fTime; // Time.

   TEvePathMarkT(EType_e type=kReference) :
      fType(type), fV(), fP(), fE(), fTime(0) {}

   TEvePathMarkT(EType_e type, const TEveVectorT<TT>& v, TT time=0) :
      fType(type), fV(v), fP(), fE(), fTime(time) {}

   TEvePathMarkT(EType_e type, const TEveVectorT<TT>& v, const TEveVectorT<TT>& p, TT time=0) :
      fType(type), fV(v), fP(p), fE(), fTime(time) {}

   TEvePathMarkT(EType_e type, const TEveVectorT<TT>& v, const TEveVectorT<TT>& p, const TEveVectorT<TT>& e, TT time=0) :
      fType(type), fV(v), fP(p), fE(e), fTime(time) {}

   template <typename OO>
   TEvePathMarkT(const TEvePathMarkT<OO>& pm) :
      fType((EType_e)pm.fType), fV(pm.fV), fP(pm.fP), fE(pm.fE), fTime(pm.fTime) {}

   const char* TypeName();

   ClassDefNV(TEvePathMarkT, 1); // Template for a special point on a track: position/momentum reference, daughter creation or decay.
};

typedef TEvePathMarkT<Float_t>  TEvePathMark;
typedef TEvePathMarkT<Float_t>  TEvePathMarkF;
typedef TEvePathMarkT<Double_t> TEvePathMarkD;

#endif
 TEvePathMark.h:1
 TEvePathMark.h:2
 TEvePathMark.h:3
 TEvePathMark.h:4
 TEvePathMark.h:5
 TEvePathMark.h:6
 TEvePathMark.h:7
 TEvePathMark.h:8
 TEvePathMark.h:9
 TEvePathMark.h:10
 TEvePathMark.h:11
 TEvePathMark.h:12
 TEvePathMark.h:13
 TEvePathMark.h:14
 TEvePathMark.h:15
 TEvePathMark.h:16
 TEvePathMark.h:17
 TEvePathMark.h:18
 TEvePathMark.h:19
 TEvePathMark.h:20
 TEvePathMark.h:21
 TEvePathMark.h:22
 TEvePathMark.h:23
 TEvePathMark.h:24
 TEvePathMark.h:25
 TEvePathMark.h:26
 TEvePathMark.h:27
 TEvePathMark.h:28
 TEvePathMark.h:29
 TEvePathMark.h:30
 TEvePathMark.h:31
 TEvePathMark.h:32
 TEvePathMark.h:33
 TEvePathMark.h:34
 TEvePathMark.h:35
 TEvePathMark.h:36
 TEvePathMark.h:37
 TEvePathMark.h:38
 TEvePathMark.h:39
 TEvePathMark.h:40
 TEvePathMark.h:41
 TEvePathMark.h:42
 TEvePathMark.h:43
 TEvePathMark.h:44
 TEvePathMark.h:45
 TEvePathMark.h:46
 TEvePathMark.h:47
 TEvePathMark.h:48
 TEvePathMark.h:49
 TEvePathMark.h:50
 TEvePathMark.h:51
 TEvePathMark.h:52
 TEvePathMark.h:53
 TEvePathMark.h:54
 TEvePathMark.h:55
 TEvePathMark.h:56
 TEvePathMark.h:57
 TEvePathMark.h:58