]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLTANALYSIS/JET/AliHLTJETJetCuts.cxx
Split: fixed more module incpaths
[u/mrichter/AliRoot.git] / HLTANALYSIS / JET / AliHLTJETJetCuts.cxx
1 //-*- Mode: C++ -*-
2 // $Id: AliHLTJETJetCuts.cxx  $
3 /**************************************************************************
4  * This file is property of and copyright by the ALICE HLT Project        * 
5  * ALICE Experiment at CERN, All rights reserved.                         *
6  *                                                                        *
7  * Primary Authors: Jochen Thaeder <thaeder@kip.uni-heidelberg.de>        *
8  *                  for The ALICE HLT Project.                            *
9  *                                                                        *
10  * Permission to use, copy, modify and distribute this software and its   *
11  * documentation strictly for non-commercial purposes is hereby granted   *
12  * without fee, provided that the above copyright notice appears in all   *
13  * copies and that both the copyright notice and this permission notice   *
14  * appear in the supporting documentation. The authors make no claims     *
15  * about the suitability of this software for any purpose. It is          *
16  * provided "as is" without express or implied warranty.                  *
17  **************************************************************************/
18
19 /** @file   AliHLTJETJetCuts.h
20     @author Jochen Thaeder
21     @date   
22     @brief  Cuts for jet input tracks
23 */
24
25 // see header file for class documentation
26 // or
27 // refer to README to build package
28 // or
29 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt   
30
31 #include "AliHLTJETJetCuts.h"
32
33 using namespace std;
34
35 /** ROOT macro for the implementation of ROOT specific class methods */
36 ClassImp(AliHLTJETJetCuts)
37
38 /*
39  * ---------------------------------------------------------------------------------
40  *                            Constructor / Destructor
41  * ---------------------------------------------------------------------------------
42  */
43   
44 // #################################################################################
45 AliHLTJETJetCuts::AliHLTJETJetCuts(const Char_t* name, const Char_t* title )
46   : 
47   AliAnalysisCuts(name, title),
48   fEtMin(0.) {
49   // see header file for class documentation
50   // or
51   // refer to README to build package
52   // or
53   // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
54
55 }
56
57 // #################################################################################
58 AliHLTJETJetCuts::~AliHLTJETJetCuts() {
59   // see header file for class documentation
60
61 }
62
63 /*
64  * ---------------------------------------------------------------------------------
65  *                                   Selection
66  * ---------------------------------------------------------------------------------
67  */
68
69 // #################################################################################
70 Bool_t AliHLTJETJetCuts::IsSelected( TObject *obj ) {
71   // see header file for class documentation
72
73   Bool_t bResult = kTRUE;
74
75   if ( obj->IsA() == AliHLTJETConeJetCandidate::Class() )
76     bResult = IsSelected( static_cast<AliHLTJETConeJetCandidate*> (obj));
77   else if ( obj->IsA() == AliAODJet::Class() )
78     bResult = IsSelected( static_cast<AliAODJet*> (obj));
79   else {
80     HLTError("Unknown object type %s", obj->ClassName() );
81     bResult = kFALSE;
82   }
83   
84    HLTError("Unknown object dd type %s", obj->ClassName() );
85
86   return bResult;
87 }
88
89 // #################################################################################
90 Bool_t AliHLTJETJetCuts::IsSelected( AliHLTJETConeJetCandidate* jet ) {
91   // see header file for class documentation
92
93   Bool_t bResult = kTRUE;
94
95   // -- cut on min Pt
96   if ( jet->GetEt() < fEtMin )
97     bResult = kFALSE;
98
99   return bResult;
100 }
101
102 // #################################################################################
103 Bool_t AliHLTJETJetCuts::IsSelected( AliAODJet* jet ) {
104   // see header file for class documentation
105
106   Bool_t bResult = kTRUE;
107
108   // -- cut on min Pt
109   if ( jet->Pt() < fEtMin )
110     bResult = kFALSE;
111
112   return bResult;
113 }