possiblity to read ESD friends and TPC outer check (Jacek)
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALClusterizer.h
CommitLineData
483b0559 1#ifndef ALIEMCALCLUSTERIZER_H
2#define ALIEMCALCLUSTERIZER_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8//_________________________________________________________________________
9// Base class for the clusterization algorithm (pure abstract)
10//*-- Author: Yves Schutz (SUBATECH) & Dmitri Peressounko (SUBATECH & Kurchatov Institute)
05a92d59 11// Modif:
12// August 2002 Yves Schutz: clone PHOS as closely as possible and intoduction
13// of new IO (à la PHOS)
483b0559 14// --- ROOT system ---
0832a2bf 15#include "AliLog.h"
c47157cd 16#include "TObject.h"
17class TTree;
05a92d59 18
483b0559 19// --- Standard library ---
20
21// --- AliRoot header files ---
483b0559 22
c47157cd 23class AliEMCALClusterizer : public TObject {
483b0559 24
25public:
26
27 AliEMCALClusterizer() ; // default ctor
b481a360 28 virtual ~AliEMCALClusterizer() ; // dtorEM
483b0559 29
c47157cd 30 virtual void Digits2Clusters(Option_t *option) = 0;
483b0559 31
c47157cd 32 virtual Float_t GetTimeCut() const = 0;
483b0559 33
9e5d2067 34 virtual void SetECAClusteringThreshold(Float_t) = 0;
35 virtual void SetECALocalMaxCut(Float_t) = 0;
36 virtual void SetECALogWeight(Float_t) = 0;
98e9578e 37 virtual void SetTimeCut(Float_t) = 0;
9e5d2067 38 virtual void SetUnfolding(Bool_t) = 0;
12c4dd95 39
9859bfc0 40 virtual const char * Version() const {Warning("Version", "Not Defined") ; return 0 ; }
483b0559 41
c47157cd 42 virtual void SetInput(TTree *digitsTree);
43 virtual void SetOutput(TTree *clustersTree);
0832a2bf 44 virtual void InitParameters() { AliInfo("Overload this method."); }
c47157cd 45
839828a6 46protected:
483b0559 47
0e7c6655 48 virtual void MakeClusters() = 0;
c47157cd 49
50 TClonesArray *fDigitsArr; // Array with EMCAL digits
51 TTree *fTreeR; // Tree with output clusters
52 TObjArray *fRecPoints; // Array with EMCAL clusters
53
54private:
55 AliEMCALClusterizer(const AliEMCALClusterizer &); //copy ctor
56 AliEMCALClusterizer & operator = (const AliEMCALClusterizer &);
57
58 ClassDef(AliEMCALClusterizer,1) // Clusterization algorithm class
483b0559 59} ;
60
61#endif // AliEMCALCLUSTERIZER_H