/* $Id$ */
+/* History of cvs commits:
+ *
+ * $Log$
+ * Revision 1.37 2006/08/29 11:41:19 kharlov
+ * Missing implementation of ctors and = operator are added
+ *
+ * Revision 1.36 2006/08/25 16:00:53 kharlov
+ * Compliance with Effective C++AliPHOSHit.cxx
+ *
+ * Revision 1.35 2005/05/28 14:19:04 schutz
+ * Compilation warnings fixed by T.P.
+ *
+ */
+
//_________________________________________________________________________
// Algorithm class for the identification of particles detected in PHOS
// base class
// --- ROOT system ---
-#include "TTask.h"
+#include "TTask.h"
+#include "AliConfig.h"
+
class TFormula ;
class TClonesArray ;
// --- Standard library ---
-#include <Riostream.h>
-
// --- AliRoot header files ---
-
+class AliESD ;
class AliPHOSGeometry ;
class AliPHOSClusterizer ;
class AliPHOSTrackSegmentMaker ;
public:
AliPHOSPID() ; // ctor
- AliPHOSPID(const char* headerFile,const char * name, const Bool_t toSplit) ;
+ AliPHOSPID (const TString alirunFileName, const TString eventFolderName = AliConfig::GetDefaultEventFolderName()) ;
+ AliPHOSPID(const AliPHOSPID & pid) ;
virtual ~AliPHOSPID() ; // dtor
+ AliPHOSPID & operator = (const AliPHOSPID & /*rvalue*/) {
+ Fatal("operator =", "not implemented") ; return *this ; }
- virtual void Exec(Option_t * option) { cout << "AliPHOSPID::Exec not define " << endl ; }
- // virtual char * GetRecParticlesBranch()const { cout << "AliPHOSPID::GetRecParticlesBranch not defined " << endl ; return 0 ; }
- // virtual char * GetTrackSegmentsBranch()const { cout << "AliPHOSPID::GetTrackSegmentsBranch not defined " << endl ; return 0 ; }
- virtual const Int_t GetRecParticlesInRun() const { cout << "AliPHOSPID:::GetRecParticlesInRun not defined " << endl ; return 0 ;}
- virtual void Print(Option_t * option) const { cout << "AliPHOSPID::Print not defined " << endl ;}
- //virtual void PlotDispersionCuts()const = 0;
- //virtual void SetIdentificationMethod(char * option) = 0 ;
- //virtual void SetShowerProfileCut(char * formula) = 0 ;
- //virtual void SetDispersionCut(Float_t cut) = 0 ;
- virtual void SetCpvtoEmcDistanceCut(Float_t Cluster_En, TString Eff_Pur,Float_t cut ) { cout << "AliPHOSPID::SetCpvtoEmcDistanceCut not defined " << endl ;}
- virtual void SetTimeGate(Float_t Cluster_En, TString Eff_Pur, Float_t gate) { cout << "AliPHOSPID::SetTimeGate not defined " << endl ; }
- // virtual void SetTrackSegmentsBranch(const char* title) { cout << "AliPHOSPID::Exec not define " << endl ; }
- // virtual void SetRecParticlesBranch (const char* title) { cout << "AliPHOSPID::SetTecParticlesBranch not defined " << endl ; }
- // virtual void SetSplitFile(const TString splitFileName = "PHOS.RecData.root") const ;
- virtual const char * Version() const { cout << "AliPHOSPID::Version not defined " << endl ; return 0 ; }
- virtual void WriteRecParticles(Int_t event) { cout << "AliPHOSPID::WriteRecParticles not defined " << endl ; }
+ virtual Int_t GetRecParticlesInRun() const { Warning("GetRecParticlesInRun", "not defined" ) ; return 0 ;}
+ virtual void Print(const Option_t * = "") const { Warning("Print", "not defined" ) ;}
-private:
- virtual void Init() { cout << "AliPHOSPID::Init not define " << endl ; }
+ void SetEventRange(Int_t first=0, Int_t last=-1) {fFirstEvent=first; fLastEvent=last; }
+ void SetEventFolderName(TString name) { fEventFolderName = name ; }
+
+ TString GetEventFolderName() const {return fEventFolderName;}
+ Int_t GetFirstEvent() const {return fFirstEvent; }
+ Int_t GetLastEvent() const {return fLastEvent; }
+
+ void SetESD(AliESD *esd) { fESD = esd; }
+
+ virtual const char * Version() const { Warning("Version", "not defined" ) ; return 0 ; }
+ virtual void WriteRecParticles() = 0;
protected:
+ TString fEventFolderName ; // event folder name
+ Int_t fFirstEvent; // first event to process
+ Int_t fLastEvent; // last event to process
+ AliESD * fESD; //! ESD object
+
+private:
+ virtual void Init() { Warning("Init", "not defined" ) ; }
- TFile * fSplitFile ; //! file in which RecParticles will eventually be stored
- Bool_t fToSplit ; //! do we in the split mode
- ClassDef(AliPHOSPID,1) // Particle Identifier algorithm (base class)
+ ClassDef(AliPHOSPID,4) // Particle Identifier algorithm (base class)
} ;