]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALPID.h
put different cluster parameters (time, n cells, n SM) in the AOD particle, recover...
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALPID.h
index 9698e20db493421f99ae7ec9e2650fbb428aed98..80455b36f887b10bf61a72771fbefaa2afc8ecb0 100644 (file)
@@ -1,60 +1,41 @@
 #ifndef ALIEMCALPID_H
 #define ALIEMCALPID_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-                            
-/* $Id$ */
-
-//_________________________________________________________________________
-//  Algorithm class for the identification of particles detected in EMCAL        
-//  base  class                             
-//  of identified particles                
-//*-- Author: Yves Schutz (SUBATECH)
-
-// --- ROOT system ---
-
-#include "TTask.h" 
-#include "AliConfig.h"
-class TFormula ;
-class TClonesArray ;
 
-// --- Standard library ---
+/* $Id$ */
 
-// --- AliRoot header files ---
+///////////////////////////////////////////////////////////////////////////////
+// Class AliEMCALPID
+// Compute PID weights for all the clusters
+///////////////////////////////////////////////////////////////////////////////
 
-class AliEMCALGeometry ;
-class AliEMCALClusterizer ;
-class AliEMCALTrackSegmentMaker ;
+//Root includes
+class TArrayD ;
 
-class AliEMCALPID : public TTask {
+//AliRoot includes
+class AliESDEvent ;
+#include "AliEMCALPIDUtils.h" 
 
- public:
+class AliEMCALPID : public AliEMCALPIDUtils {
 
-  AliEMCALPID() ;          // ctor            
-  AliEMCALPID(const TString alirunFileName, const TString eventFolderName = AliConfig::fgkDefaultEventFolderName) ;
-  AliEMCALPID(const AliEMCALPID & pid):TTask(pid) {;} 
-  virtual ~AliEMCALPID() ; // dtor
+public:
+  
+  AliEMCALPID();
+  AliEMCALPID(Bool_t reconstructor);
+  //virtual ~AliEMCALPID() { }
+  
+  void    RunPID(AliESDEvent *esd);
+  void    InitParameters();
+  void    SetReconstructor(Bool_t yesno) {fReconstructor = yesno;}
+       
+ private:
+  
+  Bool_t   fReconstructor;                // Fill esdcalocluster when called from EMCALReconstructor
+  
+  ClassDef(AliEMCALPID, 5)
 
-  virtual void Exec(Option_t *) = 0;
-  virtual const Int_t GetRecParticlesInRun()  const { Warning("GetRecParticlesInRun", "not defined" ) ; return 0 ;} 
-  virtual void Print() const { Warning("Print", "not defined" ) ;}
-  void SetEventRange(Int_t first=0, Int_t last=-1) {fFirstEvent=first; fLastEvent=last; }
-  void SetEventFolderName(TString name) { fEventFolderName = name ; }
-  virtual void SetPREtoECADistanceCut(Float_t, TString, Float_t) { Warning("SetCpvtoEmcDistanceCut", "not defined" ) ;}
-  virtual void SetTimeGate(Float_t /*Cluster_En*/, TString /*Eff_Pur*/, Float_t /*gate*/) { Warning("SetTimeGate", "not defined" ) ; }
-  virtual char * Version() const { Warning("Version", "not defined" ) ; return 0 ; }  
-  virtual void WriteRecParticles() = 0;
+};
 
-private: 
-  virtual void Init() { Warning("Init", "not defined" ) ; } 
 
-protected:
-  TString fEventFolderName ;  // event folder name
-  Int_t   fFirstEvent;        // first event to process
-  Int_t   fLastEvent;         // last  event to process
-  ClassDef(AliEMCALPID,3)  // Particle Identifier algorithm (base class)
+#endif // ALIEMCALPID_H
 
-} ;
 
-#endif // ALIEMCALPID_H