major dielectron update (included also the data and plotting macros for paper)
[u/mrichter/AliRoot.git] / PWG3 / dielectron / AliAnalysisTaskDielectronFilter.h
CommitLineData
b2a297fa 1#ifndef ALIANALYSISTASKDIELECTRONFILTER_H
2#define ALIANALYSISTASKDIELECTRONFILTER_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//# Dielectron even filter task #
9//# #
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/*
18Filter Event based on cuts provided in the AliDielectron class.
19
20Write an AOD file containing events with Dielectron candidates.
21Add a sattelite AOD with the array of candidates.
22*/
23
24
25
26#include "AliAnalysisTaskSE.h"
27
48609e3d 28#include "AliDielectronPID.h"
29
b2a297fa 30class AliDielectron;
61d106d3 31class TH1D;
b2a297fa 32
33class AliAnalysisTaskDielectronFilter : public AliAnalysisTaskSE {
34
35public:
36 AliAnalysisTaskDielectronFilter();
37 AliAnalysisTaskDielectronFilter(const char *name);
38 virtual ~AliAnalysisTaskDielectronFilter(){}
39
40 virtual void UserExec(Option_t *option);
41 virtual void Init();
61d106d3 42 virtual void UserCreateOutputObjects();
b2a297fa 43 virtual void LocalInit() {Init();}
48609e3d 44 //temporary
45 virtual void NotifyRun(){AliDielectronPID::SetCorrVal((Double_t)fCurrentRunNumber);}
46
8df8e382 47 void UsePhysicsSelection(Bool_t phy=kTRUE) {fSelectPhysics=phy;}
61d106d3 48 void SetTriggerMask(UInt_t mask) {fTriggerMask=mask;}
49 UInt_t GetTriggerMask() const { return fTriggerMask; }
b2a297fa 50
51 void SetDielectron(AliDielectron * const die) { fDielectron = die; }
fb7d2d99 52
53 void SetStoreLikeSignCandidates(Bool_t storeLS) { fStoreLikeSign = storeLS; }
b2a297fa 54private:
55
56 AliDielectron *fDielectron; // J/psi framework object
57
8df8e382 58 Bool_t fSelectPhysics; // Whether to use physics selection
61d106d3 59 UInt_t fTriggerMask; // Event trigger mask
60
61 TH1D *fEventStat; //! Histogram with event statistics
fb7d2d99 62 Bool_t fStoreLikeSign; // flag to store like-sign candidates
8df8e382 63
b2a297fa 64 AliAnalysisTaskDielectronFilter(const AliAnalysisTaskDielectronFilter &c);
65 AliAnalysisTaskDielectronFilter& operator= (const AliAnalysisTaskDielectronFilter &c);
66
67 ClassDef(AliAnalysisTaskDielectronFilter, 1);
68};
69#endif