Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TEvePathMark.cxx
Go to the documentation of this file.
1// @(#)root/eve:$Id$
2// Author: Matevz Tadel 2010
3
4/*************************************************************************
5 * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#include "TEvePathMark.h"
13
14/** \class TEvePathMarkT
15\ingroup TEve
16Special-point on track:
17
18 - kDaughter : daughter creation; fP is momentum of the daughter, it is subtracted from
19 momentum of the track
20 - kReference : position/momentum reference
21 - kDecay : decay point, fP not used
22 - kCluster2D : measurement with large error in one direction (like strip detectors):
23 - fP - normal to detector plane,
24 - fE - large error direction, must be normalized.
25 - Track is propagated to plane and correction in fE direction is discarded.
26 - kLineSegment : line segment with vertex fV and vector fE
27 - fV - first point of line segment
28 - fP - normal to detector plane,
29 - fE - vector from fV to the second vertex of line segment
30*/
31
32
33////////////////////////////////////////////////////////////////////////////////
34/// Return the name of path-mark type.
35
36template<typename TT> const char* TEvePathMarkT<TT>::TypeName()
37{
38 switch (fType)
39 {
40 case kDaughter: return "Daughter";
41 case kReference: return "Reference";
42 case kDecay: return "Decay";
43 case kCluster2D: return "Cluster2D";
44 case kLineSegment: return "LineSegment";
45 default: return "Unknown";
46 }
47}
48
49template class TEvePathMarkT<Float_t>;
50template class TEvePathMarkT<Double_t>;
const char * TypeName()
Return the name of path-mark type.