]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALPID.h
change default max distance R to 0.1
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALPID.h
index d35f0ad917b8a073e88185faa932332b2fa5dfcf..80455b36f887b10bf61a72771fbefaa2afc8ecb0 100644 (file)
@@ -1,55 +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" 
-class TFormula ;
-class TClonesArray ;
 
-// --- Standard library ---
-
-// --- AliRoot header files ---
+/* $Id$ */
 
-class AliEMCALGeometry ;
-class AliEMCALClusterizer ;
-class AliEMCALTrackSegmentMaker ;
+///////////////////////////////////////////////////////////////////////////////
+// Class AliEMCALPID
+// Compute PID weights for all the clusters
+///////////////////////////////////////////////////////////////////////////////
 
-class AliEMCALPID : public TTask {
+//Root includes
+class TArrayD ;
 
- public:
+//AliRoot includes
+class AliESDEvent ;
+#include "AliEMCALPIDUtils.h" 
 
-  AliEMCALPID() ;          // ctor            
-  AliEMCALPID(const char* headerFile,const char * name, const Bool_t toSplit) ;
-  virtual ~AliEMCALPID() ; // dtor
+class AliEMCALPID : public AliEMCALPIDUtils {
 
-  virtual void Exec(Option_t * option) { Warning("Exec", "not defined" ) ; }
-  virtual const Int_t GetRecParticlesInRun()  const { Warning("GetRecParticlesInRun", "not defined" ) ; return 0 ;} 
-  virtual void Print(Option_t * option) const { Warning("Print", "not defined" ) ;}
-  virtual void SetCpvtoEmcDistanceCut(Float_t Cluster_En, TString Eff_Pur,Float_t cut ) { Warning("SetCpvtoEmcDistanceCut", "not defined" ) ;}
-  virtual void SetTimeGate(Float_t Cluster_En, TString Eff_Pur, Float_t gate) { Warning("SetTimeGate", "not defined" ) ; }
-  virtual const char * Version() const { Warning("Version", "not defined" ) ; return 0 ; }  
-  virtual void WriteRecParticles(Int_t event) { Warning("WriteRecParticles", "not defined" ) ; }
+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)
 
-private: 
-  virtual void Init() { Warning("Init", "not defined" ) ; } 
+};
 
-protected:
 
-  TFile * fSplitFile ;             //! file in which RecParticles will eventually be stored
-  Bool_t  fToSplit   ;             //! do we in the split mode  
-  ClassDef(AliEMCALPID,1)  // Particle Identifier algorithm (base class)
+#endif // ALIEMCALPID_H
 
-} ;
 
-#endif // ALIEMCALPID_H