AliPhysics  e59a9ba (e59a9ba)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskEmcalJetCDF.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKEMCALJETCDF_H
2 #define ALIANALYSISTASKEMCALJETCDF_H
3 
9 /* Copyright(c) 1998-2016, ALICE Experiment at CERN, All rights reserved. *
10  * See cxx source for full Copyright notice */
11 
13 #include <THistManager.h>
14 
21  {
22  public:
23 
25  AliAnalysisTaskEmcalJetCDF ( const char *name );
27 
29  void Terminate ( Option_t *option );
30 
32 
33  protected:
34  void ExecOnce();
35  Bool_t Run() ;
36 
39  Bool_t FillHistograms() ;
40 
44  TObject* GetHistogram ( const char* histName );
45 
46  private:
47  AliAnalysisTaskEmcalJetCDF ( const AliAnalysisTaskEmcalJetCDF& ); // not implemented
49 
51  ClassDef ( AliAnalysisTaskEmcalJetCDF, 7 );
53 
54  };
55 
56 namespace NS_AliAnalysisTaskEmcalJetCDF {
58  typedef std::pair<Double_t, Int_t> ptidx_pair;
59 
61  struct sort_descend
62  {
63  bool operator () ( const ptidx_pair &p1, const ptidx_pair &p2 ) { return p1.first > p2.first ; }
64  };
65 
69  std::vector<Int_t> SortTracksPt ( AliVEvent *event );
70 
74  std::vector<Int_t> SortTracksPt ( AliParticleContainer *track_container );
75 
80  Double_t Z_ptot ( const AliEmcalJet* jet, const AliVParticle* trk ); // Get Z of constituent trk ; p total
81 
86  Double_t Z_pt ( const AliEmcalJet* jet, const AliVParticle* trk ); // Get Z of constituent trk ; pt
87 
90  inline Double_t Xi ( Double_t z ) { return TMath::Log ( 1/z ); } // Get Xi of value z
91 
96  Double_t DeltaR ( const AliVParticle* part1, const AliVParticle* part2 );
97 
102  Int_t IdxInArray ( Int_t index, TArrayI &array );
103 
110  TObject* AddTaskEmcalJetCDF (
111  const char* ntracks = "usedefault",
112  const char* nclusters = "usedefault",
113  const char* ncells = "usedefault",
114  const char* tag = "CDF"
115  );
116 
117 }
118 
119 #endif
120 
121 // kate: indent-mode none; indent-width 2; replace-tabs on;
THistManager fHistManager
Histogram manager.
std::pair< Double_t, Int_t > ptidx_pair
(pt,index) pair
std::vector< Int_t > SortTracksPt(AliVEvent *event)
Container for particles within the EMCAL framework.
TObject * GetHistogram(const char *histName)
Double_t Z_pt(const AliEmcalJet *jet, const AliVParticle *trk)
virtual ~AliAnalysisTaskEmcalJetCDF()
Destructor.
Double_t DeltaR(const AliVParticle *part1, const AliVParticle *part2)
Int_t IdxInArray(Int_t index, TArrayI &array)
Base task in the EMCAL jet framework.
TObject * AddTaskEmcalJetCDF(const char *ntracks="usedefault", const char *nclusters="usedefault", const char *ncells="usedefault", const char *tag="CDF")
Represent a jet reconstructed using the EMCal jet framework.
Definition: AliEmcalJet.h:44
Container class for histograms for the high- charged particle analysis.
Definition: THistManager.h:43
functional for sorting pair by first element - descending
AliAnalysisTaskEmcalJetCDF & operator=(const AliAnalysisTaskEmcalJetCDF &)
Double_t Z_ptot(const AliEmcalJet *jet, const AliVParticle *trk)
bool operator()(const ptidx_pair &p1, const ptidx_pair &p2)
Analysis of jet shapes and FF of all jets and leading jets.