]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/global/AliFlatESDV0.h
Merge branch 'flatdev' of https://git.cern.ch/reps/AliRoot into flatdev
[u/mrichter/AliRoot.git] / HLT / global / AliFlatESDV0.h
1 #ifndef ALIFLATESDV0_H
2 #define ALIFLATESDV0_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               *
6  * Primary Authors : Sergey Gorbunov, Jochen Thaeder, Chiara Zampolli     */
7
8 /**
9  * >> Flat structure representing a ESD v0 vertex <<
10  */
11
12 #include "Rtypes.h"
13 #include "AliVMisc.h"
14
15 class AliFlatESDV0
16 {
17  public:
18
19   // -- Constructor / Destructors
20  
21   AliFlatESDV0(): fNegTrackID(-1), fPosTrackID(-1) {}
22   ~AliFlatESDV0(){}
23  
24   // constructor and method for reinitialisation of virtual table
25   AliFlatESDV0( AliVConstructorReinitialisationFlag )
26   //  : fNegTrackID(fNegTrackID), fPosTrackID(fPosTrackID) 
27   {}
28   void Reinitialize() const {} // no virtual table - do nothing
29  
30   //--
31  
32   static size_t GetSize(){ return sizeof(AliFlatESDV0); }
33
34   void SetNegTrackID( Int_t id ){ fNegTrackID = id; }
35   void SetPosTrackID( Int_t id ){ fPosTrackID = id; }
36
37   Int_t GetNegTrackID() const { return fNegTrackID; }
38   Int_t GetPosTrackID() const { return fPosTrackID; }
39
40   // --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  
41   
42   const AliFlatESDV0 *GetNextV0() const { return reinterpret_cast<const AliFlatESDV0*>( this+GetSize() ); }
43   AliFlatESDV0 *GetNextV0NonConst() { return reinterpret_cast<AliFlatESDV0*>( this+GetSize() ); }
44
45  private:
46
47   AliFlatESDV0(const AliFlatESDV0&);
48   AliFlatESDV0& operator=(const AliFlatESDV0&);
49
50   Int_t fNegTrackID;
51   Int_t fPosTrackID;
52 };
53
54 #endif