]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSv2.h
Obsolete class AliPHOSAnalyze is removed.
[u/mrichter/AliRoot.git] / PHOS / AliPHOSv2.h
index 9e0590cc9dca71bc34fbd8a465e05564643624ff..abda045f4096188fedc1b1d444f6dab2e6f9be4a 100644 (file)
@@ -1,51 +1,57 @@
 #ifndef ALIPHOSV2_H
 #define ALIPHOSV2_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+/* Copyright(c) 1998-1999-2000, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
+/* $Id$ */
+
+/* History of cvs commits:
+ *
+ * $Log$
+ * Revision 1.19  2005/07/01 20:01:36  kharlov
+ * Warning fix on AddHit in gcc 3.4.2
+ *
+ * Revision 1.18  2005/05/28 14:19:05  schutz
+ * Compilation warnings fixed by T.P.
+ *
+ */
+
 //_________________________________________________________________________
-// Implementation version v0 of PHOS Manager class 
-// Layout EMC + PPSD has name GPS2  
-// The main goal of this version of AliPHOS is to calculte the 
-//  induced charged in the PIN diode, taking into account light
-//  tracking in the PbWO4 crystal, induced signal in the 
-//  PIN due to MIPS particle and electronic noise.
-// This is done in the StepManager 
+// 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:  Odd Harald Oddland & Gines Martinez (SUBATECH)
+//*-- Author: Gines MARTINEZ (SUBATECH)
 
 // --- ROOT system ---
 
-
 // --- AliRoot header files ---
-#include "AliPHOSv0.h"
+#include "AliPHOSv1.h"
 
-
-class AliPHOSv2 : public AliPHOSv0 {
+class AliPHOSv2 : public AliPHOSv1 {
 
 public:
 
-  AliPHOSv2(void) : AliPHOSv0() {
-    // ctor
-  }
+  AliPHOSv2(void) ;
   AliPHOSv2(const char *name, const char *title="") ;
-  AliPHOSv2(AliPHOSReconstructioner * Reconstructioner, const char *name, const char *title="") ;
-  virtual ~AliPHOSv2(void) {
-    // dtor
-  } 
-                            
-  virtual void   StepManager(void) ;                                // does the tracking through PHOS and a preliminary digitalization
-  
+  virtual ~AliPHOSv2(void) ;
+
+  using AliPHOSv1::AddHit;
+  virtual void    AddHit( Int_t shunt, Int_t primary, 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") ; 
+  }
+
 private:
-  
-  Float_t fLightYieldMean ;         // Mean lightyield in the PbOW4 xtal per GeV (Poisson distribution)
-  Float_t fIntrinsicPINEfficiency ; // Photo efficiency of the PIN diode   
-  Float_t fLightYieldAttenuation ;  // Attenuation of the light through the crystal
-  Float_t fRecalibrationFactor ;    // Recalibration factor
-  Float_t fElectronsPerGeV ;        // Number of electrons per GeV created in the PIN by a ionizing particle
-
-  ClassDef(AliPHOSv2,1)  // Implementation of PHOS manager class for layout EMC+PPSD with light transport, MIPS in PIN and electronic noise
+
+  AliPHOSv2(AliPHOSv2 & phos);
+
+  ClassDef(AliPHOSv2,1)  // Class AliPHOSv0 which allows to write ond disk al the information of the hits. 
 
 };