2 // Class AliRsnCutPrimaryVertex
4 // This cut implementation checks the quality of event primary vertex.
5 // It currently works only with ESD events (not AOD).
7 // authors: Martin Vala (martin.vala@cern.ch)
8 // Alberto Pulvirenti (alberto.pulvirenti@ct.infn.it)
11 #ifndef ALIRSNCUTPRIMARYVERTEX_H
12 #define ALIRSNCUTPRIMARYVERTEX_H
14 #include "AliRsnCut.h"
17 #include "Riostream.h"
21 #include "AliESDEvent.h"
22 #include "AliESDVertex.h"
24 #include "AliRsnEvent.h"
28 class AliRsnPairParticle;
29 class AliRsnCutPrimaryVertex : public AliRsnCut {
32 AliRsnCutPrimaryVertex(const char *name = "cutPrimVert", Double_t maxVz = 10.0, Int_t minContributors = 1, Bool_t acceptTPC = kFALSE);
33 virtual ~AliRsnCutPrimaryVertex() {;};
35 void SetCheckPileUp(Bool_t doit = kTRUE) {fCheckPileUp = doit;}
36 virtual Bool_t IsSelected(TObject *object);
37 virtual void Print(const Option_t *option = "") const;
41 Bool_t fAcceptTPC; // if kTRUE, the TPC primary vertexes are accepted
42 Bool_t fCheckPileUp; // check and reject pileupped events (pp)
44 ClassDef(AliRsnCutPrimaryVertex, 1)