Add function to return PathMark type-name.
authormtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Feb 2007 16:37:07 +0000 (16:37 +0000)
committermtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Feb 2007 16:37:07 +0000 (16:37 +0000)
EVE/Reve/PODs.cxx
EVE/Reve/PODs.h

index 02f4cc8..b85570b 100644 (file)
@@ -26,7 +26,7 @@ void Reve::DisablePODTObjectStreamers()
 }
 
 //______________________________________________________________________
-// Point
+// Vector
 //
 
 ClassImp(Reve::Vector)
@@ -42,5 +42,22 @@ Float_t Vector::Eta() const
 /**************************************************************************/
 /**************************************************************************/
 
+//______________________________________________________________________
+// PathMark
+//
+
+ClassImp(Reve::PathMark)
+
+const char* PathMark::type_name()
+{
+  switch (type)
+  {
+    case Daughter:  return "Daughter";
+    case Reference: return "Reference";
+    case Decay:     return "Decay";
+    default:        return "Unknown";
+  }
+}
+
 //ClassImp(Hit)
 //ClassImp(RecTrack)
index 7bbdba0..d07bc1a 100644 (file)
@@ -94,6 +94,8 @@ class PathMark
   PathMark(Type_e t=Reference) : V(), P(), type(t) {}
   virtual ~PathMark() {}
 
+  const char* type_name();
+
   ClassDef(PathMark, 1);
 };