AliPhysics  63e47e1 (63e47e1)
AliAnalysisTaskConvJet.h
Go to the documentation of this file.
1 #ifndef AliAnalysisTaskConvJet_H
2 #define AliAnalysisTaskConvJet_H
3 
11 /* Copyright(c) 1998-2016, ALICE Experiment at CERN, All rights reserved. *
12  * See cxx source for full Copyright notice */
13 
15 #include "THistManager.h"
16 
26  public:
27 
29  AliAnalysisTaskConvJet(const char *name) ;
30  virtual ~AliAnalysisTaskConvJet() ;
31 
33  void Terminate(Option_t *option) ;
34 
36  const char *ntracks = "usedefault",
37  const char *nclusters = "usedefault",
38  const char* ncells = "usedefault",
39  const char *suffix = "");
40 
41  Double_t GetNJets() {return fNJets;}
42  std::vector<Double_t> GetVectorJetPt() {return fVectorJetPt;}
43  std::vector<Double_t> GetVectorJetEta() {return fVectorJetEta;}
44  std::vector<Double_t> GetVectorJetPhi() {return fVectorJetPhi;}
45  std::vector<Double_t> GetVectorJetR() {return fVectorJetR;}
46 
48  AliJetContainer* jetCont = 0;
49  TIter next(&fJetCollArray);
50  Double_t radius = -1;
51  while ((jetCont = static_cast<AliJetContainer*>(next()))) {
52  radius = jetCont->GetJetRadius();
53  }
54  return radius;
55  }
56 
57  protected:
58  void ExecOnce() ;
60  Bool_t Run() ;
61 
62  void DoJetLoop() ;
63 
65  std::vector<Double_t> fVectorJetPt ;
66  std::vector<Double_t> fVectorJetEta ;
67  std::vector<Double_t> fVectorJetPhi ;
68  std::vector<Double_t> fVectorJetR ;
69 
70  private:
73 
75  ClassDef(AliAnalysisTaskConvJet, 1);
77 };
78 #endif
double Double_t
Definition: External.C:58
std::vector< Double_t > fVectorJetPhi
std::vector< Double_t > fVectorJetR
std::vector< Double_t > GetVectorJetEta()
std::vector< Double_t > GetVectorJetPhi()
std::vector< Double_t > fVectorJetPt
AliAnalysisTaskConvJet & operator=(const AliAnalysisTaskConvJet &)
std::vector< Double_t > GetVectorJetPt()
TObjArray fJetCollArray
jet collection array
Float_t GetJetRadius() const
std::vector< Double_t > fVectorJetEta
static AliAnalysisTaskConvJet * AddTask_GammaConvJet(const char *ntracks="usedefault", const char *nclusters="usedefault", const char *ncells="usedefault", const char *suffix="")
Base task in the EMCAL jet framework.
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
std::vector< Double_t > GetVectorJetR()
Implementation of a sample jet analysis task.
void Terminate(Option_t *option)
Container for jet within the EMCAL jet framework.