fill histogram Markus Koehler
[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;
7a4cf423 24
25class AliAnalysisTaskCaloFilter : public AliAnalysisTaskSE
26{
27 public:
28 AliAnalysisTaskCaloFilter();
29 AliAnalysisTaskCaloFilter(const char* name);
247abff4 30 virtual ~AliAnalysisTaskCaloFilter() ;
7a4cf423 31
247abff4 32private:
33 AliAnalysisTaskCaloFilter(const AliAnalysisTaskCaloFilter&);
34 AliAnalysisTaskCaloFilter& operator=(const AliAnalysisTaskCaloFilter&);
35
36public:
7a4cf423 37 virtual void UserCreateOutputObjects();
247abff4 38 //virtual void Init();
39 //virtual void LocalInit() ;
7a4cf423 40 virtual void UserExec(Option_t *option);
41 virtual void Terminate(Option_t *option);
42
247abff4 43 enum caloFilter {kBoth = 0, kEMCAL = 1, kPHOS=2};
44 void SetCaloFilter(Int_t calo) {fCaloFilter = calo;}
45 TString GetCaloFilter() const {return fCaloFilter;}
7a4cf423 46
247abff4 47 void SetGeometryName(TString name) { fEMCALGeoName = name ; }
48 TString GeometryName() const { return fEMCALGeoName ; }
7a4cf423 49
247abff4 50 void SetEMCALRecoUtils(AliEMCALRecoUtils * ru) {fEMCALRecoUtils = ru;}
51 AliEMCALRecoUtils* GetEMCALRecoUtils() const {return fEMCALRecoUtils;}
52
53 void SwitchOnClusterCorrection() {fCorrect = kTRUE ;}
54 void SwitchOffClusterCorrection() {fCorrect = kFALSE;}
55
5ef94e1b 56 void PrintInfo();
57
247abff4 58private:
7a4cf423 59
247abff4 60 //TList* fCuts ; //! List with analysis cuts
61 Int_t fCaloFilter; // Calorimeter to filter
62 Int_t fCorrect; // Recalibrate or recalculate different cluster parameters
63 //EMCAL specific
64 AliEMCALGeometry * fEMCALGeo; //! EMCAL geometry
65 TString fEMCALGeoName; // Name of geometry to use.
66 AliEMCALRecoUtils * fEMCALRecoUtils; // Pointer to EMCAL utilities for clusterization
67
68 ClassDef(AliAnalysisTaskCaloFilter, 2); // Analysis task for standard ESD filtering
7a4cf423 69};
70
71#endif