// --- ROOT system ---
#include "TTask.h"
+#include "AliConfig.h"
// --- Standard library ---
-#include <iostream.h>
// --- AliRoot header files ---
-//#include "AliEMCALDigit.h"
-
class AliEMCALClusterizer : public TTask {
public:
AliEMCALClusterizer() ; // default ctor
- AliEMCALClusterizer(const char * headerFile, const char * name, const Bool_t toSplit) ;
- virtual ~AliEMCALClusterizer() ; // dtor
-
- virtual Float_t GetTowerClusteringThreshold()const {cout << "Not Defined" << endl ; return 0. ; }
- virtual Float_t GetTowerLocalMaxCut()const {cout << "Not Defined" << endl ; return 0. ; }
- virtual Float_t GetTowerLogWeight()const {cout << "Not Defined" << endl ; return 0. ; }
- virtual Float_t GetTimeGate() const {cout << "Not Defined" << endl ; return 0. ; }
- virtual Float_t GetPreShoClusteringThreshold()const {cout << "Not Defined" << endl ; return 0. ; }
- virtual Float_t GetPreShoLocalMaxCut()const {cout << "Not Defined" << endl ; return 0. ; }
- virtual Float_t GetPreShoLogWeight()const {cout << "Not Defined" << endl ; return 0. ; }
- virtual const char * GetRecPointsBranch() const {cout << "Not Defined" << endl ; return 0 ; }
- virtual const Int_t GetRecPointsInRun() const {cout << "Not Defined" << endl ; return 0 ; }
- virtual const char * GetDigitsBranch() const {cout << "Not Defined" << endl ; return 0 ; }
-
- virtual void MakeClusters() {cout << "Not Defined" << endl ; }
- virtual void Print(Option_t * option)const {cout << "Not Defined" << endl ; }
-
- virtual void SetTowerClusteringThreshold(Float_t cluth) {cout << "Not Defined" << endl ; }
- virtual void SetTowerLocalMaxCut(Float_t cut) {cout << "Not Defined" << endl ; }
- virtual void SetTowerLogWeight(Float_t w) {cout << "Not Defined" << endl ; }
- virtual void SetTimeGate(Float_t gate) {cout << "Not Defined" << endl ; }
- virtual void SetPreShoClusteringThreshold(Float_t cluth) {cout << "Not Defined" << endl ; }
- virtual void SetPreShoLocalMaxCut(Float_t cut) {cout << "Not Defined" << endl ; }
- virtual void SetPreShoLogWeight(Float_t w) {cout << "Not Defined" << endl ; }
- virtual void SetDigitsBranch(const char * title) {cout << "Not Defined" << endl ; }
- virtual void SetRecPointsBranch(const char *title) {cout << "Not Defined" << endl ; }
- virtual void SetUnfolding(Bool_t toUnfold ) {cout << "Not Defined" << endl ; }
- virtual const char * Version() const {cout << "Not Defined" << endl ; return 0 ; }
+ AliEMCALClusterizer(const TString alirunFileName, const TString eventFolderName = AliConfig::GetDefaultEventFolderName()) ;
+ AliEMCALClusterizer(const AliEMCALClusterizer &); //copy ctor
+ virtual ~AliEMCALClusterizer() ; // dtorEM
+
+ virtual Float_t GetTowerClusteringThreshold()const {Warning("GetTowerClusteringThreshold", "Not Defined") ; return 0. ; }
+ virtual Float_t GetTowerLocalMaxCut()const {Warning("GetTowerLocalMaxCut", "Not Defined") ; return 0. ; }
+ virtual Float_t GetTowerLogWeight()const {Warning("GetTowerLogWeight", "Not Defined") ; return 0. ; }
+ virtual Float_t GetTimeGate() const {Warning("GetTimeGate", "Not Defined") ; return 0. ; }
+ virtual const char * GetRecPointsBranch() const {Warning("GetRecPointsBranch", "Not Defined") ; return 0 ; }
+ virtual Int_t GetRecPointsInRun() const {Warning("GetRecPointsInRun", "Not Defined") ; return 0 ; }
+ virtual const char * GetDigitsBranch() const {Warning("GetDigitsBranch", "Not Defined") ; return 0 ; }
+
+ virtual void MakeClusters() = 0;
+
+ virtual void SetECAClusteringThreshold(Float_t) = 0;
+ virtual void SetECALocalMaxCut(Float_t) = 0;
+ virtual void SetECALogWeight(Float_t) = 0;
+ virtual void SetTimeGate(Float_t) = 0;
+ virtual void SetUnfolding(Bool_t) = 0;
+ void SetEventRange(Int_t first=0, Int_t last=-1) {fFirstEvent=first; fLastEvent=last; }
+ void SetEventFolderName(TString name) { fEventFolderName = name ; }
+
+ AliEMCALClusterizer & operator = (const AliEMCALClusterizer & /*rvalue*/) {return *this ;}
+
+ virtual const char * Version() const {Warning("Version", "Not Defined") ; return 0 ; }
protected:
-
- TFile * fSplitFile ; //! file in which RecPoints will eventually be stored
- Bool_t fToSplit ; //! Should we write to splitted file
+ TString fEventFolderName ; // event folder name
+ Int_t fFirstEvent; // first event to process
+ Int_t fLastEvent; // last event to process
- ClassDef(AliEMCALClusterizer,2) // Clusterization algorithm class
+ ClassDef(AliEMCALClusterizer,4) // Clusterization algorithm class
} ;