]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSv2.h
TFlukaCerenkov added.
[u/mrichter/AliRoot.git] / PHOS / AliPHOSv2.h
index 487b3da5e8412be972f29013e3ec9301b585008e..16236c87c42ee18a0635aabf1ba72c0a650006e2 100644 (file)
@@ -4,16 +4,15 @@
  * See cxx source for full Copyright notice                               */
 //_________________________________________________________________________
 // Version of AliPHOSv0 which keeps all hits in TreeH
+// I mean real hits not cumulated hits
 //  This version is NOT recommended for Reconstruction analysis
 //                  
 //*-- Author: Gines MARTINEZ (SUBATECH)
 
 // --- ROOT system ---
-#include "TClonesArray.h"
 
 // --- AliRoot header files ---
 #include "AliPHOSv1.h"
-#include "AliPHOSReconstructioner.h"
 
 class AliPHOSv2 : public AliPHOSv1 {
 
@@ -21,12 +20,21 @@ public:
 
   AliPHOSv2(void) ;
   AliPHOSv2(const char *name, const char *title="") ;
+  AliPHOSv2(AliPHOSv2 & phos) : AliPHOSv1(phos){
+    phos.Copy(*this) ; 
+  }
   virtual ~AliPHOSv2(void) ;
 
-  virtual void   AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits ) ; 
-// adds a hit to the hit tree (any pre=digitalization is done here (so large root file !!) 
-  virtual void    FinishEvent(void) ;          // makes the digits from the hits 
-  virtual void    StepManager(void) ;  // StepManager to keep current tack number in the hit
+  virtual void    Copy(AliPHOSv2 & phos) ; 
+  virtual void    AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits); 
+  virtual Int_t   IsVersion(void) const { 
+    // Gives the version number 
+    return 2 ; 
+  }
+  virtual const TString Version(void)const { 
+    // returns the version number 
+    return TString("v2") ; 
+  }
 
 protected: