3 //This class sters HBT perticles for one event
4 //more info: http://alisoft.cern.ch/people/skowron/analyzer/index.html
10 class AliHBTEvent: public TObject
14 virtual ~AliHBTEvent();
15 const static UInt_t fgkInitEventSize; //initial number of the array
16 //if expanded, this size is used also
17 AliHBTParticle* GetParticle(Int_t n); //gets particle
18 AliHBTParticle* GetParticleSafely(Int_t n); //gets particle with index check
20 void AddParticle(AliHBTParticle*); //adds particle to the event
21 void AddParticle(TParticle*); //adds particle to the event
22 void AddParticle(Int_t pdg, Double_t px, Double_t py, Double_t pz, Double_t etot,
23 Double_t vx, Double_t vy, Double_t vz, Double_t time);
25 Int_t GetNumberOfParticles() const;
26 void Reset(); //deletes all entries
27 void SetOwner(Bool_t owns = kTRUE){ fOwner = owns; }
28 Bool_t IsOwner() {return fOwner;}
30 AliHBTParticle ** fParticles; //!array of pointers to the particles
31 Int_t fNParticles; //!number of particles in Event
32 Int_t fSize; //!current size of the array
33 Bool_t fOwner; //flag if that event owns the
34 void Expand(); //expands the array if necessary
38 ClassDef(AliHBTEvent,1)
40 /**************************************************************************/
43 AliHBTParticle* AliHBTEvent::GetParticle(Int_t n)
45 //Gets particle without boundary check
49 /**************************************************************************/
52 Int_t AliHBTEvent::GetNumberOfParticles() const
54 //reurns number of particles in this event