// --- ROOT system ---
#include "TTask.h"
+#include "AliConfig.h"
// --- Standard library ---
// --- 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
+ AliEMCALClusterizer(const TString alirunFileName, const TString eventFolderName = AliConfig::GetDefaultEventFolderName()) ;
+ 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 Float_t GetPreShoClusteringThreshold()const {Warning("GetPreShoClusteringThreshold", "Not Defined") ; return 0. ; }
- virtual Float_t GetPreShoLocalMaxCut()const {Warning("GetPreShoLocalMaxCut", "Not Defined") ; return 0. ; }
- virtual Float_t GetPreShoLogWeight()const {Warning("GetPreShoLogWeight", "Not Defined") ; return 0. ; }
virtual const char * GetRecPointsBranch() const {Warning("GetRecPointsBranch", "Not Defined") ; return 0 ; }
virtual const Int_t GetRecPointsInRun() const {Warning("GetRecPointsInRun", "Not Defined") ; return 0 ; }
virtual const char * GetDigitsBranch() const {Warning("GetDigitsBranch", "Not Defined") ; return 0 ; }
- virtual void MakeClusters() {Warning("MakeClusters", "Not Defined") ; }
- virtual void Print(Option_t * option)const {Warning("Print", "Not Defined") ; }
-
- virtual void SetECClusteringThreshold(Float_t cluth) {Warning("SetECClusteringThreshold", "Not Defined") ; }
- virtual void SetECLocalMaxCut(Float_t cut) {Warning("SetECLocalMaxCut", "Not Defined") ; }
- virtual void SetECLogWeight(Float_t w) {Warning("SetECLogWeight", "Not Defined") ; }
- virtual void SetHCClusteringThreshold(Float_t cluth) {Warning("SetHCLogWeight", "Not Defined") ; }
- virtual void SetHCLocalMaxCut(Float_t cut) {Warning("SetHCLogWeight", "Not Defined") ; }
- virtual void SetHCLogWeight(Float_t w) {Warning("SetHCLogWeight", "Not Defined") ; }
- virtual void SetTimeGate(Float_t gate) {Warning("SetTimeGate", "Not Defined") ; }
- virtual void SetPREShoClusteringThreshold(Float_t cluth) {Warning("SetPREyShoClusteringThreshold", "Not Defined") ; }
- virtual void SetPREShoLocalMaxCut(Float_t cut) {Warning("SetPREShoLocalMaxCut", "Not Defined") ; }
- virtual void SetPREShoLogWeight(Float_t w) {Warning("SetPREShoLogWeight", "Not Defined") ; }
- virtual void SetDigitsBranch(const char * title) {Warning("SetDigitsBranch", "Not Defined") ; }
- virtual void SetRecPointsBranch(const char *title) {Warning("SetRecPointsBranch", "Not Defined") ; }
- virtual void SetUnfolding(Bool_t toUnfold ) {Warning("SetUnfolding", "Not Defined") ; }
+ virtual void MakeClusters() const {Warning("MakeClusters", "Not Defined") ; }
+ virtual void Print(Option_t * /*option*/)const {Warning("Print", "Not Defined") ; }
+
+ 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
} ;