Bug fix
[u/mrichter/AliRoot.git] / PHOS / AliPHOSClusterizer.h
... / ...
CommitLineData
1#ifndef ALIPHOSCLUSTERIZER_H
2#define ALIPHOSCLUSTERIZER_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/* History of cvs commits:
9 *
10 * $Log$
11 * Revision 1.39 2006/03/30 13:04:56 hristov
12 * AliRawReader is not persistent
13 *
14 * Revision 1.38 2005/07/25 15:53:09 kharlov
15 * Set raw data reader
16 *
17 * Revision 1.37 2005/05/28 14:19:04 schutz
18 * Compilation warnings fixed by T.P.
19 *
20 */
21
22//_________________________________________________________________________
23// Base class for the clusterization algorithm
24//*-- Author: Yves Schutz (SUBATECH) & Dmitri Peressounko (SUBATECH & Kurchatov Institute)
25// --- ROOT system ---
26
27#include "TTask.h"
28#include "AliConfig.h"
29#include "AliRawReaderFile.h"
30
31class TFile ;
32
33// --- Standard library ---
34
35// --- AliRoot header files ---
36
37class AliPHOSClusterizer : public TTask {
38
39public:
40
41 AliPHOSClusterizer() ; // default ctor
42 AliPHOSClusterizer(const TString alirunFileName, const TString eventFolderName = AliConfig::GetDefaultEventFolderName()) ;
43 AliPHOSClusterizer(const AliPHOSClusterizer & clusterizer);
44 virtual ~AliPHOSClusterizer() ; // dtor
45 virtual Float_t GetEmcClusteringThreshold()const {Warning("GetEmcClusteringThreshold", "Not Defined" ) ; return 0. ; }
46 virtual Float_t GetEmcLocalMaxCut()const {Warning("GetEmcLocalMaxCut", "Not Defined" ) ; return 0. ; }
47 virtual Float_t GetEmcLogWeight()const {Warning("GetEmcLogWeight", "Not Defined" ) ; return 0. ; }
48 virtual Float_t GetEmcTimeGate() const {Warning("GetEmcTimeGate", "Not Defined" ) ; return 0. ; } ;
49 virtual Float_t GetCpvClusteringThreshold()const {Warning("GetCpvClusteringThreshold", "Not Defined" ) ; return 0. ; }
50 virtual Float_t GetCpvLocalMaxCut()const {Warning("GetCpvLocalMaxCut", "Not Defined" ) ; return 0. ; }
51 virtual Float_t GetCpvLogWeight()const {Warning("GetCpvLogWeight", "Not Defined" ) ; return 0. ; }
52 virtual Int_t GetRecPointsInRun() const {Warning("GetRecPointsInRun", "Not Defined" ) ; return 0 ; }
53
54 virtual void MakeClusters() {Warning("MakeClusters", "Not Defined" ) ; }
55 virtual void Print(const Option_t * = "")const {Warning("Print", "Not Defined" ) ; }
56
57 virtual void SetEmcClusteringThreshold(Float_t) = 0;
58 virtual void SetEmcLocalMaxCut(Float_t ) = 0;
59
60 virtual void SetEmcLogWeight(Float_t) = 0;
61 virtual void SetEmcTimeGate(Float_t) = 0;
62 virtual void SetCpvClusteringThreshold(Float_t) = 0;
63 virtual void SetCpvLocalMaxCut(Float_t) = 0;
64 virtual void SetCpvLogWeight(Float_t) = 0;
65 virtual void SetUnfolding(Bool_t) = 0;
66 void SetEventRange(Int_t first=0, Int_t last=-1) {fFirstEvent=first; fLastEvent=last; }
67 void SetEventFolderName(TString name) { fEventFolderName = name ; }
68 void SetRawReader(AliRawReader *reader) {fRawReader = reader;}
69
70 TString GetEventFolderName() const {return fEventFolderName;}
71 Int_t GetFirstEvent() const {return fFirstEvent; }
72 Int_t GetLastEvent() const {return fLastEvent; }
73 AliRawReader *GetRawReader() const {return fRawReader; }
74
75 AliPHOSClusterizer & operator = (const AliPHOSClusterizer & /*rvalue*/) {return *this ;}
76
77 virtual const char * Version() const {Warning("Version", "Not Defined" ) ; return 0 ; }
78
79protected:
80 TString fEventFolderName ; // event folder name
81 Int_t fFirstEvent; // first event to process
82 Int_t fLastEvent; // last event to process
83 AliRawReader *fRawReader; //! reader of raw data
84
85 ClassDef(AliPHOSClusterizer,4) // Clusterization algorithm class
86
87} ;
88
89#endif // AliPHOSCLUSTERIZER_H