AliPhysics  608b256 (608b256)
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  std::vector<Double_t> GetVectorJetNChargPart() {return fVectorJetNChargPart;}
50 
52  std::vector<Double_t> GetTrueVectorJetPt() {return fTrueVectorJetPt;}
53  std::vector<Double_t> GetTrueVectorJetPx() {return fTrueVectorJetPx;}
54  std::vector<Double_t> GetTrueVectorJetPy() {return fTrueVectorJetPy;}
55  std::vector<Double_t> GetTrueVectorJetPz() {return fTrueVectorJetPz;}
56  std::vector<Double_t> GetTrueVectorJetEta() {return fTrueVectorJetEta;}
57  std::vector<Double_t> GetTrueVectorJetPhi() {return fTrueVectorJetPhi;}
58  std::vector<Double_t> GetTrueVectorJetArea() {return fTrueVectorJetR;}
59  std::vector<Double_t> GetTrueVectorJetNChargPart() {return fTrueVectorJetNChargPart;}
60 
62  AliJetContainer* jetCont = 0;
63  TIter next(&fJetCollArray);
64  Double_t radius = -1;
65  while ((jetCont = static_cast<AliJetContainer*>(next()))) {
66  radius = jetCont->GetJetRadius();
67  }
68  return radius;
69  }
70 
71  protected:
72  void ExecOnce();
74  Bool_t Run();
75 
76  void DoJetLoop();
77 
78  Double_t fNJets; // Number of reconstructed jets
79  std::vector<Double_t> fVectorJetPt; // Vector for the pt of the reconstructed jets
80  std::vector<Double_t> fVectorJetPx; // Vector for the px of the reconstructed jets
81  std::vector<Double_t> fVectorJetPy; // Vector for the py of the reconstructed jets
82  std::vector<Double_t> fVectorJetPz; // Vector for the pz of the reconstructed jets
83  std::vector<Double_t> fVectorJetEta; // Vector for the eta of the reconstructed jets
84  std::vector<Double_t> fVectorJetPhi; // Vector for the phi of the reconstructed jets
85  std::vector<Double_t> fVectorJetR; // Vector for the radius of the reconstructed jets
86  std::vector<Double_t> fVectorJetNChargPart; // Vector for the number of charged particles in the reconstructed jets
87 
88  Double_t fTrueNJets; // Number of true jets
89  std::vector<Double_t> fTrueVectorJetPt; // Vector for the pt of the true jets
90  std::vector<Double_t> fTrueVectorJetPx; // Vector for the px of the true jets
91  std::vector<Double_t> fTrueVectorJetPy; // Vector for the py of the true jets
92  std::vector<Double_t> fTrueVectorJetPz; // Vector for the pz of the true jets
93  std::vector<Double_t> fTrueVectorJetEta; // Vector for the eta of the true jets
94  std::vector<Double_t> fTrueVectorJetPhi; // Vector for the phi of the true jets
95  std::vector<Double_t> fTrueVectorJetR; // Vector for the radius of the true jets
96  std::vector<Double_t> fTrueVectorJetNChargPart; // Vector for the number of charged particles in the true jets
97 
98  private:
101 
103  ClassDef(AliAnalysisTaskConvJet, 10);
105 };
106 #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 > fVectorJetNChargPart
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 > GetTrueVectorJetNChargPart()
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 > fTrueVectorJetNChargPart
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 > GetVectorJetNChargPart()
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.