// --- AliRoot header files ---
#include "AliEMCALClusterizer.h"
-#include "TH1F.h"
+class TH1F;
class AliEMCALRecPoint ;
class AliEMCALDigit ;
class AliEMCALDigitizer ;
public:
AliEMCALClusterizerv1() ;
+ //cpy ctor required by coding convention
+ AliEMCALClusterizerv1(const AliEMCALClusterizerv1& clus);
+
AliEMCALClusterizerv1(const TString alirunFileNameFile, const TString eventFolderName = AliConfig::GetDefaultEventFolderName());
virtual ~AliEMCALClusterizerv1() ;
-
+ virtual void Browse(TBrowser* b);
+
+ AliEMCALClusterizerv1 & operator = (const AliEMCALClusterizerv1 &) {
+ Fatal("operator =", "not implemented") ;
+ return *this ;
+ }
+
virtual Int_t AreNeighbours(AliEMCALDigit * d1, AliEMCALDigit * d2)const ;
// Checks if digits are in neighbour cells
- virtual Float_t Calibrate(Int_t amp)const ; // Tranforms Amp to energy
+ // Checks if digits are in a tower group; for pseudoclusters
+ virtual Int_t AreInGroup(AliEMCALDigit * d1, AliEMCALDigit * d2)const ;
+
+ virtual Float_t Calibrate(Int_t amp, Int_t cellId) ; // Tranforms Amp to energy
virtual void GetNumberOfClustersFound(int numb )const{ numb = fNumberOfECAClusters ;}
virtual Float_t GetECAClusteringThreshold()const{ return fECAClusteringThreshold;}
void Unload() ;
virtual const char * Version() const { return "clu-v1" ; }
- void BookHists();
- void SaveHists();
+ TList* BookHists();
+ void SaveHists(const char *fn="reco.root"); //*MENU*
protected:
void WriteRecPoints() ;
- virtual void MakeClusters( ) ;
+ virtual void MakeClusters(char* opt ) ;
+ virtual void MakeClusters() { Fatal("MakeClusters","not implemented"); }
+
/////////////////////
- TH1F* pointE;
- TH1F* pointL1;
- TH1F* pointL2;
- TH1F* pointDis;
- TH1F* pointMult;
- TH1F* digitAmp;
- TH1F* MaxE;
- TH1F* MaxL1;
- TH1F* MaxL2;
- TH1F* MaxDis;
+ TList *fHists; //!
+ TH1F* fPointE; //histogram of point energy
+ TH1F* fPointL1; //histogram of point L1
+ TH1F* fPointL2; //histogram of point L2
+ TH1F* fPointDis; //histogram of point dispersion
+ TH1F* fPointMult; //histogram of point multiplicity
+ TH1F* fDigitAmp; //histogram of digit ADC Amplitude
+ TH1F* fMaxE; //histogram of maximum point energy
+ TH1F* fMaxL1; //histogram of maximum point L1
+ TH1F* fMaxL2; //histogram of maximum point L2
+ TH1F* fMaxDis; //histogram of maximum point dispersion
///////////////////////
AliEMCALDigit ** /*maxAt*/,
Float_t * /*maxAtEnergy*/ ) const; //Unfolds cluster using TMinuit package
void PrintRecPoints(Option_t * option) ;
- TFile* recofile;
+
private:
+ AliEMCALGeometry* fGeom; //! pointer to geometry for utilities
Bool_t fDefaultInit; //! Says if the task was created by defaut ctor (only parameters are initialized)
-
- Int_t fNTowers ; // number of Towers in EMCAL
-
Bool_t fToUnfold ; // To perform unfolding
Int_t fNumberOfECAClusters ; // number of clusters found in EC section
-
+
+ Int_t fNTowerInGroup; // number of towers to group for pseudoclusters
+
//Calibration parameters... to be replaced by database
AliEMCALCalibData * fCalibData ; //! Calibration database if aval
Float_t fTimeGate ; // Maximum time difference between the digits in ont EMC cluster
Float_t fMinECut; // Minimum energy for a digit to be a member of a cluster
- void ReadFile();
-
ClassDef(AliEMCALClusterizerv1,4) // Clusterizer implementation version 1
};