]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCTrackHitsV2.h
Changes to obey the coding rules. Thanks to F. Carminati.
[u/mrichter/AliRoot.git] / TPC / AliTPCTrackHitsV2.h
index 395f5f2e08c2ff01d5739e2a7487a92df2513143..128d5341c7bde60d24c41893d145c0a7ae0c5279 100644 (file)
@@ -26,9 +26,13 @@ class AliTrackHitsParamV2 : public TObject {
   friend class   AliTRDtrackHits;
 
 public:
-  
   AliTrackHitsParamV2();
+  AliTrackHitsParamV2(const AliTrackHitsParamV2 &hit):  TObject(hit)
+    {hit.Copy(*this);}
+  AliTrackHitsParamV2& operator = (const AliTrackHitsParamV2 &hit)
+     {hit.Copy(*this); return (*this);}
   ~AliTrackHitsParamV2();
+
  private:
   Int_t fTrackID; // ID of the track
   Short_t fVolumeID;// volume ID
@@ -42,18 +46,26 @@ public:
   Int_t   fNHits; //nuber of thits
   Short_t * fHitDistance; //[fNHits] array of hits distances
   Short_t * fCharge; //[fNHits] array of charges
-  static Int_t fgCounter1;
-  static Int_t fgCounter2;  
+  static Int_t fgCounter1; //First internal counter
+  static Int_t fgCounter2; // Second internal counter
+
+  void Copy(TObject &) const
+  {Error("Copy","Not Implemented");}
+
   ClassDef(AliTrackHitsParamV2,1)  
 };
 
 
-
 class AliTPCTrackHitsV2 : public TObject {
   friend class AliTPCTempHitInfoV2;
+
 public:
   AliTPCTrackHitsV2(); 
   ~AliTPCTrackHitsV2();
+  AliTPCTrackHitsV2(const AliTPCTrackHitsV2 &hit):  TObject(hit)
+    {hit.Copy(*this);}
+  AliTPCTrackHitsV2& operator = (const AliTPCTrackHitsV2 &hit)
+     {hit.Copy(*this); return (*this);}
   void Clear();
   void AddHitKartez(Int_t volumeID, Int_t trackID, Double_t x, 
                    Double_t y, Double_t z,Int_t q);
@@ -62,21 +74,23 @@ public:
  
   Bool_t First(); //set current hit to first hit 
   Bool_t Next();  //set current hit to next
-  AliHit * GetHit();
+  AliHit * GetHit() const;
   AliTrackHitsParamV2 * GetParam();
 
   TClonesArray * GetArray(){return fArray;}
-  Int_t  GetEntriesFast() { return fSize;}
+  Int_t  GetEntriesFast() const { return fSize;}
   void SetHitPrecision(Double_t prec) {fPrecision=prec;}
   void SetStepPrecision(Double_t prec) {fStep=prec;}
   void SetMaxDistance(UInt_t distance) {fMaxDistance = distance;}
   Bool_t  FlushHitStack(Bool_t force=kTRUE);    //
   Int_t *  GetVolumes(){ return fVolumes;}
-  Int_t GetNVolumes(){return fNVolumes;}
+  Int_t GetNVolumes() const {return fNVolumes;}
+
 public:
   void AddVolume(Int_t volume); //add volumes to tthe list of volumes
   void FlushHitStack2(Int_t index1, Int_t index2);   //
- protected:
+
+protected:
   TClonesArray * fArray;  //array of compressed hits
   Int_t fSize;            //total number of hits in track
   Double_t fPrecision;  // required precision
@@ -89,8 +103,14 @@ public:
   AliHit * fHit;                     //! current hit information
   static const Double_t fgkPrecision;  //precision 
   static const Double_t fgkPrecision2;  //precision
-  static Int_t fgCounter1;
-  static Int_t fgCounter2;  
+  static Int_t fgCounter1; // First internal counter
+  static Int_t fgCounter2; // Second internal counter
+
+private:
+  void Copy(TObject &) const
+  {Error("Copy","Not Implemented");}
+
+
   ClassDef(AliTPCTrackHitsV2,1) 
 };