Introduction of ESD and combined PID
[u/mrichter/AliRoot.git] / STEER / AliESD.h
CommitLineData
ae982df3 1#ifndef ALIESDEVENT_H
2#define ALIESDEVENT_H
8a8d023f 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
88cb7938 6
7/* $Id$ */
8
ae982df3 9//-------------------------------------------------------------------------
10// Class AliESD
11// This is the class to deal with during the physical analysis of data
12//
13// Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
14//-------------------------------------------------------------------------
8a8d023f 15
9e12cd8c 16#include "TObject.h"
ae982df3 17#include "TClonesArray.h"
18#include "AliESDtrack.h"
8a8d023f 19
ae982df3 20class AliESD : public TObject {
8a8d023f 21public:
ae982df3 22 AliESD();
23 virtual ~AliESD() {
24 fTracks.Delete();
25 //fV0s.Delete();
26 //fCascades.Delete();
27 }
8a8d023f 28
ae982df3 29 void SetEventNumber(Int_t n) {fEventNumber=n;}
8a8d023f 30
ae982df3 31 AliESDtrack *GetTrack(Int_t i) {
32 return (AliESDtrack *)fTracks.UncheckedAt(i);
33 }
34 void AddTrack(const AliESDtrack *t) {
35 new(fTracks[fTracks.GetEntriesFast()]) AliESDtrack(*t);
36 }
8a8d023f 37
ae982df3 38 Int_t GetEventNumber() const {return fEventNumber;}
39 Int_t GetRunNumber() const {return fRunNumber;}
40 Long_t GetTrigger() const {return fTrigger;}
8a8d023f 41
ae982df3 42 Int_t GetNumberOfTracks() const {return fTracks.GetEntriesFast();}
43 //Int_t GetNumberOfV0s() const {return fV0s.GetEntriesFast();}
44 //Int_t GetNumberOfCascades() const {return fCascades.GetEntriesFast();}
8a8d023f 45
46protected:
47
48 // Event Identification
ae982df3 49 Int_t fEventNumber; // Event Number
50 Int_t fRunNumber; // Run Number
51 Long_t fTrigger; // Trigger Type
52 Int_t fRecoVersion; // Version of reconstruction
8a8d023f 53
ae982df3 54 TClonesArray fTracks; // ESD tracks
55 //TClonesArray fV0s; // V0 vertices
56 //TClonesArray fCascades; // Cascade vertices
8a8d023f 57
ae982df3 58 ClassDef(AliESD,1) //ESD class
8a8d023f 59};
60
61#endif
62