]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Reve/PODs.cxx
26a87c170e8282093dce6ce1451b6ca7280a6e36
[u/mrichter/AliRoot.git] / EVE / Reve / PODs.cxx
1 // $Header$
2
3 #include "PODs.h"
4
5 using namespace Reve;
6
7 void Reve::DisablePODTObjectStreamers()
8 {
9   // Vector is not TObject
10
11   // MCTrack derives from TParticle 
12   TParticle::Class()->IgnoreTObjectStreamer(true);
13   MCTrackRef::Class()->IgnoreTObjectStreamer(true);
14
15   Hit::Class()->IgnoreTObjectStreamer(true);
16   Cluster::Class()->IgnoreTObjectStreamer(true);
17
18   RecTrack::Class()->IgnoreTObjectStreamer(true);
19   // RecKink derives from RecTrack
20
21   RecV0::Class()->IgnoreTObjectStreamer(true);
22
23   GenInfo::Class()->IgnoreTObjectStreamer(true);
24 }
25
26 //______________________________________________________________________
27 // Point
28 //
29
30 ClassImp(Reve::Vector)
31
32 Float_t Vector::Eta() const
33 {
34   Float_t cosTheta = CosTheta();
35   if (cosTheta*cosTheta < 1) return -0.5* TMath::Log( (1.0-cosTheta)/(1.0+cosTheta) );
36   Warning("Eta","transverse momentum = 0! return +/- 10e10");
37   return (z >= 0) ? 10e10 : -10e10;
38 }
39
40 /**************************************************************************/
41 /**************************************************************************/
42
43 //ClassImp(Hit);
44 //ClassImp(RecTrack);