Change Mult binning scheme
[u/mrichter/AliRoot.git] / PWGDQ / dielectron / AliAnalysisTaskDielectronSE.h
CommitLineData
b2a297fa 1#ifndef ALIANALYSISTASKDIELECTRONSE_H
2#define ALIANALYSISTASKDIELECTRONSE_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 "AliAnalysisTaskSE.h"
19
20class AliDielectron;
5720c765 21class AliTriggerAnalysis;
61d106d3 22class TH1D;
b2a297fa 23
24class AliAnalysisTaskDielectronSE : public AliAnalysisTaskSE {
25
26public:
27 AliAnalysisTaskDielectronSE();
28 AliAnalysisTaskDielectronSE(const char *name);
29 virtual ~AliAnalysisTaskDielectronSE(){;}
30
31 virtual void UserExec(Option_t *option);
32 virtual void UserCreateOutputObjects();
48609e3d 33
61d106d3 34 void UsePhysicsSelection(Bool_t phy=kTRUE) {fSelectPhysics=phy;}
35 void SetTriggerMask(UInt_t mask) {fTriggerMask=mask;}
36 UInt_t GetTriggerMask() const { return fTriggerMask; }
5720c765 37
38 void SetEventFilter(AliAnalysisCuts * const filter) {fEventFilter=filter;}
39 void SetTriggerOnV0AND(Bool_t v0and=kTRUE) { fTriggerOnV0AND=v0and; }
40 void SetRejectPileup(Bool_t pileup=kTRUE) { fRejectPileup=pileup; }
b2a297fa 41
42 void SetDielectron(AliDielectron * const die) { fDielectron = die; }
43
44private:
5720c765 45 enum {kAllEvents=0, kSelectedEvents, kV0andEvents, kFilteredEvents, kPileupEvents, kNbinsEvent};
b2a297fa 46
47 AliDielectron *fDielectron; // Dielectron framework object
48
61d106d3 49 Bool_t fSelectPhysics; // Whether to use physics selection
50 UInt_t fTriggerMask; // Event trigger mask
5720c765 51 Bool_t fTriggerOnV0AND; // if to trigger on V0and
52 Bool_t fRejectPileup; // pileup rejection wanted
53
54 AliTriggerAnalysis *fTriggerAnalysis; //! trigger analysis class
55
56 AliAnalysisCuts *fEventFilter; // event filter
57
61d106d3 58 TH1D *fEventStat; //! Histogram with event statistics
59
b2a297fa 60 AliAnalysisTaskDielectronSE(const AliAnalysisTaskDielectronSE &c);
61 AliAnalysisTaskDielectronSE& operator= (const AliAnalysisTaskDielectronSE &c);
62
63 ClassDef(AliAnalysisTaskDielectronSE, 1);
64};
65#endif