public:
AliEMCALClusterizerv1() ;
- AliEMCALClusterizerv1(const char * headerFile, const char * name = "Default", const Bool_t toSplit=kFALSE);
+ AliEMCALClusterizerv1(const TString alirunFileNameFile, const TString eventFolderName = AliConfig::fgkDefaultEventFolderName);
virtual ~AliEMCALClusterizerv1() ;
virtual Int_t AreNeighbours(AliEMCALDigit * d1, AliEMCALDigit * d2)const ;
// Checks if digits are in neighbour cells
- virtual Float_t Calibrate(Int_t amp, Bool_t inpresho)const ; // Tranforms Amp to energy
+ virtual Float_t Calibrate(Int_t amp, Int_t where)const ; // Tranforms Amp to energy
- virtual void GetNumberOfClustersFound(int * numb )const{ numb[0] = fNumberOfTowerClusters ;
- numb[1] = fNumberOfPreShoClusters ; }
+ virtual void GetNumberOfClustersFound(int * numb )const{ numb[0] = fNumberOfPREClusters ;
+ numb[1] = fNumberOfECAClusters ;
+ numb[2] = fNumberOfHCAClusters ; }
- virtual Float_t GetTowerClusteringThreshold()const{ return fTowerClusteringThreshold;}
- virtual Float_t GetTowerLocalMaxCut()const { return fTowerLocMaxCut;}
- virtual Float_t GetTowerLogWeight()const { return fW0;}
- virtual Float_t GetTimeGate() const { return fTimeGate ; }
- virtual Float_t GetPreShoClusteringThreshold()const{ return fPreShoClusteringThreshold; }
- virtual Float_t GetPreShoLocalMaxCut()const { return fPreShoLocMaxCut;}
- virtual Float_t GetPreShoLogWeight()const { return fW0CPV;}
+ virtual Float_t GetPREClusteringThreshold()const{ return fPREClusteringThreshold; }
+ virtual Float_t GetECAClusteringThreshold()const{ return fECAClusteringThreshold;}
+ virtual Float_t GetHCAClusteringThreshold()const{ return fHCAClusteringThreshold;}
+
+ virtual Float_t GetPRELocalMaxCut()const { return fPRELocMaxCut;}
+ virtual Float_t GetPREShoLogWeight()const { return fPREW0;}
+ virtual Float_t GetECALocalMaxCut()const { return fECALocMaxCut;}
+ virtual Float_t GetECALogWeight()const { return fECAW0;}
+ virtual Float_t GetHCALocalMaxCut()const { return fHCALocMaxCut;}
+ virtual Float_t GetHCALogWeight()const { return fHCAW0;}
+
+ virtual Float_t GetTimeGate() const { return fTimeGate ; }
virtual const char * GetRecPointsBranch() const{ return GetName() ;}
virtual const Int_t GetRecPointsInRun() const {return fRecPointsInRun ;}
virtual void Print(Option_t * option)const ;
- virtual void SetTowerClusteringThreshold(Float_t cluth) { fTowerClusteringThreshold = cluth ; }
- virtual void SetTowerLocalMaxCut(Float_t cut) { fTowerLocMaxCut = cut ; }
- virtual void SetTowerLogWeight(Float_t w) { fW0 = w ; }
- virtual void SetTimeGate(Float_t gate) { fTimeGate = gate ;}
- virtual void SetPreShoClusteringThreshold(Float_t cluth) { fPreShoClusteringThreshold = cluth ; }
- virtual void SetPreShoLocalMaxCut(Float_t cut) { fPreShoLocMaxCut = cut ; }
- virtual void SetPreShoLogWeight(Float_t w) { fW0CPV = w ; }
- virtual void SetUnfolding(Bool_t toUnfold = kTRUE ) {fToUnfold = toUnfold ;}
+ virtual void SetECAClusteringThreshold(Float_t cluth) { fECAClusteringThreshold = cluth ; }
+ virtual void SetECALocalMaxCut(Float_t cut) { fECALocMaxCut = cut ; }
+ virtual void SetECALogWeight(Float_t w) { fECAW0 = w ; }
+ virtual void SetHCAClusteringThreshold(Float_t cluth) { fHCAClusteringThreshold = cluth ; }
+ virtual void SetHCALocalMaxCut(Float_t cut) { fHCALocMaxCut = cut ; }
+ virtual void SetHCALogWeight(Float_t w) { fHCAW0 = w ; }
+ virtual void SetTimeGate(Float_t gate) { fTimeGate = gate ;}
+ virtual void SetPREClusteringThreshold(Float_t cluth) { fPREClusteringThreshold = cluth ; }
+ virtual void SetPRELocalMaxCut(Float_t cut) { fPRELocMaxCut = cut ; }
+ virtual void SetPRELogWeight(Float_t w) { fPREW0 = w ; }
+ virtual void SetUnfolding(Bool_t toUnfold = kTRUE ) {fToUnfold = toUnfold ;}
static Double_t ShowerShape(Double_t r) ; // Shape of EM shower used in unfolding;
//class member function (not object member function)
static void UnfoldingChiSquare(Int_t & nPar, Double_t * Grad, Double_t & fret, Double_t * x, Int_t iflag) ;
// Chi^2 of the fit. Should be static to be passes to MINUIT
+ void Unload() ;
virtual const char * Version() const { return "clu-v1" ; }
protected:
- void WriteRecPoints(Int_t event) ;
+ void WriteRecPoints() ;
virtual void MakeClusters( ) ;
- virtual Bool_t IsInTower (AliEMCALDigit * digit)const ; // Tells if id digit is in Tower
- virtual Bool_t IsInPreShower (AliEMCALDigit * digit)const ; // Tells if id digit is in PreShower
-
private:
void InitParameters() ;
virtual void MakeUnfolding() ;
- void UnfoldCluster(AliEMCALTowerRecPoint * iniEmc,Int_t Nmax,
- AliEMCALDigit ** maxAt,Float_t * maxAtEnergy ) ; //Unfolds cluster using TMinuit package
- void PrintRecPoints(Option_t * option) ;
+ void UnfoldCluster(AliEMCALTowerRecPoint * /*iniEmc*/, Int_t /*Nmax*/,
+ AliEMCALDigit ** /*maxAt*/,
+ Float_t * /*maxAtEnergy*/ ) ; //Unfolds cluster using TMinuit package
+ void PrintRecPoints(Option_t * /*option*/) ;
private:
Bool_t fToUnfold ; // To perform unfolding
- Int_t fNumberOfTowerClusters ; // number of Tower clusters found
- Int_t fNumberOfPreShoClusters ; // number of PreShower clusters found
-
+ Int_t fNumberOfPREClusters ; // number of clusters found in PRE section
+ Int_t fNumberOfECAClusters ; // number of clusters found in EC section
+ Int_t fNumberOfHCAClusters ; // number of clusters found in HC section
+
//Calibration parameters... to be replaced by database
- Float_t fADCchannelTower ; // width of one ADC channel for Tower (GeV)
- Float_t fADCpedestalTower ; // pedestal of ADC for Tower (GeV)
- Float_t fADCchannelPreSho ; // width of one ADC channel for Pre Shower (GeV)
- Float_t fADCpedestalPreSho ; // pedestal of ADC for PreShower (GeV)
-
- Float_t fTowerClusteringThreshold ; // minimum energy to include a EMC digit in a cluster
- Float_t fPreShoClusteringThreshold ; // minimum energy to include a CPV digit in a cluster
- Float_t fTowerLocMaxCut ; // minimum energy difference to distinguish local maxima in a cluster
- Float_t fW0 ; // logarithmic weight for the cluster center of gravity calculation
- Float_t fPreShoLocMaxCut ; // minimum energy difference to distinguish local maxima in a CPV cluster
- Float_t fW0CPV ; // logarithmic weight for the CPV cluster center of gravity calculation
+ Float_t fADCchannelPRE ; // width of one ADC channel for PRE section (GeV)
+ Float_t fADCpedestalPRE ; // pedestal of ADC for PRE section (GeV)
+ Float_t fADCchannelECA ; // width of one ADC channel for EC section (GeV)
+ Float_t fADCpedestalECA ; // pedestal of ADC for EC section (GeV)
+ Float_t fADCchannelHCA ; // width of one ADC channel for HC section (GeV)
+ Float_t fADCpedestalHCA ; // pedestal of ADC for HC section (GeV)
+
+ Float_t fECAClusteringThreshold ; // minimum energy to include a EC digit in a cluster
+ Float_t fHCAClusteringThreshold ; // minimum energy to include a HC digit in a cluster
+ Float_t fPREClusteringThreshold ; // minimum energy to include a PRE digit in a cluster
+ Float_t fECALocMaxCut ; // minimum energy difference to distinguish local maxima in a cluster
+ Float_t fECAW0 ; // logarithmic weight for the cluster center of gravity calculation
+ Float_t fHCALocMaxCut ; // minimum energy difference to distinguish local maxima in a cluster
+ Float_t fHCAW0 ; // logarithmic weight for the cluster center of gravity calculation
+ Float_t fPRELocMaxCut ; // minimum energy difference to distinguish local maxima in a CPV cluster
+ Float_t fPREW0 ; // logarithmic weight for the CPV cluster center of gravity calculation
Int_t fRecPointsInRun ; //! Total number of recpoints in one run
Float_t fTimeGate ; // Maximum time difference between the digits in ont EMC cluster