In AddTaskPHOSPi0Flow.C set Cent. Bin past event buffers/lists,
[u/mrichter/AliRoot.git] / STEER / ESD / 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"
73df58ab 14
15class AliESDVZEROfriend;
16class AliESDTZEROfriend;
1d99986f 17
18//_____________________________________________________________________________
19class AliESDfriend : public TObject {
20public:
21 AliESDfriend();
22 AliESDfriend(const AliESDfriend &);
c43af351 23 AliESDfriend& operator=(const AliESDfriend& esd);
1d99986f 24 virtual ~AliESDfriend();
25
26 Int_t GetNumberOfTracks() const {return fTracks.GetEntriesFast();}
27 AliESDfriendTrack *GetTrack(Int_t i) const {
e5a138f3 28 return (AliESDfriendTrack *)fTracks.At(i);
d75007f6 29 }
6d3a7bbf 30 Int_t GetEntriesInTracks() const {return fTracks.GetEntries();}
d75007f6 31 void AddTrack(const AliESDfriendTrack *t) {
32 new(fTracks[fTracks.GetEntriesFast()]) AliESDfriendTrack(*t);
1d99986f 33 }
34
6d3a7bbf 35 void AddTrackAt(const AliESDfriendTrack *t, Int_t i) {
36 new(fTracks[i]) AliESDfriendTrack(*t);
37 }
38
b090e6a3 39 void SetVZEROfriend(AliESDVZEROfriend * obj);
40 AliESDVZEROfriend *GetVZEROfriend(){ return fESDVZEROfriend; }
73df58ab 41 void SetTZEROfriend(AliESDTZEROfriend * obj);
42 AliESDTZEROfriend *GetTZEROfriend(){ return fESDTZEROfriend; }
b090e6a3 43
6d3a7bbf 44 void Ls(){
45 return fTracks.ls();
46 }
47
3e341ccb 48 // bit manipulation for filtering
49 void SetSkipBit(Bool_t skip){SetBit(23,skip);}
50 Bool_t TestSkipBit() {return TestBit(23);}
ddfbc51a 51
1d99986f 52protected:
53 TClonesArray fTracks; // ESD friend tracks
b090e6a3 54 AliESDVZEROfriend *fESDVZEROfriend; // VZERO object containing complete raw data
73df58ab 55 AliESDTZEROfriend *fESDTZEROfriend; // TZERO calibration object
b090e6a3 56
73df58ab 57 ClassDef(AliESDfriend,3) // ESD friend
1d99986f 58};
59
60#endif
61
62