]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HBTAN/AliHBTEvent.h
Transition to NewIO
[u/mrichter/AliRoot.git] / HBTAN / AliHBTEvent.h
index d2d632a3c693d8f034219def2da02a341581694e..cfd0f853a12575cf189e5369d199a69da73abd37 100644 (file)
@@ -1,50 +1,52 @@
-#ifndef ALIHBTEvent_H
-#define ALIHBTEvent_H
-//_________________________________________________________________________
-///////////////////////////////////////////////////////////////////////////
-//                                                                       //
-// class AliHBTEvent                                                     //
-//                                                                       //
-// This class stores HBT perticles for one event                         //
-// more info: http://alisoft.cern.ch/people/skowron/analyzer/index.html  //
-//                                                                       //
-///////////////////////////////////////////////////////////////////////////
+#ifndef ALIHBTEVENT_H
+#define ALIHBTEVENT_H
+//__________________________________________________________
+///////////////////////////////////////////////////////////////////
+//
+// class AliHBTEvent
+//
+// This class is container for paticles coming from one event
+//
+// more info: http://alisoft.cern.ch/people/skowron/analyzer/index.html
+//
+// Piotr.Skowronski@cern.ch 
+//
+///////////////////////////////////////////////////////////////////
 
 #include <TObject.h>
 
 class AliHBTParticle;
 class TParticle;
-
 class AliHBTEvent: public TObject
  {
   public:
     AliHBTEvent();
     virtual ~AliHBTEvent();
-
+    const static UInt_t fgkInitEventSize; //initial number of the array
+                                          //if expanded, this size is used also
     AliHBTParticle* GetParticle(Int_t n);  //gets particle 
     AliHBTParticle* GetParticleSafely(Int_t n); //gets particle with index check
     
-    void    AddParticle(AliHBTParticle* hbtpart); //adds particle to the event
-    void    AddParticle(TParticle* part); //adds particle to the event
-    void    AddParticle(Int_t pdg, Double_t px, Double_t py, Double_t pz, Double_t etot,
+    void    AddParticle(AliHBTParticle*); //adds particle to the event
+    void    AddParticle(TParticle*, Int_t idx); //adds particle to the event
+    void    AddParticle(Int_t pdg, Int_t idx, Double_t px, Double_t py, Double_t pz, Double_t etot,
                         Double_t vx, Double_t vy, Double_t vz, Double_t time);
     
     Int_t   GetNumberOfParticles() const;
     void    Reset(); //deletes all entries
     void    SetOwner(Bool_t owns = kTRUE){ fOwner = owns; }
-    Bool_t  IsOwner() const {return fOwner;}
-
+    Bool_t  IsOwner() {return fOwner;}
+    void    SetRandomized(Bool_t rd = kTRUE){fRandomized = rd;}
+    Bool_t  IsRandomized()const {return fRandomized;}
   protected:
     Int_t  fSize;       //!current size of the array
     AliHBTParticle ** fParticles; //!array of pointers to the particles
     Int_t  fNParticles; //!number of particles in Event
     Bool_t fOwner;      //flag if that event owns the 
+    Bool_t fRandomized; //!flag indicating if particles positions has been already randomizd
     void   Expand();    //expands the array if necessary
 
   private:
-    const static UInt_t fgkInitEventSize; //initial number of the array
-                                         //if expanded, this size is used also
-  public:
     ClassDef(AliHBTEvent,1)
  };
 /**************************************************************************/