AliPhysics  master (3d17d9d)
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 
76  Double_t fNJets; // Number of reconstructed jets
77  std::vector<Double_t> fVectorJetPt; // Vector for the pt of the reconstructed jets
78  std::vector<Double_t> fVectorJetPx; // Vector for the px of the reconstructed jets
79  std::vector<Double_t> fVectorJetPy; // Vector for the py of the reconstructed jets
80  std::vector<Double_t> fVectorJetPz; // Vector for the pz of the reconstructed jets
81  std::vector<Double_t> fVectorJetEta; // Vector for the eta of the reconstructed jets
82  std::vector<Double_t> fVectorJetPhi; // Vector for the phi of the reconstructed jets
83  std::vector<Double_t> fVectorJetR; // Vector for the radius of the reconstructed jets
84 
85  Double_t fTrueNJets; // Number of true jets
86  std::vector<Double_t> fTrueVectorJetPt; // Vector for the pt of the true jets
87  std::vector<Double_t> fTrueVectorJetPx; // Vector for the px of the true jets
88  std::vector<Double_t> fTrueVectorJetPy; // Vector for the py of the true jets
89  std::vector<Double_t> fTrueVectorJetPz; // Vector for the pz of the true jets
90  std::vector<Double_t> fTrueVectorJetEta; // Vector for the eta of the true jets
91  std::vector<Double_t> fTrueVectorJetPhi; // Vector for the phi of the true jets
92  std::vector<Double_t> fTrueVectorJetR; // Vector for the radius of the true jets
93 
94  private:
97 
99  ClassDef(AliAnalysisTaskConvJet, 11);
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.