]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGLF/RESONANCES/AliRsnCutPrimaryVertex.h
Added AliRsnCutEventUtils class: interface to /Users/bellini/alisoft/aliroot/last_tru...
[u/mrichter/AliRoot.git] / PWGLF / RESONANCES / AliRsnCutPrimaryVertex.h
CommitLineData
96ab9736 1//
ceaa78d3 2// Class AliRsnCutPrimaryVertex
96ab9736 3//
ceaa78d3 4// This cut implementation checks the quality of event primary vertex.
5// It currently works only with ESD events (not AOD).
96ab9736 6//
7// authors: Martin Vala (martin.vala@cern.ch)
8// Alberto Pulvirenti (alberto.pulvirenti@ct.infn.it)
9//
10
11#ifndef ALIRSNCUTPRIMARYVERTEX_H
12#define ALIRSNCUTPRIMARYVERTEX_H
13
96ab9736 14#include "AliRsnCut.h"
f34f960b 15class AliVVertex;
4fbb2459 16
2a1c7696 17class AliRsnCutPrimaryVertex : public AliRsnCut {
18public:
96ab9736 19
2a1c7696 20 AliRsnCutPrimaryVertex(const char *name = "cutPrimVert", Double_t maxVz = 10.0, Int_t minContributors = 1, Bool_t acceptTPC = kFALSE);
21 virtual ~AliRsnCutPrimaryVertex() {;};
96ab9736 22
2a1c7696 23 void SetCheckPileUp(Bool_t doit = kTRUE) {fCheckPileUp = doit;}
24 virtual Bool_t IsSelected(TObject *object);
25 virtual void Print(const Option_t *option = "") const;
96ab9736 26
2a1c7696 27protected:
96ab9736 28
f34f960b 29 Bool_t CheckVertex(AliVVertex *vert);
30
2a1c7696 31 Bool_t fAcceptTPC; // if kTRUE, the TPC primary vertexes are accepted
32 Bool_t fCheckPileUp; // check and reject pileupped events (pp)
2a1c7696 33 ClassDef(AliRsnCutPrimaryVertex, 1)
96ab9736 34};
35
36#endif