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. *
7 * Primary Authors: Jochen Thaeder <thaeder@kip.uni-heidelberg.de> *
8 * for The ALICE HLT Project. *
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 **************************************************************************/
19 /** @file AliHLTJETJetCuts.h
20 @author Jochen Thaeder
22 @brief Cuts for jet input tracks
25 // see header file for class documentation
27 // refer to README to build package
29 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
31 #include "AliHLTJETJetCuts.h"
35 /** ROOT macro for the implementation of ROOT specific class methods */
36 ClassImp(AliHLTJETJetCuts)
39 * ---------------------------------------------------------------------------------
40 * Constructor / Destructor
41 * ---------------------------------------------------------------------------------
44 // #################################################################################
45 AliHLTJETJetCuts::AliHLTJETJetCuts(const Char_t* name, const Char_t* title )
47 AliAnalysisCuts(name, title),
49 // see header file for class documentation
51 // refer to README to build package
53 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
57 // #################################################################################
58 AliHLTJETJetCuts::~AliHLTJETJetCuts() {
59 // see header file for class documentation
64 * ---------------------------------------------------------------------------------
66 * ---------------------------------------------------------------------------------
69 // #################################################################################
70 Bool_t AliHLTJETJetCuts::IsSelected( TObject *obj ) {
71 // see header file for class documentation
73 Bool_t bResult = kTRUE;
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));
80 HLTError("Unknown object type %s", obj->ClassName() );
84 HLTError("Unknown object dd type %s", obj->ClassName() );
89 // #################################################################################
90 Bool_t AliHLTJETJetCuts::IsSelected( AliHLTJETConeJetCandidate* jet ) {
91 // see header file for class documentation
93 Bool_t bResult = kTRUE;
96 if ( jet->GetEt() < fEtMin )
102 // #################################################################################
103 Bool_t AliHLTJETJetCuts::IsSelected( AliAODJet* jet ) {
104 // see header file for class documentation
106 Bool_t bResult = kTRUE;
109 if ( jet->Pt() < fEtMin )