AliPhysics  e59a9ba (e59a9ba)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskEmcalClustersRef.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKEMCALCLUSTERSREF_H
2 #define ALIANALYSISTASKEMCALCLUSTERSREF_H
3 /* Copyright(c) 1998-2015, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 #include "AliAnalysisTaskSE.h"
7 #include "AliCutValueRange.h"
8 
9 class AliAnalysisUtils;
10 class AliEMCALGeometry;
11 
12 class TArrayD;
13 class TClonesArray;
14 class THistManager;
15 class TList;
16 class TString;
17 
18 namespace EMCalTriggerPtAnalysis {
19 
20 class AliEmcalTriggerOfflineSelection;
21 
22 class AliAnalysisTaskEmcalClustersRef : public AliAnalysisTaskSE {
23 public:
25  AliAnalysisTaskEmcalClustersRef(const char *name);
27 
29  void UserExec(Option_t *);
30  void Terminate(Option_t *) {}
31 
33  void SetClusterContainer(TString clustercontname) { fClusterContainer = clustercontname; }
34  void SetCreateTriggerStringFromPatches(Bool_t doUsePatches) { fTriggerStringFromPatches = doUsePatches; }
35 
36  void SetRequestAnalysisUtil(Bool_t doRequest) { fRequestAnalysisUtil = doRequest; }
37  void SetCentralityRange(double min, double max) { fCentralityRange.SetLimits(min, max); fRequestCentrality = true; }
38  void SetVertexRange(double min, double max) { fVertexRange.SetLimits(min, max); }
39 
40 protected:
41 
42  void GetPatchBoundaries(TObject *o, Double_t *boundaries) const;
43  bool IsOfflineSimplePatch(TObject *o) const;
44  bool SelectDCALPatch(TObject *o) const;
45  bool SelectSingleShowerPatch(TObject *o) const;
46  bool SelectJetPatch(TObject *o) const;
47  double GetPatchEnergy(TObject *o) const;
48 
49  void CreateEnergyBinning(TArrayD& binning) const;
50  void CreateLinearBinning(TArrayD& binning, int nbins, double min, double max) const;
51  void FillClusterHistograms(TString triggerclass, double energy, double transversenergy, double eta, double phi, TList *triggerpatches);
52  TString GetFiredTriggerClassesFromPatches(const TClonesArray* triggerpatches) const;
53  void FindPatchesForTrigger(TString triggerclass, const TClonesArray * triggerpatches, TList &foundpatches) const;
54  Bool_t CorrelateToTrigger(Double_t etaclust, Double_t phiclust, TList *triggerpatches) const;
55 
56  AliAnalysisUtils *fAnalysisUtil;
59  AliEMCALGeometry *fGeometry;
61 
67 
68 private:
71 
73 };
74 
75 } /* namespace EMCalTriggerPtAnalysis */
76 
77 #endif /* ALIANALYSISTASKEMCALCLUSTERSREF_H */
void GetPatchBoundaries(TObject *o, Double_t *boundaries) const
void FillClusterHistograms(TString triggerclass, double energy, double transversenergy, double eta, double phi, TList *triggerpatches)
Bool_t CorrelateToTrigger(Double_t etaclust, Double_t phiclust, TList *triggerpatches) const
AliAnalysisTaskEmcalClustersRef & operator=(const AliAnalysisTaskEmcalClustersRef &)
void SetOfflineTriggerSelection(AliEmcalTriggerOfflineSelection *sel)
void CreateLinearBinning(TArrayD &binning, int nbins, double min, double max) const
ClassDef(AliAnalysisTaskEmcalClustersRef, 1)
energy
TString GetFiredTriggerClassesFromPatches(const TClonesArray *triggerpatches) const
Container class for histograms for the high- charged particle analysis.
Definition: THistManager.h:43
const Int_t nbins
void FindPatchesForTrigger(TString triggerclass, const TClonesArray *triggerpatches, TList &foundpatches) const