#define ALIPHOSCLUSTERIZER_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
+
+/* $Id$ */
-////////////////////////////////////////////////
-// Algorithme class for the clusterization //
-// interface class //
-// Version SUBATECH //
-// Author Yves Schutz SUBATECH //
-// //
-// pABC //
-////////////////////////////////////////////////
-
+//_________________________________________________________________________
+// Base class for the clusterization algorithm
+//*-- Author: Yves Schutz (SUBATECH) & Dmitri Peressounko (SUBATECH & Kurchatov Institute)
// --- ROOT system ---
-#include "TObject.h"
-#include "TClonesArray.h"
+#include "TTask.h"
// --- Standard library ---
// --- AliRoot header files ---
+//#include "AliPHOSDigit.h"
-typedef TClonesArray RecPointsList ; // a cluster has a variable size (see ROOT FAQ)
-typedef TClonesArray DigitsList ; //for digits saved on disk
-
-class AliPHOSClusterizer : public TObject {
+class AliPHOSClusterizer : public TTask {
public:
- AliPHOSClusterizer() ; // ctor
+ AliPHOSClusterizer() ; // default ctor
+ AliPHOSClusterizer(const char * headerFile, const char * name, const Bool_t toSplit) ;
+ AliPHOSClusterizer(const AliPHOSClusterizer & clusterizer) {
+ // copy ctor: no implementation yet
+ Fatal("cpy ctor", "not implemented") ;
+ }
virtual ~AliPHOSClusterizer() ; // dtor
- virtual Float_t Calibrate(Int_t Amp) = 0 ;
- virtual void GetNumberOfClustersFound(Int_t * numb) = 0 ;
- virtual void MakeClusters(const DigitsList * dl, RecPointsList * emccl, RecPointsList * ppsdl) = 0 ;
+ virtual Float_t GetEmcClusteringThreshold()const {Warning("GetEmcClusteringThreshold", "Not Defined" ) ; return 0. ; }
+ virtual Float_t GetEmcLocalMaxCut()const {Warning("GetEmcLocalMaxCut", "Not Defined" ) ; return 0. ; }
+ virtual Float_t GetEmcLogWeight()const {Warning("GetEmcLogWeight", "Not Defined" ) ; return 0. ; }
+ virtual Float_t GetEmcTimeGate() const {Warning("GetEmcTimeGate", "Not Defined" ) ; return 0. ; } ;
+ virtual Float_t GetCpvClusteringThreshold()const {Warning("GetCpvClusteringThreshold", "Not Defined" ) ; return 0. ; }
+ virtual Float_t GetCpvLocalMaxCut()const {Warning("GetCpvLocalMaxCut", "Not Defined" ) ; return 0. ; }
+ virtual Float_t GetCpvLogWeight()const {Warning("GetCpvLogWeight", "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 SetEmcClusteringThreshold(Float_t cluth) {Warning("SetEmcClusteringThreshold", "Not Defined" ) ; }
+ virtual void SetEmcLocalMaxCut(Float_t cut) {Warning("SetEmcLocalMaxCut", "Not Defined" ) ; }
+
+ virtual void SetEmcLogWeight(Float_t w) {Warning("SetEmcLogWeight", "Not Defined" ) ; }
+ virtual void SetEmcTimeGate(Float_t gate) {Warning("SetEmcTimeGate", "Not Defined" ) ; }
+ virtual void SetCpvClusteringThreshold(Float_t cluth) {Warning("SetCpvClusteringThreshold", "Not Defined" ) ; }
+ virtual void SetCpvLocalMaxCut(Float_t cut) {Warning("SetCpvLocalMaxCut", "Not Defined" ) ; }
+ virtual void SetCpvLogWeight(Float_t w) {Warning("SetCpvLogWeight", "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" ) ;}
+ AliPHOSClusterizer & operator = (const AliPHOSClusterizer & rvalue) {
+ // assignement operator requested by coding convention but not needed
+ Fatal("operator =", "not implemented") ; 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
- ClassDef(AliPHOSClusterizer,1) // clusterization interface, version 1
+ ClassDef(AliPHOSClusterizer,2) // Clusterization algorithm class
} ;