Coverity fix
[u/mrichter/AliRoot.git] / JETAN / AliAnalysisTaskDiJets.h
CommitLineData
bd24e6dc 1#ifndef ALIANALYSISTASKDIJETS_H
2#define ALIANALYSISTASKDIJETS_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
4f49cbd0 6
bd24e6dc 7#include "AliAnalysisTaskSE.h"
4f49cbd0 8#include <TList.h>
9#include <TH1F.h>
10#include <TH2F.h>
11
bd24e6dc 12class AliAnalysisTaskDiJets : public AliAnalysisTaskSE
13{
14 public:
15 AliAnalysisTaskDiJets();
16 AliAnalysisTaskDiJets(const char* name);
17 virtual ~AliAnalysisTaskDiJets() {;}
4f49cbd0 18
bd24e6dc 19 // Implementation of interface methods
20 virtual void UserCreateOutputObjects();
21 virtual void Init();
22 virtual void LocalInit() {Init();}
23 virtual void UserExec(Option_t *option);
24 virtual void Terminate(Option_t *option);
863dbf3b 25
7bb870ca 26 void SetAODInput(Bool_t b) {fUseAODInput = b;}
863dbf3b 27 void SetFillAOD(Bool_t fill) { fFillAOD=fill; }
7bb870ca 28 void SetJetBranch(const Char_t *br){ fJetBranch=br; }
863dbf3b 29
bd24e6dc 30 private:
31 AliAnalysisTaskDiJets(const AliAnalysisTaskDiJets &det);
32 AliAnalysisTaskDiJets &operator=(const AliAnalysisTaskDiJets &det);
4f49cbd0 33
bd24e6dc 34 private:
35 TClonesArray* fDiJets; // Array of dijets
36 TClonesArray* fDiJetsIn; // Array of dijets
4f49cbd0 37
7bb870ca 38 Bool_t fUseAODInput; // read jets from input AOD
863dbf3b 39 Bool_t fFillAOD; // option to fill AOD branch
7bb870ca 40 TString fJetBranch; // jet branch to read
863dbf3b 41
7bb870ca 42 AliAODEvent *fAOD; // AOD event
4f49cbd0 43 TList *fHistList; // Output list
44
45 TH1F *fH1DeltaPt; // Pt difference
46 TH1F *fH1DeltaPhi; // delta phi plot in (0,pi)
47 TH1F *fH1PhiImbal; // phi imbalance (-pi,pi)
48 TH1F *fH1Asym; // asymmetry of the dijet
49 TH2F *fH2Pt2vsPt1; // scatter plot with the two jets' Pt
50 TH2F *fH2DifvsSum; // Pt difference vs Pt sum
51
52 ClassDef(AliAnalysisTaskDiJets, 2); // Analysis task for standard dijet analysis
bd24e6dc 53};
4f49cbd0 54
bd24e6dc 55#endif