X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=PHOS%2FAliPHOSClusterizer.h;h=1522d3760a700d8e7abee1c9f73f981a073e6c88;hp=3f220f756a9757dd81487035dbe2cf472cc2aa1a;hb=52d2af540e951de3e6bebc08d08409d2674df185;hpb=9239a5f4828e1ddaa7e8fd2f2d2b1cb50dba17ab diff --git a/PHOS/AliPHOSClusterizer.h b/PHOS/AliPHOSClusterizer.h index 3f220f756a9..1522d3760a7 100644 --- a/PHOS/AliPHOSClusterizer.h +++ b/PHOS/AliPHOSClusterizer.h @@ -3,60 +3,92 @@ /* 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 // -//////////////////////////////////////////////// +/* History of cvs commits: + * + * $Log$ + * Revision 1.43 2007/09/26 14:22:17 cvetan + * Important changes to the reconstructor classes. Complete elimination of the run-loaders, which are now steered only from AliReconstruction. Removal of the corresponding Reconstruct() and FillESD() methods. + * + * Revision 1.42 2007/08/28 12:55:07 policheh + * Loaders removed from the reconstruction code (C.Cheshkov) + * + * Revision 1.41 2007/08/07 14:12:03 kharlov + * Quality assurance added (Yves Schutz) + * + * Revision 1.40 2006/08/25 16:56:30 kharlov + * Compliance with Effective C++ + * + * Revision 1.39 2006/03/30 13:04:56 hristov + * AliRawReader is not persistent + * + * Revision 1.38 2005/07/25 15:53:09 kharlov + * Set raw data reader + * + * Revision 1.37 2005/05/28 14:19:04 schutz + * Compilation warnings fixed by T.P. + * + */ +//_________________________________________________________________________ +// Base class for the clusterization algorithm +//*-- Author: Yves Schutz (SUBATECH) & Dmitri Peressounko (SUBATECH & Kurchatov Institute) // --- ROOT system --- -#include "TObject.h" -#include "TClonesArray.h" - -// --- Standard library --- +#include -// --- AliRoot header files --- +class TTree; -#include "AliPHOSDigit.h" +class AliPHOSGeometry; +class AliPHOSCalibData ; -typedef TClonesArray RecPointsList ; // a cluster has a variable size (see ROOT FAQ) -typedef TClonesArray DigitsList ; //for digits saved on disk +using std::ostream; class AliPHOSClusterizer : public TObject { public: - AliPHOSClusterizer() ; // ctor + AliPHOSClusterizer() ; // default ctor + AliPHOSClusterizer(AliPHOSGeometry *geom); virtual ~AliPHOSClusterizer() ; // dtor - virtual Float_t Calibrate(Int_t Amp) = 0 ; - virtual Bool_t IsInEmc(AliPHOSDigit * digit)= 0 ; - virtual void GetNumberOfClustersFound(Int_t * numb) = 0 ; - virtual void GetCalibrationParameters(Float_t & A, Float_t &B) = 0 ; - virtual void GetEmcClusteringThreshold(Float_t & cluth) = 0 ; - virtual void GetEmcEnergyThreshold(Float_t & enth) = 0 ; - virtual void GetLocalMaxCut(Float_t & cut) = 0 ; - virtual void GetLogWeightCut(Float_t & w) = 0 ; - virtual void GetPpsdClusteringThreshold(Float_t & cluth) = 0 ; - virtual void GetPpsdEnergyThreshold(Float_t & enth) = 0 ; - - virtual void MakeClusters(const DigitsList * dl, RecPointsList * emccl, RecPointsList * ppsdl) = 0 ; - virtual void PrintParameters() = 0 ; - virtual void SetCalibrationParameters(Float_t A, Float_t B) = 0 ; - virtual void SetEmcClusteringThreshold(Float_t cluth) = 0 ; - virtual void SetEmcEnergyThreshold(Float_t enth) = 0 ; - virtual void SetLocalMaxCut(Float_t cut) = 0 ; - virtual void SetLogWeightCut(Float_t w) = 0 ; - virtual void SetPpsdClusteringThreshold(Float_t cluth) = 0 ; - virtual void SetPpsdEnergyThreshold(Float_t enth) = 0 ; - - ClassDef(AliPHOSClusterizer,1) // clusterization interface, version 1 + virtual void Digits2Clusters(Option_t *option) = 0; + virtual Float_t GetEmcClusteringThreshold()const = 0; + virtual Float_t GetEmcLocalMaxCut()const = 0; + virtual Float_t GetEmcLogWeight()const = 0; + virtual Float_t GetCpvClusteringThreshold()const = 0; + virtual Float_t GetCpvLocalMaxCut()const = 0; + virtual Float_t GetCpvLogWeight()const = 0; + + virtual void Print(const Option_t * = "") const = 0; + + virtual void SetEmcClusteringThreshold(Float_t) = 0; + virtual void SetEmcLocalMaxCut(Float_t ) = 0; + + virtual void SetEmcLogWeight(Float_t) = 0; + virtual void SetCpvClusteringThreshold(Float_t) = 0; + virtual void SetCpvLocalMaxCut(Float_t) = 0; + virtual void SetCpvLogWeight(Float_t) = 0; + virtual void SetUnfolding(Bool_t) = 0; + + virtual const char * Version() const = 0; + + virtual void SetInput(TTree *digitsTree); + virtual void SetOutput(TTree *clustersTree); + +protected: + + static AliPHOSCalibData * fgCalibData ; //! Calibration database if aval. + AliPHOSGeometry *fGeom; // Pointer to PHOS geometry + TClonesArray *fDigitsArr; // Array with input digits + TTree *fTreeR; // Tree with output clusters + TObjArray *fEMCRecPoints; // Array with EMC clusters + TObjArray *fCPVRecPoints; // Array with CPV clusters + +private: + AliPHOSClusterizer(const AliPHOSClusterizer & clusterizer); + AliPHOSClusterizer & operator = (const AliPHOSClusterizer &clusterer); + + ClassDef(AliPHOSClusterizer,5) // Clusterization algorithm class } ;