]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSv1.h
a macro with TPC,ITS, ITSSPD vertex, global vertex and v0's
[u/mrichter/AliRoot.git] / PHOS / AliPHOSv1.h
index f4a4d358653cb8cf195e18ded33c5c88f308d63b..e0ffa0e1ce54eed5d1a974c443d97287e4536b17 100644 (file)
@@ -1,29 +1,66 @@
-#ifndef PHOSv1_H
-#define PHOSv1_H
+#ifndef ALIPHOSV1_H
+#define ALIPHOSV1_H
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
 /* $Id$ */
 
-////////////////////////////////////////////////////////
-//  Manager and hits classes for set:PHOS version 1   //
-////////////////////////////////////////////////////////
+/* History of cvs commits:
+ *
+ * $Log$
+ * Revision 1.40  2006/09/13 07:31:01  kharlov
+ * Effective C++ corrections (T.Pocheptsov)
+ *
+ * Revision 1.39  2005/05/28 14:19:05  schutz
+ * Compilation warnings fixed by T.P.
+ *
+ */
 
-// --- galice header files ---
-#include "AliPHOS.h"
-class AliPHOSv1 : public AliPHOS {
+//_________________________________________________________________________
+// Implementation version v1 of PHOS Manager class 
+// Layout EMC + CPV  has name IHEP
+//--                  
+//-- Author: Yves Schutz (SUBATECH)
 
- public:
-                        AliPHOSv1();
-                        AliPHOSv1(const char *name, const char *title);
-  virtual              ~AliPHOSv1(){}
-  virtual void          CreateGeometry();
-  virtual Int_t         IsVersion() const {return 1;}
-  virtual void          StepManager();
+// --- ROOT system ---
+class TClonesArray ;
+class TFile;
+#include <TLorentzVector.h>
+
+// --- AliRoot header files ---
+#include "AliPHOSv0.h"
+
+class AliPHOSv1 : public AliPHOSv0 {
+
+public:
+
+  AliPHOSv1(void) ;
+  AliPHOSv1(const char *name, const char *title="") ;
+  virtual ~AliPHOSv1(void) ;
+
+  using AliPHOSv0::AddHit;
+  virtual void   AddHit( Int_t shunt, Int_t primary, Int_t id, Float_t *hits) ; 
+  virtual void   FinishEvent() ;
+  virtual void   FinishPrimary() ;
+  virtual Int_t  IsVersion(void) const {
+    // Gives the version number 
+    return 1 ; 
+  }
+
+  virtual void   StepManager(void) ;                              
+  virtual const TString Version(void)const { return TString("v1") ;  }
+
+  void       CPVDigitize (TLorentzVector p, Float_t *xy, TClonesArray *digits) ;
+  Float_t    CPVPadResponseFunction(Float_t qhit, Float_t zg, Float_t xg) ;
+  Double_t   CPVCumulPadResponse(Double_t x, Double_t y) ;
+
+ private:
+  AliPHOSv1(AliPHOSv1 & phos);
+  AliPHOSv1 & operator = (const AliPHOSv1 & /*rvalue*/);
+  TClonesArray fCPVDigits; //! Array of CPV digits per current CPV hit
+
+  ClassDef(AliPHOSv1,5)  // Implementation of PHOS manager class for layout EMC+PPSD
 
- ClassDef(AliPHOSv1,1)  //Hits manager for set:PHOS version 1
 };
-#endif
 
+#endif // AliPHOSV1_H