]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSvImpacts.h
New class wrapping the access of files in the AliEn catalogue
[u/mrichter/AliRoot.git] / PHOS / AliPHOSvImpacts.h
index 099ff5672c1e85bfa8702e6fa63adf8273d88ba8..5eac3e04dc77291dcdd120af1148acf3bcbdf7dd 100644 (file)
@@ -27,16 +27,15 @@ public:
 
   AliPHOSvImpacts(void) ;
   AliPHOSvImpacts(const char *name, const char *title="") ;
-  AliPHOSvImpacts(const AliPHOSvImpacts & phos) {
-    // cpy ctor: no implementation yet
-    // requested by the Coding Convention
-    Fatal("cpy ctor", "not implemented") ;
+  AliPHOSvImpacts(AliPHOSvImpacts & phos) : AliPHOSv1(phos) {
+    phos.Copy(*this) ; 
   }
   virtual ~AliPHOSvImpacts(void) ;
 
-  virtual void   AddImpact(char* detector, Int_t shunt, Int_t primary, Int_t track,
+  virtual void   Copy(AliPHOSvImpacts & phos) ; 
+  virtual void   AddImpact(const char* detector, Int_t shunt, Int_t primary, Int_t track,
                           Int_t module, Int_t pid, TLorentzVector p, Float_t *xyz) ;
-  virtual void   MakeBranch(Option_t *opt=" ", const char *file=0) ;
+  virtual void   MakeBranch(Option_t *opt=" ");
   virtual void   ResetHits();
   virtual Int_t  IsVersion(void) const {
     // Gives the version number 
@@ -48,7 +47,7 @@ public:
     return TString("vImpacts") ; 
   }
 
-  AliPHOSvImpacts & operator = (const AliPHOSvImpacts & rvalue)  {
+  AliPHOSvImpacts & operator = (const AliPHOSvImpacts & /*rvalue*/)  {
     // assignement operator requested by coding convention but not needed
     Fatal("operator =", "not implemented") ;
     return *this ;