]>
Commit | Line | Data |
---|---|---|
251a2c81 | 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 | /** | |
6a33e0e9 | 9 | * >> Flat structure representing a ESD v0 vertex << |
251a2c81 | 10 | */ |
11 | ||
12 | #include "Rtypes.h" | |
1f516476 | 13 | #include "AliVMisc.h" |
251a2c81 | 14 | |
488be202 | 15 | class AliFlatESDV0 |
251a2c81 | 16 | { |
f009a562 | 17 | public: |
6a33e0e9 | 18 | |
c2ea967e | 19 | // -- Constructor / Destructors |
20 | ||
6a33e0e9 | 21 | AliFlatESDV0(): fNegTrackID(-1), fPosTrackID(-1) {} |
22 | ~AliFlatESDV0(){} | |
c2ea967e | 23 | |
24 | // constructor and method for reinitialisation of virtual table | |
bbddf50f | 25 | AliFlatESDV0( AliVConstructorReinitialisationFlag ); |
c2ea967e | 26 | void Reinitialize() const {} // no virtual table - do nothing |
27 | ||
28 | //-- | |
29 | ||
6a33e0e9 | 30 | static size_t GetSize(){ return sizeof(AliFlatESDV0); } |
31 | ||
32 | void SetNegTrackID( Int_t id ){ fNegTrackID = id; } | |
33 | void SetPosTrackID( Int_t id ){ fPosTrackID = id; } | |
34 | ||
35 | Int_t GetNegTrackID() const { return fNegTrackID; } | |
36 | Int_t GetPosTrackID() const { return fPosTrackID; } | |
37 | ||
c2ea967e | 38 | // -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
39 | ||
0d3e34a2 | 40 | const AliFlatESDV0 *GetNextV0() const { return reinterpret_cast<const AliFlatESDV0*>( this+1 ); } |
41 | AliFlatESDV0 *GetNextV0NonConst() { return reinterpret_cast<AliFlatESDV0*>( this+1 ); } | |
42 | ||
c2ea967e | 43 | |
6a33e0e9 | 44 | private: |
45 | ||
46 | AliFlatESDV0(const AliFlatESDV0&); | |
47 | AliFlatESDV0& operator=(const AliFlatESDV0&); | |
48 | ||
251a2c81 | 49 | Int_t fNegTrackID; |
50 | Int_t fPosTrackID; | |
51 | }; | |
251a2c81 | 52 | |
bbddf50f | 53 | #pragma GCC diagnostic ignored "-Weffc++" |
54 | inline AliFlatESDV0::AliFlatESDV0( AliVConstructorReinitialisationFlag ){} | |
55 | #pragma GCC diagnostic warning "-Weffc++" | |
56 | ||
251a2c81 | 57 | #endif |