Adaption to new fluka common blocks (E. Futo)
[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
ae982df3 6//-------------------------------------------------------------------------
7// Class AliESD
8// This is the class to deal with during the physical analysis of data
9//
10// Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
11//-------------------------------------------------------------------------
8a8d023f 12
9e12cd8c 13#include "TObject.h"
ae982df3 14#include "TClonesArray.h"
15#include "AliESDtrack.h"
8a8d023f 16
ae982df3 17class AliESD : public TObject {
8a8d023f 18public:
ae982df3 19 AliESD();
20 virtual ~AliESD() {
21 fTracks.Delete();
22 //fV0s.Delete();
23 //fCascades.Delete();
24 }
8a8d023f 25
ae982df3 26 void SetEventNumber(Int_t n) {fEventNumber=n;}
8a8d023f 27
ae982df3 28 AliESDtrack *GetTrack(Int_t i) {
29 return (AliESDtrack *)fTracks.UncheckedAt(i);
30 }
31 void AddTrack(const AliESDtrack *t) {
32 new(fTracks[fTracks.GetEntriesFast()]) AliESDtrack(*t);
33 }
8a8d023f 34
ae982df3 35 Int_t GetEventNumber() const {return fEventNumber;}
36 Int_t GetRunNumber() const {return fRunNumber;}
37 Long_t GetTrigger() const {return fTrigger;}
8a8d023f 38
ae982df3 39 Int_t GetNumberOfTracks() const {return fTracks.GetEntriesFast();}
40 //Int_t GetNumberOfV0s() const {return fV0s.GetEntriesFast();}
41 //Int_t GetNumberOfCascades() const {return fCascades.GetEntriesFast();}
8a8d023f 42
43protected:
44
45 // Event Identification
ae982df3 46 Int_t fEventNumber; // Event Number
47 Int_t fRunNumber; // Run Number
48 Long_t fTrigger; // Trigger Type
49 Int_t fRecoVersion; // Version of reconstruction
8a8d023f 50
ae982df3 51 TClonesArray fTracks; // ESD tracks
52 //TClonesArray fV0s; // V0 vertices
53 //TClonesArray fCascades; // Cascade vertices
8a8d023f 54
ae982df3 55 ClassDef(AliESD,1) //ESD class
8a8d023f 56};
57
58#endif
59