]>
Commit | Line | Data |
---|---|---|
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 "AliAnalysisNonMuonTrackCuts.h" | |
17 | #include "AliAODTrack.h" | |
18 | ||
19 | /// \cond CLASSIMP | |
20 | ClassImp(AliAnalysisNonMuonTrackCuts) | |
21 | /// \endcond | |
22 | ||
f7cc8591 | 23 | ///////////////////////////////////////////////////////////////////////// |
8dda6345 | 24 | |
25 | AliAnalysisNonMuonTrackCuts::AliAnalysisNonMuonTrackCuts() | |
26 | { | |
27 | /// default ctor | |
28 | } | |
29 | ||
30 | Bool_t AliAnalysisNonMuonTrackCuts::IsSelected(TObject* obj) | |
31 | { | |
32 | /// Returns true if the object is a muon track | |
33 | AliAODTrack* track = dynamic_cast<AliAODTrack*>(obj); | |
f7cc8591 | 34 | // if (track && track->IsMuonTrack()) return kTRUE; |
35 | if (track && (track->IsMuonTrack() || track->IsMuonGlobalTrack())) return kTRUE; | |
8dda6345 | 36 | return kFALSE; |
37 | } |