AliPhysics  1a228f7 (1a228f7)
 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 
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 
111  const char* ntracks = "usedefault",
112  const char* nclusters = "usedefault",
113  const char* ncells = "usedefault",
114  const char* tag = "CDF"
115  );
116 
128  AliJetContainer* jetCont,
129  Float_t jetptmin = 1.,
130  Float_t jetptmax = 500.,
131  Float_t jetareacutperc = 0.,
132  Int_t leadhadtype = 2,
133  Int_t nLeadJets = 1,
134  Float_t mintrackpt = 0.15,
135  Float_t maxtrackpt = 1000.
136  );
137 
138 }
139 
140 #endif
141 
142 // 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
double Double_t
Definition: External.C:58
std::vector< Int_t > SortTracksPt(AliVEvent *event)
Container for particles within the EMCAL framework.
TObject * jetContSetParams(AliJetContainer *jetCont, Float_t jetptmin=1., Float_t jetptmax=500., Float_t jetareacutperc=0., Int_t leadhadtype=2, Int_t nLeadJets=1, Float_t mintrackpt=0.15, Float_t maxtrackpt=1000.)
int Int_t
Definition: External.C:63
float Float_t
Definition: External.C:68
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
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
AliAnalysisTaskEmcalJetCDF & operator=(const AliAnalysisTaskEmcalJetCDF &)
Double_t Z_ptot(const AliEmcalJet *jet, const AliVParticle *trk)
Container for jet within the EMCAL jet framework.
bool operator()(const ptidx_pair &p1, const ptidx_pair &p2)
Analysis of jet shapes and FF of all jets and leading jets.