]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/Reve/PODs.cxx
Added method SortPathMarksByTime().
[u/mrichter/AliRoot.git] / EVE / Reve / PODs.cxx
CommitLineData
5a5a1232 1// $Header$
2
0b28fd57 3#include <TClass.h>
4
5a5a1232 5#include "PODs.h"
6
7using namespace Reve;
8
9void Reve::DisablePODTObjectStreamers()
10{
11 // Vector is not TObject
12
13 // MCTrack derives from TParticle
14 TParticle::Class()->IgnoreTObjectStreamer(true);
15 MCTrackRef::Class()->IgnoreTObjectStreamer(true);
16
17 Hit::Class()->IgnoreTObjectStreamer(true);
18 Cluster::Class()->IgnoreTObjectStreamer(true);
19
20 RecTrack::Class()->IgnoreTObjectStreamer(true);
21 // RecKink derives from RecTrack
22
23 RecV0::Class()->IgnoreTObjectStreamer(true);
24
25 GenInfo::Class()->IgnoreTObjectStreamer(true);
26}
27
28//______________________________________________________________________
442ec21b 29// Vector
5a5a1232 30//
31
32ClassImp(Reve::Vector)
33
34Float_t Vector::Eta() const
35{
36 Float_t cosTheta = CosTheta();
37 if (cosTheta*cosTheta < 1) return -0.5* TMath::Log( (1.0-cosTheta)/(1.0+cosTheta) );
38 Warning("Eta","transverse momentum = 0! return +/- 10e10");
39 return (z >= 0) ? 10e10 : -10e10;
40}
41
42/**************************************************************************/
43/**************************************************************************/
44
442ec21b 45//______________________________________________________________________
46// PathMark
47//
48
49ClassImp(Reve::PathMark)
50
51const char* PathMark::type_name()
52{
53 switch (type)
54 {
55 case Daughter: return "Daughter";
56 case Reference: return "Reference";
57 case Decay: return "Decay";
58 default: return "Unknown";
59 }
60}
61
2aef44c1 62//ClassImp(Hit)
63//ClassImp(RecTrack)