Removing AliESDCaloTrack now obsolete
[u/mrichter/AliRoot.git] / STEER / AliESD.h
CommitLineData
af7ba10c 1#ifndef ALIESD_H
2#define ALIESD_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
af7ba10c 16#include <TClonesArray.h>
17#include <TObject.h>
18
af7ba10c 19#include "AliESDMuonTrack.h"
20#include "AliESDPmdTrack.h"
21#include "AliESDVertex.h"
22#include "AliESDcascade.h"
23#include "AliESDtrack.h"
24#include "AliESDv0.h"
8a8d023f 25
ae982df3 26class AliESD : public TObject {
8a8d023f 27public:
ae982df3 28 AliESD();
af7ba10c 29 virtual ~AliESD();
8a8d023f 30
ae982df3 31 void SetEventNumber(Int_t n) {fEventNumber=n;}
5121f0b3 32 void SetRunNumber(Int_t n) {fRunNumber=n;}
2257f27e 33 void SetTrigger(Long_t n) {fTrigger=n;}
a866ac60 34 void SetMagneticField(Float_t mf){fMagneticField = mf;}
35 Float_t GetMagneticField() const {return fMagneticField;}
36
873f1f73 37 AliESDtrack *GetTrack(Int_t i) const {
ae982df3 38 return (AliESDtrack *)fTracks.UncheckedAt(i);
39 }
5fe305fe 40
873f1f73 41 AliESDMuonTrack *GetMuonTrack(Int_t i) const {
672b5f43 42 return (AliESDMuonTrack *)fMuonTracks.UncheckedAt(i);
43 }
561b7b31 44 AliESDPmdTrack *GetPmdTrack(Int_t i) const {
45 return (AliESDPmdTrack *)fPmdTracks.UncheckedAt(i);
46 }
672b5f43 47
ae982df3 48 void AddTrack(const AliESDtrack *t) {
49 new(fTracks[fTracks.GetEntriesFast()]) AliESDtrack(*t);
50 }
5fe305fe 51
672b5f43 52 void AddMuonTrack(const AliESDMuonTrack *t) {
53 new(fMuonTracks[fMuonTracks.GetEntriesFast()]) AliESDMuonTrack(*t);
54 }
561b7b31 55 void AddPmdTrack(const AliESDPmdTrack *t) {
56 new(fPmdTracks[fPmdTracks.GetEntriesFast()]) AliESDPmdTrack(*t);
57 }
8a8d023f 58
873f1f73 59 AliESDv0 *GetV0(Int_t i) const {
e23730c7 60 return (AliESDv0 *)fV0s.UncheckedAt(i);
61 }
62 void AddV0(const AliESDv0 *v) {
63 new(fV0s[fV0s.GetEntriesFast()]) AliESDv0(*v);
64 }
65
873f1f73 66 AliESDcascade *GetCascade(Int_t i) const {
e23730c7 67 return (AliESDcascade *)fCascades.UncheckedAt(i);
68 }
69 void AddCascade(const AliESDcascade *c) {
70 new(fCascades[fCascades.GetEntriesFast()]) AliESDcascade(*c);
71 }
72
2257f27e 73 void SetVertex(AliESDVertex* vertex) {
74 new(&fPrimaryVertex) AliESDVertex(*vertex);
75 }
76 const AliESDVertex* GetVertex() const {return &fPrimaryVertex;};
873f1f73 77
ae982df3 78 Int_t GetEventNumber() const {return fEventNumber;}
79 Int_t GetRunNumber() const {return fRunNumber;}
80 Long_t GetTrigger() const {return fTrigger;}
8a8d023f 81
672b5f43 82 Int_t GetNumberOfTracks() const {return fTracks.GetEntriesFast();}
672b5f43 83 Int_t GetNumberOfMuonTracks() const {return fMuonTracks.GetEntriesFast();}
561b7b31 84 Int_t GetNumberOfPmdTracks() const {return fPmdTracks.GetEntriesFast();}
e23730c7 85 Int_t GetNumberOfV0s() const {return fV0s.GetEntriesFast();}
86 Int_t GetNumberOfCascades() const {return fCascades.GetEntriesFast();}
4a78b8c5 87
88 Float_t GetT0zVertex() const {return fT0zVertex;}
89 void SetT0zVertex(Float_t z) {fT0zVertex=z;}
ef278eae 90
91 void Print(Option_t *option="") const;
92
8a8d023f 93protected:
94
95 // Event Identification
ae982df3 96 Int_t fEventNumber; // Event Number
97 Int_t fRunNumber; // Run Number
98 Long_t fTrigger; // Trigger Type
99 Int_t fRecoVersion; // Version of reconstruction
a866ac60 100 Float_t fMagneticField; // Solenoid Magnetic Field in kG : for compatibility with AliMagF
8a8d023f 101
4a78b8c5 102 Float_t fT0zVertex; // vertex z position estimated by the START
103 AliESDVertex fPrimaryVertex; // Primary vertex estimated by the ITS
873f1f73 104
ae982df3 105 TClonesArray fTracks; // ESD tracks
672b5f43 106 TClonesArray fMuonTracks; // MUON ESD tracks
561b7b31 107 TClonesArray fPmdTracks; // PMD ESD tracks
e23730c7 108 TClonesArray fV0s; // V0 vertices
109 TClonesArray fCascades; // Cascade vertices
8a8d023f 110
6850006c 111 ClassDef(AliESD,4) //ESD class
a866ac60 112 //ver. 2: Magnetic Field Added; skowron
8a8d023f 113};
114
115#endif
116