AliPhysics  64f4410 (64f4410)
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 
12 #include <vector>
13 
14 #include <TArrayD.h>
15 #include <TString.h>
16 
17 class AliEmcalJet;
19 class AliVEvent;
21 
22 namespace EMCalTriggerPtAnalysis {
23 
25 public:
27  AliAnalysisTaskTrackDensity(const char *name);
29 
30  void SetJetRadiusBinning(TArrayD binning) { fJetRadii = binning; }
31  void SetJtPtBinning(TArrayD binning) { fJetPtBins = binning; }
32  void SetParticlePtSteps(TArrayD binning) { fPtMinSteps = binning; }
33  void SetParticlePtBinning(TArrayD binning) { fParticlePtBinning = binning; }
34 
35  void SetMCJetContainer(TString contname) { fMCJetContainerName = contname; }
37  void SetTrackSelection(AliEmcalTrackSelection *trackSelection) { fTrackSelection = trackSelection; }
38 
39 protected:
40 
41  virtual void UserCreateOutputObjects();
42  virtual bool Run();
43 
44  int GetParticleMultiplicity(const AliEmcalJet &jet, const AliParticleContainer &partcont, double ptmin, double ptmax, double rmin, double rmax, const std::vector<int> *labels = NULL) const;
45  void FindJetPtBin(const AliEmcalJet *const jet, double &ptmin, double &ptmax) const;
46  void GetAcceptLabels(const AliVEvent &event, std::vector<int> &ref) const;
47 
48 private:
51 
54 
59 
60  ClassDef(AliAnalysisTaskTrackDensity, 1);
61 };
62 
63 } /* namespace EMCalTriggerPtAnalysis */
64 
65 #endif /* ALIANALYSISTASKTRACKDENSITY_H */
Interface for virtual track selection.
TString fMCParticleContainerName
Name of the MC jet container.
void FindJetPtBin(const AliEmcalJet *const jet, double &ptmin, double &ptmax) const
Container for particles within the EMCAL framework.
int GetParticleMultiplicity(const AliEmcalJet &jet, const AliParticleContainer &partcont, double ptmin, double ptmax, double rmin, double rmax, const std::vector< int > *labels=NULL) const
const Double_t ptmax
const Double_t ptmin
void SetTrackSelection(AliEmcalTrackSelection *trackSelection)
void GetAcceptLabels(const AliVEvent &event, std::vector< int > &ref) const
Analysis of high- tracks in triggered events.
Base task in the EMCAL jet framework.
Represent a jet reconstructed using the EMCal jet framework.
Definition: AliEmcalJet.h:51
Container class for histograms.
Definition: THistManager.h:99
TArrayD fJetRadii
Name of the MC particle container.
virtual bool Run()
Run function. This is the core function of the analysis and contains the user code. Therefore users have to implement this function.