]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGGA/EMCALTasks/AliEsdJetTask.h
have jet task and wrapper
[u/mrichter/AliRoot.git] / PWGGA / EMCALTasks / AliEsdJetTask.h
CommitLineData
48d874ff 1#ifndef ALIESDJETTASK_H
2#define ALIESDJETTASK_H
3
4// $Id$
5
6class TClonesArray;
7class AliESDtrackCuts;
8
9#include "AliAnalysisTaskSE.h"
10
11class AliEsdJetTask : public AliAnalysisTaskSE {
12 public:
13 AliEsdJetTask(const char *name=0);
14 virtual ~AliEsdJetTask();
15
16 void UserCreateOutputObjects();
17 void UserExec(Option_t *option);
18 void Terminate(Option_t *option);
19
20 void SetAlgo(Int_t a) { fAlgo = a; }
21 void SetCaloName(const char *n) { fCaloName = n; }
22 void SetHadCorr(Double_t c) { fHadCorr = c; }
23 void SetJetsName(const char *n) { fJetsName = n; }
24 void SetPrimTrackCuts(AliESDtrackCuts *c) { fPrimTrCuts = c; }
25 void SetPrimTracksName(const char *n) { fPrimTracksName = n; }
26 void SetRadius(Double_t r) { fRadius = r; }
27 void SetType(Int_t t) { fType = t; }
28
29 protected:
30 void FindJets(TObjArray *tracks, TObjArray *clus, Int_t algo, Double_t radius);
31
32 AliESDtrackCuts *fPrimTrCuts; // track cuts
33 TString fPrimTracksName; // name of track collection (if "" use branch)
34 TString fJetsName; // name of jet collection
35 TString fCaloName; // name of calo collection
36 Int_t fAlgo; // algo (0==kt, 1==antikt)
37 Double_t fRadius; // jet radius
38 Int_t fType; // jet type (0=all, 1=ch, 2=neutral)
39 Double_t fHadCorr; // hadronic correction
40 TClonesArray *fJets; //!jet collection
41 TClonesArray *fNeutrals; //!neutrals collection
42
43 private:
44 AliEsdJetTask(const AliEsdJetTask&); // not implemented
45 AliEsdJetTask &operator=(const AliEsdJetTask&); // not implemented
46
47 ClassDef(AliEsdJetTask, 1) // Jet producing task
48};
49#endif