AliPhysics  775474e (775474e)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliEMCalTriggerKineCuts.cxx
Go to the documentation of this file.
1 /**************************************************************************
2  * Copyright(c) 1998-2014, 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 #include <TMath.h>
17 #include "AliVParticle.h"
18 
20 ClassImp(EMCalTriggerPtAnalysis::AliEMCalTriggerKineCuts)
22 
23 namespace EMCalTriggerPtAnalysis {
24 
28 AliEMCalTriggerKineCuts::AliEMCalTriggerKineCuts():
29  TObject(),
30  fPtCut(0.1, 1000.),
31  fEtaCut(-0.8, 0.8),
32  fPhiCut()
33 {
34 }
35 
42 bool AliEMCalTriggerKineCuts::IsSelected(const AliVParticle* const track) const {
43  if(!fPtCut.IsInRange(TMath::Abs(track->Pt()))) return false;
44  if(!fEtaCut.IsInRange(track->Eta())) return false;
45  if(!fPhiCut.IsInRange(track->Phi())) return false;
46  return true;
47 }
48 
49 } /* namespace EMCalTriggerPtAnalysis */
ClassImp(AliAnalysisTaskCRC) AliAnalysisTaskCRC