- Three classes by MinJung Kweon AliHFEpriVtx, AliHFEsecVtx and AliHFEmcQA for primar...
[u/mrichter/AliRoot.git] / STEER / AliESDfriend.h
CommitLineData
1d99986f 1#ifndef ALIESDFRIEND_H
2#define ALIESDFRIEND_H
3
4//-------------------------------------------------------------------------
5// Class AliESDfriend
6// This class contains ESD additions
7// Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
8//-------------------------------------------------------------------------
9
10#include <TObject.h>
11#include <TClonesArray.h>
12
d65adc48 13#include "AliESDfriendTrack.h"
b090e6a3 14#include "AliESDVZEROfriend.h"
1d99986f 15
16//_____________________________________________________________________________
17class AliESDfriend : public TObject {
18public:
19 AliESDfriend();
20 AliESDfriend(const AliESDfriend &);
c43af351 21 AliESDfriend& operator=(const AliESDfriend& esd);
1d99986f 22 virtual ~AliESDfriend();
23
24 Int_t GetNumberOfTracks() const {return fTracks.GetEntriesFast();}
25 AliESDfriendTrack *GetTrack(Int_t i) const {
d75007f6 26 return (AliESDfriendTrack *)fTracks.UncheckedAt(i);
27 }
28 void AddTrack(const AliESDfriendTrack *t) {
29 new(fTracks[fTracks.GetEntriesFast()]) AliESDfriendTrack(*t);
1d99986f 30 }
31
b090e6a3 32 void SetVZEROfriend(AliESDVZEROfriend * obj);
33 AliESDVZEROfriend *GetVZEROfriend(){ return fESDVZEROfriend; }
34
1d99986f 35protected:
36 TClonesArray fTracks; // ESD friend tracks
b090e6a3 37 AliESDVZEROfriend *fESDVZEROfriend; // VZERO object containing complete raw data
38
39 ClassDef(AliESDfriend,2) // ESD friend
1d99986f 40};
41
42#endif
43
44