]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG/muon/AliAnalysisNonPrimaryVertices.cxx
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWG / muon / AliAnalysisNonPrimaryVertices.cxx
CommitLineData
8dda6345 1/**************************************************************************
2 * Copyright(c) 1998-2013, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15
16#include "AliAnalysisNonPrimaryVertices.h"
17#include "AliAODVertex.h"
18
19/// \cond CLASSIMP
20ClassImp(AliAnalysisNonPrimaryVertices)
21/// \endcond
22
23AliAnalysisNonPrimaryVertices::AliAnalysisNonPrimaryVertices()
24{
25 /// default ctor
26}
27
28Bool_t AliAnalysisNonPrimaryVertices::IsSelected(TObject* obj)
29{
30 /// Returns true if the object is a primary or pileup vertex
31
32 AliAODVertex* vertex = dynamic_cast<AliAODVertex*>(obj);
33 if (vertex)
34 {
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 )
40 {
41 return kTRUE;
42 }
43 }
44
45 // enum AODVtx_t {kUndef=-1, kPrimary, kKink, kV0, kCascade, kMulti, kMainSPD, kPileupSPD, kPileupTracks,kMainTPC};
46
47 return kFALSE;
48}
49