1 /**************************************************************************
2 * Copyright(c) 1998-2013, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
16 #include "AliAnalysisNonPrimaryVertices.h"
17 #include "AliAODVertex.h"
20 ClassImp(AliAnalysisNonPrimaryVertices)
23 AliAnalysisNonPrimaryVertices::AliAnalysisNonPrimaryVertices()
28 Bool_t AliAnalysisNonPrimaryVertices::IsSelected(TObject* obj)
30 /// Returns true if the object is a primary or pileup vertex
32 AliAODVertex* vertex = dynamic_cast<AliAODVertex*>(obj);
35 if ( vertex->GetType() == AliAODVertex::kPrimary ||
36 vertex->GetType() == AliAODVertex::kMainSPD ||
37 vertex->GetType() == AliAODVertex::kPileupSPD ||
38 vertex->GetType() == AliAODVertex::kPileupTracks ||
39 vertex->GetType() == AliAODVertex::kMainTPC )
45 // enum AODVtx_t {kUndef=-1, kPrimary, kKink, kV0, kCascade, kMulti, kMainSPD, kPileupSPD, kPileupTracks,kMainTPC};