]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Reve/PODs.cxx
Fix Ludovic's strange const-method syntax.
[u/mrichter/AliRoot.git] / EVE / Reve / PODs.cxx
1 // $Header$
2
3 #include <TClass.h>
4
5 #include "PODs.h"
6
7 using namespace Reve;
8
9 void 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 //______________________________________________________________________
29 // Point
30 //
31
32 ClassImp(Reve::Vector)
33
34 Float_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
45 //ClassImp(Hit)
46 //ClassImp(RecTrack)