Calorimeter filtering task added, Pi0 calibration task also do filtering if requested...
[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
19#include "AliAnalysisTaskSE.h"
20
21class AliAnalysisTaskCaloFilter : public AliAnalysisTaskSE
22{
23 public:
24 AliAnalysisTaskCaloFilter();
25 AliAnalysisTaskCaloFilter(const char* name);
26 virtual ~AliAnalysisTaskCaloFilter() {;}
27
28 // Implementation of interface methods
29 virtual void UserCreateOutputObjects();
30 virtual void Init();
31 virtual void LocalInit() {Init();}
32 virtual void UserExec(Option_t *option);
33 virtual void Terminate(Option_t *option);
34
35 void SetCalorimeter(TString calo) {fCalorimeter = calo;}
36 TString GetCalorimeter() const {return fCalorimeter;}
37
38 void CreateAODFromESD();
39 void CreateAODFromAOD();
40
41 private:
42 AliAnalysisTaskCaloFilter(const AliAnalysisTaskCaloFilter&);
43 AliAnalysisTaskCaloFilter& operator=(const AliAnalysisTaskCaloFilter&);
44
45 TString fCalorimeter; //Calorimeter to filter
46
47 ClassDef(AliAnalysisTaskCaloFilter, 1); // Analysis task for standard ESD filtering
48};
49
50#endif