AliPhysics  ec707b8 (ec707b8)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
AliAnalysisTaskTrackDensity.h
Go to the documentation of this file.
1 /*
2  * AliAnalysisTaskTrackDensity.h
3  *
4  * Created on: Mar 2, 2016
5  * Author: markus
6  */
7 
8 #ifndef ALIANALYSISTASKTRACKDENSITY_H
9 #define ALIANALYSISTASKTRACKDENSITY_H
10 
11 #include "AliAnalysisTaskEmcalJet.h"
12 
13 #include <TArrayD.h>
14 #include <TString.h>
15 
16 class AliEmcalJet;
18 
19 namespace EMCalTriggerPtAnalysis {
20 
21 class AliAnalysisTaskTrackDensity : public AliAnalysisTaskEmcalJet {
22 public:
24  AliAnalysisTaskTrackDensity(const char *name);
26 
27  void SetJetRadiusBinning(TArrayD binning) { fJetRadii = binning; }
28  void SetJtPtBinning(TArrayD binning) { fJetPtBins = binning; }
29  void SetParticlePtSteps(TArrayD binning) { fPtMinSteps = binning; }
30  void SetParticlePtBinning(TArrayD binning) { fParticlePtBinning = binning; }
31 
32  void SetMCJetContainer(TString contname) { fMCJetContainerName = contname; }
33  void SetMCParticleContainer(TString contname) { fMCParticleContainerName = contname; }
34 
35 protected:
36 
37  virtual void UserCreateOutputObjects();
38  virtual bool Run();
39 
40  int GetParticleMultiplicity(const AliEmcalJet &jet, const AliParticleContainer &partcont, double ptmin, double ptmax, double rmin, double rmax) const;
41  void FindJetPtBin(const AliEmcalJet *const jet, double &ptmin, double &ptmax) const;
42 
43 private:
44  THistManager *fHistos;
45 
48 
49  TArrayD fJetRadii;
50  TArrayD fJetPtBins;
51  TArrayD fPtMinSteps;
53 
55 };
56 
57 } /* namespace EMCalTriggerPtAnalysis */
58 
59 #endif /* ALIANALYSISTASKTRACKDENSITY_H */
TString fMCParticleContainerName
Name of the MC jet container.
void FindJetPtBin(const AliEmcalJet *const jet, double &ptmin, double &ptmax) const
int GetParticleMultiplicity(const AliEmcalJet &jet, const AliParticleContainer &partcont, double ptmin, double ptmax, double rmin, double rmax) const
Container for particles within the EMCAL framework.
const Double_t ptmax
const Double_t ptmin
TArrayD fJetRadii
Name of the MC particle container.