]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSvFast.h
Coding convention
[u/mrichter/AliRoot.git] / PHOS / AliPHOSvFast.h
index 8b2cdbd56e60201ace5b205893a85dd15022bfdf..739bb16323ac5293eb2fc8da03a96c6f256f9675 100644 (file)
@@ -16,7 +16,6 @@
 
 // --- ROOT system ---
 //#include "TClonesArray.h"
-#include <assert.h>
 #include "TRandom.h"
 
 class TVector3 ;
@@ -33,13 +32,12 @@ public:
 
   AliPHOSvFast() ;
   AliPHOSvFast(const char *name, const char *title="") ;
-  AliPHOSvFast(const AliPHOSvFast & fast) : AliPHOS(fast) {
-    // cpy ctor: no implementation yet
-    // requested by the Coding Convention
-    assert(0==1) ; 
+  AliPHOSvFast(AliPHOSvFast & fast) : AliPHOS(fast) {
+    fast.Copy(*this) ; 
   }
   virtual ~AliPHOSvFast(void) ;
 
+  virtual void Copy(AliPHOSvFast & fast) ; 
   void           AddRecParticle(const AliPHOSFastRecParticle & rp) ; // adds primary particle to the RecParticles list
   virtual void   BuildGeometry(void) ;                               // creates the geometry for the ROOT display
   virtual void   CreateGeometry(void) ;                              // creates the geometry for GEANT
@@ -51,10 +49,10 @@ public:
   }
 
   void    MakeBranch(Option_t* opt);
-  Double_t MakeEnergy(const Double_t energy) ;                       // makes the detected energy    
-  TVector3 MakePosition(const Double_t energy, const TVector3 pos, const Double_t th, const Double_t ph) ; 
+  Double_t MakeEnergy(Double_t energy) ;                       // makes the detected energy    
+  TVector3 MakePosition(Double_t energy, TVector3 pos, Double_t th, Double_t ph) ; 
                                                                      // makes the detected position
-  void MakeRecParticle(const Int_t modid, const TVector3 pos, AliPHOSFastRecParticle & rp) ;  // makes a reconstructes particle from primary
+  void MakeRecParticle(Int_t modid, TVector3 pos, AliPHOSFastRecParticle & rp) ;  // makes a reconstructes particle from primary
   Int_t   MakeType(AliPHOSFastRecParticle & rp) ;                    // gets the detected type of particle
   // gets TClonesArray of reconstructed particles
   TClonesArray * FastRecParticles() const { return fFastRecParticles ; } 
@@ -70,9 +68,7 @@ public:
   }
 
   AliPHOSvFast & operator = (const AliPHOSvFast & )  {
-    // assignement operator requested by coding convention but not needed
-    assert(0==1) ;
-    return *this ; 
+    Fatal("operator =", "not implemented") ; return *this ; 
   }
   
 private: