AliPhysics  695988a (695988a)
 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 
37  Double_t Z_ptot ( const AliEmcalJet* jet, const AliVParticle* trk ) const; // Get Z of constituent trk ; p total
38 
43  Double_t Z_pt ( const AliEmcalJet* jet, const AliVParticle* trk ) const; // Get Z of constituent trk ; pt
44 
47  Double_t Xi ( Double_t z ) const { return TMath::Log ( 1/z ); } // Get Xi of value z
48 
49  protected:
50  void ExecOnce();
51  Bool_t Run() ;
52 
55  Bool_t FillHistograms() ;
56 
60  std::vector<Int_t> SortTracksPt ( AliVEvent *event ) const;
61 
65  std::vector<Int_t> SortTracksPt ( AliParticleContainer *track_container ) const;
66 
67 // /// Return dR dinstance in eta,phi plane between 2 AliVParticle derived objects
68 // /// \param AliVParticle* particle1
69 // /// \param AliVParticle* particle2
70 // /// \return distance
71 // Double_t DeltaR ( const AliVParticle *part1, const AliVParticle *part2 );
72 
73 // /// Search for index(int) in array of ints
74 // /// \param index - the int to be searched
75 // /// \param array of ints
76 // /// \return kTRUE if found
77 // Bool_t IdxInArray ( Int_t index, TArrayI &array );
78 
82  TObject* GetHistogram ( const char* histName );
83 
84  private:
86  typedef std::pair<Double_t, Int_t> ptidx_pair;
87 
89  struct sort_descend
90  {
91  bool operator () ( const ptidx_pair &p1, const ptidx_pair &p2 ) { return p1.first > p2.first ; }
92  };
93 
94  AliAnalysisTaskEmcalJetCDF ( const AliAnalysisTaskEmcalJetCDF& ); // not implemented
96 
98  ClassDef ( AliAnalysisTaskEmcalJetCDF, 6 );
100 
101  };
102 #endif
103 
104 // kate: indent-mode none; indent-width 2; replace-tabs on;
THistManager fHistManager
Histogram manager.
Double_t Z_pt(const AliEmcalJet *jet, const AliVParticle *trk) const
bool operator()(const ptidx_pair &p1, const ptidx_pair &p2)
Container for particles within the EMCAL framework.
TObject * GetHistogram(const char *histName)
Double_t Xi(Double_t z) const
virtual ~AliAnalysisTaskEmcalJetCDF()
Destructor.
Base task in the EMCAL jet framework.
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
std::pair< Double_t, Int_t > ptidx_pair
(pt,index) pair
AliAnalysisTaskEmcalJetCDF & operator=(const AliAnalysisTaskEmcalJetCDF &)
Double_t Z_ptot(const AliEmcalJet *jet, const AliVParticle *trk) const
functional for sorting pair by first element - descending
Analysis of jet shapes and FF of all jets and leading jets.
std::vector< Int_t > SortTracksPt(AliVEvent *event) const