]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliPoints.h
Now the full chain includes raw data.
[u/mrichter/AliRoot.git] / STEER / AliPoints.h
index 031b119b77f14ca712649f3285e6e8c32899f28a..90a15d5785e6e3540ec838ee8c5f6aec8ad63adb 100644 (file)
@@ -1,32 +1,45 @@
-#ifndef AliPoints_H
-#define AliPoints_H
+#ifndef ALIPOINTS_H
+#define ALIPOINTS_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id$ */
+
+// This class contains the points
+// that are used for the ALICE
+// event display
 
 #include "TPolyMarker3D.h"
-#include "AliDetector.h"
-#include "GParticle.h"
+class AliDetector;
+class TParticle;
 
 class AliPoints : public TPolyMarker3D {
-protected:
-   AliDetector     *fDetector;    //Pointer to AliDetector object
-   Int_t            fIndex;       //Particle number in AliRun::fParticles
-
 public:
   AliPoints();
+  AliPoints(const AliPoints& pts);
   AliPoints(Int_t nhits);
   virtual ~AliPoints();
   virtual Int_t         DistancetoPrimitive(Int_t px, Int_t py);
   virtual void          ExecuteEvent(Int_t event, Int_t px, Int_t py);
-  AliDetector          *GetDetector() {return fDetector;}
-  Int_t                 GetIndex() {return fIndex;}
-  GParticle            *GetParticle() const;
+  AliDetector          *GetDetector() const {return fDetector;}
+  Int_t                 GetIndex() const {return fIndex;}
+  TParticle            *GetParticle() const;
   virtual const Text_t *GetName() const;
-  virtual void          InspectParticle(); // *MENU*
-  virtual void          DumpParticle(); // *MENU*
-  virtual Text_t       *GetObjectInfo(Int_t px, Int_t py);
+  virtual void          InspectParticle() const; // *MENU*
+  virtual void          DumpParticle() const; // *MENU*
+  virtual Text_t       *GetObjectInfo(Int_t px, Int_t py) const;
+  AliPoints &           operator=(const AliPoints &pts)
+    {pts.Copy(*this); return (*this);}
   virtual void          Propagate(); // *MENU*
   virtual void          SetDetector(AliDetector *det) {fDetector = det;}
   virtual void          SetParticle(Int_t index) {fIndex = index;}
   
+protected:
+  void Copy(TObject &pts) const;
+
+  AliDetector     *fDetector;    //Pointer to AliDetector object
+  Int_t            fIndex;       //Particle number in AliRun::fParticles
+
   ClassDef(AliPoints,1) //Class to draw detector hits (is PolyMarker3D)
 };
 #endif