3 //__________________________________________________________
4 ///////////////////////////////////////////////////////////////////
8 // This class is container for paticles coming from one event
10 // more info: http://alisoft.cern.ch/people/skowron/analyzer/index.html
12 // Piotr.Skowronski@cern.ch
14 ///////////////////////////////////////////////////////////////////
20 class AliHBTEvent: public TObject
24 virtual ~AliHBTEvent();
25 const static UInt_t fgkInitEventSize; //initial number of the array
26 //if expanded, this size is used also
27 AliHBTParticle* GetParticle(Int_t n); //gets particle
28 AliHBTParticle* GetParticleSafely(Int_t n); //gets particle with index check
30 void AddParticle(AliHBTParticle*); //adds particle to the event
31 void AddParticle(TParticle*, Int_t idx); //adds particle to the event
32 void AddParticle(Int_t pdg, Int_t idx, Double_t px, Double_t py, Double_t pz, Double_t etot,
33 Double_t vx, Double_t vy, Double_t vz, Double_t time);
35 Int_t GetNumberOfParticles() const;
36 void Reset(); //deletes all entries
37 void SetOwner(Bool_t owns = kTRUE){ fOwner = owns; }
38 Bool_t IsOwner() {return fOwner;}
40 AliHBTParticle ** fParticles; //!array of pointers to the particles
41 Int_t fNParticles; //!number of particles in Event
42 Int_t fSize; //!current size of the array
43 Bool_t fOwner; //flag if that event owns the
44 void Expand(); //expands the array if necessary
48 ClassDef(AliHBTEvent,1)
50 /**************************************************************************/
53 AliHBTParticle* AliHBTEvent::GetParticle(Int_t n)
55 //Gets particle without boundary check
59 /**************************************************************************/
62 Int_t AliHBTEvent::GetNumberOfParticles() const
64 //reurns number of particles in this event