]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSv0.h
Fix compiler problems
[u/mrichter/AliRoot.git] / PHOS / AliPHOSv0.h
index e828d539873b77ae07ea25615e57c00a9d456b4a..675f10139302ce6da0bebbadd0006c2c64a1d776 100644 (file)
@@ -3,6 +3,13 @@
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
+/* $Id$ */
+
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
 //_________________________________________________________________________
 // Implementation version v0 of PHOS Manager class 
 // Layout EMC + CPV  has name IHEP
@@ -23,16 +30,19 @@ class AliPHOSv0 : public AliPHOS {
 
   AliPHOSv0() {}
   AliPHOSv0(const char *name, const char *title="") ;
-  AliPHOSv0(const AliPHOSv0 & phos) {
-    // cpy ctor: no implementation yet
-    // requested by the Coding Convention
-    Fatal("cpy ctor", "not implemented") ;
+  AliPHOSv0(AliPHOSv0 & phos) : AliPHOS(phos) {
+    phos.Copy(*this) ; 
   } 
   virtual ~AliPHOSv0(void){
     // dtor
   } 
+  virtual void Copy(TObject &phos) const; 
 
-  virtual void   AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits ) {
+//    virtual void   AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits ) {
+  //this function is not a final-overrider for AliPHOS::AddHit, to
+  //supress warning, I use using-declaration :)
+  using AliPHOS::AddHit;
+  virtual void   AddHit( Int_t, Int_t, Int_t, Int_t, Float_t*) {
     // useless since there are no hits
     Fatal("AddHit", "not to be used with v0") ;
   }
@@ -58,7 +68,7 @@ class AliPHOSv0 : public AliPHOS {
     return TString("v0") ; 
   }
   
-  AliPHOSv0 & operator = (const AliPHOSv0 & rvalue)  {
+  AliPHOSv0 & operator = (const AliPHOSv0 & /*rvalue*/)  {
     // assignement operator requested by coding convention but not needed
     Fatal("operator =", "not implemented") ;
     return *this ;