- Bool_t fDebug; //! verbosity controller
-
- TList *fList; //! List of hists (only for trigger now)
- AliEMCALGeometry *fGeom; // pointer to the EMCAL geometry
-
- static AliEMCALClusterizer* fgClusterizer; // clusterizer
- static const AliEMCALRecParam* fgkRecParam; // reconstruction
- // parameters for EMCAL
- static AliEMCALRawUtils* fgRawUtils; // raw utilities class -
- // only need one per reco
- static TClonesArray* fgDigitsArr; // Array with EMCAL digits
-
- ClassDef(AliEMCALReconstructor,6) // Reconstruction algorithm class (Base Class)
+ void FillMisalMatrixes(AliESDEvent* esd)const ;
+
+ //New class used to sort the matched tracks
+ class AliEMCALMatch : public TObject
+ {
+ public:
+ AliEMCALMatch();
+ AliEMCALMatch(const AliEMCALMatch& copy);
+ AliEMCALMatch& operator = (const AliEMCALMatch& source) ;
+ virtual ~AliEMCALMatch() { }
+ //----------------------------------------------------------------------------
+ Int_t Compare(const TObject *obj) const;
+ Bool_t IsSortable() const {return kTRUE;}
+ Double_t GetDistance() const {return fDistance;}
+ Double_t GetdEta() const {return fdEta;}
+ Double_t GetdPhi() const {return fdPhi;}
+ Int_t GetIndexT() const {return fIndexT;}
+ void SetIndexT(Int_t itr) {fIndexT=itr;}
+ void SetDistance(Double_t dist) {fDistance=dist;}
+ void SetdEta(Double_t dEta) {fdEta=dEta;}
+ void SetdPhi(Double_t dPhi) {fdPhi=dPhi;}
+ private:
+ Int_t fIndexT; // track index in 'fTracks' array
+ Double_t fDistance; // track - cluster distance
+ Double_t fdEta; // track - cluster residual in eta
+ Double_t fdPhi; // track - cluster residual in phi
+ };
+ Bool_t CalculateResidual(AliESDtrack *track, AliESDCaloCluster *cluster, Float_t &dEta, Float_t &dPhi) const;
+
+ private:
+
+ AliEMCALReconstructor(const AliEMCALReconstructor &); //Not implemented
+ AliEMCALReconstructor & operator = (const AliEMCALReconstructor &); //Not implemented
+
+ AliEMCALGeometry * fGeom; // pointer to the EMCAL geometry
+ static AliEMCALClusterizer * fgClusterizer; // clusterizer
+ static AliEMCALRawUtils * fgRawUtils; // raw utilities class
+
+ //Temporal arrays with clusters, digits, triggers, to be reused per event
+ static TClonesArray * fgDigitsArr; //-> Array with EMCAL digits
+ static TObjArray * fgClustersArr; //-> Array with EMCAL clusters
+ static TClonesArray * fgTriggerDigits; //-> Array with EMCAL trigger digits
+
+ //OCDB
+ static const AliEMCALRecParam* fgkRecParam; // reconstruction parameters for EMCAL
+ AliEMCALCalibData * fCalibData ; //! Calibration database if aval
+ AliCaloCalibPedestal * fPedestalData ; //! Tower status database if aval
+
+ //Trigger specific
+ static AliEMCALTriggerElectronics* fgTriggerProcessor; // Trigger preprocessor
+ AliEMCALTriggerData * fTriggerData; // Trigger parameters data container