#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 * 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" ) ;}
- void SetEventFolderName(TString name) { fEventFolderName = name ; }
- virtual void SetPREtoECADistanceCut(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" ) ; }
+};
-private:
- virtual void Init() { Warning("Init", "not defined" ) ; }
-protected:
- TString fEventFolderName ; // event folder name
-
- ClassDef(AliEMCALPID,3) // Particle Identifier algorithm (base class)
+#endif // ALIEMCALPID_H
-} ;
-#endif // ALIEMCALPID_H