4 //-------------------------------------------------------------------------
6 // This class contains ESD additions
7 // Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
8 //-------------------------------------------------------------------------
11 #include <TClonesArray.h>
13 #include "AliESDfriendTrack.h"
15 class AliESDVZEROfriend;
16 class AliESDTZEROfriend;
18 //_____________________________________________________________________________
19 class AliESDfriend : public TObject {
22 AliESDfriend(const AliESDfriend &);
23 AliESDfriend& operator=(const AliESDfriend& esd);
24 virtual ~AliESDfriend();
26 Int_t GetNumberOfTracks() const {return fTracks.GetEntriesFast();}
27 AliESDfriendTrack *GetTrack(Int_t i) const {
28 return (AliESDfriendTrack *)fTracks.At(i);
30 Int_t GetEntriesInTracks() const {return fTracks.GetEntries();}
31 void AddTrack(const AliESDfriendTrack *t) {
32 new(fTracks[fTracks.GetEntriesFast()]) AliESDfriendTrack(*t);
35 void AddTrackAt(const AliESDfriendTrack *t, Int_t i) {
36 new(fTracks[i]) AliESDfriendTrack(*t);
39 void SetVZEROfriend(AliESDVZEROfriend * obj);
40 AliESDVZEROfriend *GetVZEROfriend(){ return fESDVZEROfriend; }
41 void SetTZEROfriend(AliESDTZEROfriend * obj);
42 AliESDTZEROfriend *GetTZEROfriend(){ return fESDTZEROfriend; }
48 // bit manipulation for filtering
49 void SetSkipBit(Bool_t skip){SetBit(23,skip);}
50 Bool_t TestSkipBit() {return TestBit(23);}
53 TClonesArray fTracks; // ESD friend tracks
54 AliESDVZEROfriend *fESDVZEROfriend; // VZERO object containing complete raw data
55 AliESDTZEROfriend *fESDTZEROfriend; // TZERO calibration object
57 ClassDef(AliESDfriend,3) // ESD friend