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