]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/global/AliFlatESDV0.h
Reinitialization methods added to AliFlat*
[u/mrichter/AliRoot.git] / HLT / global / AliFlatESDV0.h
CommitLineData
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"
c2ea967e 13#include "AliVVMisc.h"
251a2c81 14
488be202 15class 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
25 AliFlatESDV0( AliVVConstructorReinitialisationFlag ): fNegTrackID(fNegTrackID), fPosTrackID(fPosTrackID) {}
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
40 const AliFlatESDV0 *GetNextV0() const { return reinterpret_cast<const AliFlatESDV0*>( this+GetSize() ); }
41 AliFlatESDV0 *GetNextV0NonConst() { return reinterpret_cast<AliFlatESDV0*>( this+GetSize() ); }
42
6a33e0e9 43 private:
44
45 AliFlatESDV0(const AliFlatESDV0&);
46 AliFlatESDV0& operator=(const AliFlatESDV0&);
47
251a2c81 48 Int_t fNegTrackID;
49 Int_t fPosTrackID;
50};
251a2c81 51
52#endif