Add fast merging option (Diego)
[u/mrichter/AliRoot.git] / PWG3 / dielectron / AliAnalysisTaskMultiDielectron.h
CommitLineData
b2a297fa 1#ifndef ALIANALYSISTASKMULTIDIELECTRON_H
2#define ALIANALYSISTASKMULTIDIELECTRON_H
3/* Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6//#####################################################
7//# #
8//# Basic Analysis task for Dielectron #
9//# single event analysis #
10//# #
11//# by WooJin J. Park, GSI / W.J.Park@gsi.de #
12//# Ionut C. Arsene, GSI / I.C.Arsene@gsi.de #
13//# Magnus Mager, CERN / Magnus.Mager@cern.ch #
14//# Jens Wiechula, Uni HD / Jens.Wiechula@cern.ch #
15//# #
16//#####################################################
17
18#include "TList.h"
19
20#include "AliAnalysisTaskSE.h"
21
ffbede40 22// #include "AliDielectronPID.h"
48609e3d 23
b2a297fa 24class AliDielectron;
61d106d3 25class TH1D;
2a14a7b1 26class AliAnalysisCuts;
27class AliTriggerAnalysis;
b2a297fa 28
29class AliAnalysisTaskMultiDielectron : public AliAnalysisTaskSE {
30
31public:
32 AliAnalysisTaskMultiDielectron();
33 AliAnalysisTaskMultiDielectron(const char *name);
572b0139 34 virtual ~AliAnalysisTaskMultiDielectron(){ }
b2a297fa 35
572b0139 36 virtual void UserExec(Option_t *option);
37 virtual void UserCreateOutputObjects();
38 virtual void FinishTaskOutput();
48609e3d 39 //temporary
2a14a7b1 40// virtual void NotifyRun(){AliDielectronPID::SetCorrVal((Double_t)fCurrentRunNumber);}
b2a297fa 41
572b0139 42 void UsePhysicsSelection(Bool_t phy=kTRUE) {fSelectPhysics=phy;}
61d106d3 43 void SetTriggerMask(UInt_t mask) {fTriggerMask=mask;}
44 UInt_t GetTriggerMask() const { return fTriggerMask; }
2a14a7b1 45
46 void SetEventFilter(AliAnalysisCuts * const filter) {fEventFilter=filter;}
47 void SetTriggerOnV0AND(Bool_t v0and=kTRUE) { fTriggerOnV0AND=v0and; }
48 void SetRejectPileup(Bool_t pileup=kTRUE) { fRejectPileup=pileup; }
b2a297fa 49 void AddDielectron(AliDielectron * const die) { fListDielectron.Add(die); }
50
c8f0f810 51protected:
2a14a7b1 52 enum {kAllEvents=0, kSelectedEvents, kV0andEvents, kFilteredEvents, kPileupEvents, kNbinsEvent};
b2a297fa 53 TList fListDielectron; // List of dielectron framework instances
54 TList fListHistos; //! List of histogram manager lists in the framework classes
55 TList fListCF; //! List with CF Managers
572b0139 56
57 Bool_t fSelectPhysics; // Whether to use physics selection
61d106d3 58 UInt_t fTriggerMask; // Event trigger mask
2a14a7b1 59 Bool_t fTriggerOnV0AND; // if to trigger on V0and
60 Bool_t fRejectPileup; // pileup rejection wanted
61
62 AliTriggerAnalysis *fTriggerAnalysis; //! trigger analysis class
61d106d3 63
2a14a7b1 64 AliAnalysisCuts *fEventFilter; // event filter
65
61d106d3 66 TH1D *fEventStat; //! Histogram with event statistics
b2a297fa 67
68 AliAnalysisTaskMultiDielectron(const AliAnalysisTaskMultiDielectron &c);
69 AliAnalysisTaskMultiDielectron& operator= (const AliAnalysisTaskMultiDielectron &c);
70
71 ClassDef(AliAnalysisTaskMultiDielectron, 1); //Analysis Task handling multiple instances of AliDielectron
72};
73#endif