Change Mult binning scheme
[u/mrichter/AliRoot.git] / PWGDQ / dielectron / AliDielectronEventCuts.h
CommitLineData
2a14a7b1 1#ifndef ALIDIELECTRONEVENTCUTS_H
2#define ALIDIELECTRONEVENTCUTS_H
3
4/* Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7//#############################################################
8//# #
9//# Class AliDielectronEventCuts #
10//# #
11//# Authors: #
12//# Anton Andronic, GSI / A.Andronic@gsi.de #
13//# Ionut C. Arsene, GSI / I.C.Arsene@gsi.de #
14//# Julian Book, Uni Ffm / Julian.Book@cern.ch #
15//# Frederick Kramer, Uni Ffm, / Frederick.Kramer@cern.ch #
16//# Magnus Mager, CERN / Magnus.Mager@cern.ch #
17//# WooJin J. Park, GSI / W.J.Park@gsi.de #
18//# Jens Wiechula, Uni HD / Jens.Wiechula@cern.ch #
19//# #
20//#############################################################
21
b2ad74d0 22#include <TF1.h>
23
24#include <AliAnalysisUtils.h>
2a14a7b1 25#include <AliAnalysisCuts.h>
26
27class AliTriggerAnalysis;
28class AliESDVertex;
d327d9cd 29class AliAODVertex;
2a14a7b1 30
90c1ae2d 31
2a14a7b1 32class AliDielectronEventCuts : public AliAnalysisCuts {
33public:
1201a1a9 34 enum EVtxType { kVtxTracks=0, kVtxSPD, kVtxTPC, kVtxAny, kVtxTracksOrSPD };
2a14a7b1 35
36 AliDielectronEventCuts();
37 AliDielectronEventCuts(const char*name, const char* title);
38
39 virtual ~AliDielectronEventCuts();
40
41
42 void SetVertexType(EVtxType type) { fVtxType=type; }
43 void SetVertexZ(Double_t zmin, Double_t zmax) { fVtxZmin=zmin; fVtxZmax=zmax; }
44 void SetRequireVertex(Bool_t req=kTRUE) { fRequireVtx=req; }
45 void SetRequireV0and(UChar_t type=1) { fRequireV0and=type; }
46 void SetMinVtxContributors(Int_t min=1) { fMinVtxContributors=min; }
ffbede40 47 void SetCutOnMultipicityITSTPC(Bool_t mult=kTRUE) { fMultITSTPC=mult; }
ba15fdfb 48 void SetCentralityRange(Double_t min, Double_t max) { fCentMin=min; fCentMax=max; }
90c1ae2d 49 void SetCutOnV0MultipicityNTrks(TF1* parMean, TF1* parSigma, Double_t cutSigma=3.) { fparMean=parMean; fparSigma=parSigma; fcutSigma=cutSigma; }
6bd73568 50 void SetCutOnNVtxContributorsGloablTPC(TF1* parMin, TF1* parMax) { fparMinVtxContributors=parMin; fparMaxVtxContributors=parMax; }
b2ad74d0 51 void SetRequire2013vertexandevent(Bool_t req13 = kTRUE) {fRequire13sel = req13; }
2a14a7b1 52 //
53 //Analysis cuts interface
54 //
55 virtual Bool_t IsSelected(TObject* event);
d327d9cd 56 Bool_t IsSelectedESD(TObject* event);
57 Bool_t IsSelectedAOD(TObject* event);
2a14a7b1 58 virtual Bool_t IsSelected(TList* /* list */ ) {return kFALSE;}
2a14a7b1 59
1bb1fef1 60 void Print(const Option_t* option = "") const;
2a14a7b1 61
1bb1fef1 62private:
63 static const char* fgkVtxNames[AliDielectronEventCuts::kVtxTracksOrSPD+1]; //vertex names
2a14a7b1 64 Double_t fVtxZmin; // minimum z vertex position
65 Double_t fVtxZmax; // maximum z vertex position
66 Bool_t fRequireVtx; // require a vertex
67 Int_t fMinVtxContributors; // min number of vertex contributors
ffbede40 68 Bool_t fMultITSTPC; // if to cut on the ITS TPC multiplicity correlation (Pb-Pb)
b2ad74d0 69 Double_t fCentMin; // minimum multiplity percentile
70 Double_t fCentMax; // maximum multiplity percentile
2a14a7b1 71 EVtxType fVtxType; // vertex type
b2ad74d0 72 Bool_t fRequire13sel; //bit to select event and vertex selection proposed for 2013 in
73 //https://twiki.cern.ch/twiki/bin/viewauth/ALICE/PAVertexSelectionStudies
74 AliAnalysisUtils fUtils; //data member to use utility class for event and vertex selection in 2013
75
2a14a7b1 76
77 UChar_t fRequireV0and; // use V0and triggered events only
78
79 AliTriggerAnalysis *fTriggerAnalysis; //! trigger analysis class
ffbede40 80 const AliESDVertex *fkVertex; //! current vertex
d327d9cd 81 const AliAODVertex *fkVertexAOD; //! current vertex AOD
2a14a7b1 82
90c1ae2d 83 TF1* fparMean; // parametrization of the mean values
84 TF1* fparSigma; // parametrization of the sigmas
85 Double_t fcutSigma; // number of absolut sigmas inclusion
6bd73568 86 TF1* fparMinVtxContributors; // parametrization of #vtx contributors global vs TPC (lower limit)
87 TF1* fparMaxVtxContributors; // parametrization of #vtx contributors global vs TPC (upper limit)
2a14a7b1 88 AliDielectronEventCuts(const AliDielectronEventCuts &c);
89 AliDielectronEventCuts &operator=(const AliDielectronEventCuts &c);
90
91
90c1ae2d 92 ClassDef(AliDielectronEventCuts,2) // Dielectron EventCuts
2a14a7b1 93};
94
2a14a7b1 95
96#endif