]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG3/dielectron/AliDielectronEventCuts.h
defects from coverity fixed
[u/mrichter/AliRoot.git] / PWG3 / 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
22#include <AliAnalysisCuts.h>
23
24class AliTriggerAnalysis;
25class AliESDVertex;
26
27class AliDielectronEventCuts : public AliAnalysisCuts {
28public:
1201a1a9 29 enum EVtxType { kVtxTracks=0, kVtxSPD, kVtxTPC, kVtxAny, kVtxTracksOrSPD };
2a14a7b1 30
31 AliDielectronEventCuts();
32 AliDielectronEventCuts(const char*name, const char* title);
33
34 virtual ~AliDielectronEventCuts();
35
36
37 void SetVertexType(EVtxType type) { fVtxType=type; }
38 void SetVertexZ(Double_t zmin, Double_t zmax) { fVtxZmin=zmin; fVtxZmax=zmax; }
39 void SetRequireVertex(Bool_t req=kTRUE) { fRequireVtx=req; }
40 void SetRequireV0and(UChar_t type=1) { fRequireV0and=type; }
41 void SetMinVtxContributors(Int_t min=1) { fMinVtxContributors=min; }
ffbede40 42 void SetCutOnMultipicityITSTPC(Bool_t mult=kTRUE) { fMultITSTPC=mult; }
2a14a7b1 43 //
44 //Analysis cuts interface
45 //
46 virtual Bool_t IsSelected(TObject* event);
47 virtual Bool_t IsSelected(TList* /* list */ ) {return kFALSE;}
48
49
50private:
51
52 Double_t fVtxZmin; // minimum z vertex position
53 Double_t fVtxZmax; // maximum z vertex position
54 Bool_t fRequireVtx; // require a vertex
55 Int_t fMinVtxContributors; // min number of vertex contributors
ffbede40 56 Bool_t fMultITSTPC; // if to cut on the ITS TPC multiplicity correlation (Pb-Pb)
2a14a7b1 57 EVtxType fVtxType; // vertex type
58
59 UChar_t fRequireV0and; // use V0and triggered events only
60
61 AliTriggerAnalysis *fTriggerAnalysis; //! trigger analysis class
ffbede40 62 const AliESDVertex *fkVertex; //! current vertex
2a14a7b1 63
64 AliDielectronEventCuts(const AliDielectronEventCuts &c);
65 AliDielectronEventCuts &operator=(const AliDielectronEventCuts &c);
66
67
68 ClassDef(AliDielectronEventCuts,1) // Dielectron EventCuts
69};
70
71
72
73#endif