AliPhysics  b0c77bb (b0c77bb)
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> GetVectorJetPx() {return fVectorJetPx;}
44  std::vector<Double_t> GetVectorJetPy() {return fVectorJetPy;}
45  std::vector<Double_t> GetVectorJetPz() {return fVectorJetPz;}
46  std::vector<Double_t> GetVectorJetEta() {return fVectorJetEta;}
47  std::vector<Double_t> GetVectorJetPhi() {return fVectorJetPhi;}
48  std::vector<Double_t> GetVectorJetArea() {return fVectorJetR;}
49 
51  std::vector<Double_t> GetTrueVectorJetPt() {return fTrueVectorJetPt;}
52  std::vector<Double_t> GetTrueVectorJetPx() {return fTrueVectorJetPx;}
53  std::vector<Double_t> GetTrueVectorJetPy() {return fTrueVectorJetPy;}
54  std::vector<Double_t> GetTrueVectorJetPz() {return fTrueVectorJetPz;}
55  std::vector<Double_t> GetTrueVectorJetEta() {return fTrueVectorJetEta;}
56  std::vector<Double_t> GetTrueVectorJetPhi() {return fTrueVectorJetPhi;}
57  std::vector<Double_t> GetTrueVectorJetArea() {return fTrueVectorJetR;}
58 
60  AliJetContainer* jetCont = 0;
61  TIter next(&fJetCollArray);
62  Double_t radius = -1;
63  while ((jetCont = static_cast<AliJetContainer*>(next()))) {
64  radius = jetCont->GetJetRadius();
65  }
66  return radius;
67  }
68 
69  protected:
70  void ExecOnce() ;
72  Bool_t Run() ;
73 
74  void DoJetLoop() ;
75 
77  std::vector<Double_t> fVectorJetPt ;
78  std::vector<Double_t> fVectorJetPx ;
79  std::vector<Double_t> fVectorJetPy ;
80  std::vector<Double_t> fVectorJetPz ;
81  std::vector<Double_t> fVectorJetEta ;
82  std::vector<Double_t> fVectorJetPhi ;
83  std::vector<Double_t> fVectorJetR ;
84 
86  std::vector<Double_t> fTrueVectorJetPt ;
87  std::vector<Double_t> fTrueVectorJetPx ;
88  std::vector<Double_t> fTrueVectorJetPy ;
89  std::vector<Double_t> fTrueVectorJetPz ;
90  std::vector<Double_t> fTrueVectorJetEta ;
91  std::vector<Double_t> fTrueVectorJetPhi ;
92  std::vector<Double_t> fTrueVectorJetR ;
93 
94  private:
97 
99  ClassDef(AliAnalysisTaskConvJet, 9);
101 };
102 #endif
double Double_t
Definition: External.C:58
std::vector< Double_t > GetTrueVectorJetPz()
std::vector< Double_t > fVectorJetPhi
std::vector< Double_t > GetVectorJetPy()
std::vector< Double_t > GetTrueVectorJetPy()
std::vector< Double_t > fTrueVectorJetPz
std::vector< Double_t > GetVectorJetPx()
std::vector< Double_t > fVectorJetR
std::vector< Double_t > fTrueVectorJetEta
std::vector< Double_t > fVectorJetPx
std::vector< Double_t > GetVectorJetEta()
std::vector< Double_t > GetVectorJetArea()
std::vector< Double_t > fTrueVectorJetPt
std::vector< Double_t > GetTrueVectorJetArea()
std::vector< Double_t > GetVectorJetPhi()
std::vector< Double_t > GetTrueVectorJetPx()
std::vector< Double_t > fVectorJetPt
AliAnalysisTaskConvJet & operator=(const AliAnalysisTaskConvJet &)
std::vector< Double_t > fVectorJetPy
std::vector< Double_t > fTrueVectorJetR
std::vector< Double_t > GetTrueVectorJetPt()
std::vector< Double_t > fTrueVectorJetPx
std::vector< Double_t > GetVectorJetPt()
TObjArray fJetCollArray
jet collection array
std::vector< Double_t > GetVectorJetPz()
Float_t GetJetRadius() const
std::vector< Double_t > fVectorJetEta
std::vector< Double_t > GetTrueVectorJetEta()
std::vector< Double_t > fTrueVectorJetPy
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.
std::vector< Double_t > GetTrueVectorJetPhi()
std::vector< Double_t > fTrueVectorJetPhi
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
Implementation of a sample jet analysis task.
std::vector< Double_t > fVectorJetPz
void Terminate(Option_t *option)
Container for jet within the EMCAL jet framework.