Add method to recalculate cluster distance to bad channels
[u/mrichter/AliRoot.git] / PWG4 / CaloCalib / AliAnalysisTaskCaloFilter.h
CommitLineData
7a4cf423 1#ifndef ALIANALYSISTASKCALOFILTER_H
2#define ALIANALYSISTASKCALOFILTER_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7/* $Id: AliAnalysisTaskCaloFilter.h $ */
8
9//////////////////////////////////////////////////////////
10// Filter the ESDCaloClusters and ESDCaloCells of EMCAL,
11// PHOS or both, creating the corresponing AODCaloClusters
12// and AODCaloCells.
13// Keep also the AODHeader information and the vertex.
14// Needed for calorimeter calibration.
15// Copy of AliAnalysisTaskESDfilter.
16// Author: Gustavo Conesa Balbastre (INFN - Frascati)
17//////////////////////////////////////////////////////////
18
247abff4 19class TList;
20
7a4cf423 21#include "AliAnalysisTaskSE.h"
247abff4 22class AliEMCALRecoUtils;
23class AliEMCALGeometry;
3a58eee6 24class AliESDtrackCuts;
7a4cf423 25
26class AliAnalysisTaskCaloFilter : public AliAnalysisTaskSE
27{
28 public:
29 AliAnalysisTaskCaloFilter();
30 AliAnalysisTaskCaloFilter(const char* name);
247abff4 31 virtual ~AliAnalysisTaskCaloFilter() ;
7a4cf423 32
247abff4 33private:
34 AliAnalysisTaskCaloFilter(const AliAnalysisTaskCaloFilter&);
35 AliAnalysisTaskCaloFilter& operator=(const AliAnalysisTaskCaloFilter&);
36
37public:
7a4cf423 38 virtual void UserCreateOutputObjects();
247abff4 39 //virtual void Init();
40 //virtual void LocalInit() ;
7a4cf423 41 virtual void UserExec(Option_t *option);
42 virtual void Terminate(Option_t *option);
43
247abff4 44 enum caloFilter {kBoth = 0, kEMCAL = 1, kPHOS=2};
45 void SetCaloFilter(Int_t calo) {fCaloFilter = calo;}
46 TString GetCaloFilter() const {return fCaloFilter;}
7a4cf423 47
247abff4 48 void SetGeometryName(TString name) { fEMCALGeoName = name ; }
49 TString GeometryName() const { return fEMCALGeoName ; }
7a4cf423 50
247abff4 51 void SetEMCALRecoUtils(AliEMCALRecoUtils * ru) {fEMCALRecoUtils = ru;}
52 AliEMCALRecoUtils* GetEMCALRecoUtils() const {return fEMCALRecoUtils;}
53
54 void SwitchOnClusterCorrection() {fCorrect = kTRUE ;}
55 void SwitchOffClusterCorrection() {fCorrect = kFALSE;}
56
3a58eee6 57 AliESDtrackCuts* GetTrackCuts() const { return fESDtrackCuts ; }
58 void SetTrackCuts(AliESDtrackCuts * cuts) { fESDtrackCuts = cuts ; }
59 Float_t GetTrackMultiplicityEtaCut() const { return fTrackMultEtaCut ; }
60 void SetTrackMultiplicityEtaCut(Float_t eta) { fTrackMultEtaCut = eta ; }
61
62
5ef94e1b 63 void PrintInfo();
64
247abff4 65private:
7a4cf423 66
247abff4 67 //TList* fCuts ; //! List with analysis cuts
68 Int_t fCaloFilter; // Calorimeter to filter
69 Int_t fCorrect; // Recalibrate or recalculate different cluster parameters
70 //EMCAL specific
71 AliEMCALGeometry * fEMCALGeo; //! EMCAL geometry
72 TString fEMCALGeoName; // Name of geometry to use.
73 AliEMCALRecoUtils * fEMCALRecoUtils; // Pointer to EMCAL utilities for clusterization
74
3a58eee6 75 AliESDtrackCuts *fESDtrackCuts ; // Track cut
76 Float_t fTrackMultEtaCut ; // Track multiplicity eta cut
77
78
79 ClassDef(AliAnalysisTaskCaloFilter, 3); // Analysis task for standard ESD filtering
7a4cf423 80};
81
82#endif