AliPhysics  c0d7b22 (c0d7b22)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskEmcalPatchesRef.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKEMCALPATCHESREF_H
2 #define ALIANALYSISTASKEMCALPATCHESREF_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 THistManager;
11 class TArrayD;
12 class TString;
13 
14 namespace EMCalTriggerPtAnalysis {
15 
16 class AliEmcalTriggerOfflineSelection;
17 
18 class AliAnalysisTaskEmcalPatchesRef : public AliAnalysisTaskSE {
19 public:
21  AliAnalysisTaskEmcalPatchesRef(const char *name);
23 
25  void UserExec(Option_t *);
26  void Terminate(Option_t *) {}
27 
29  void SetCreateTriggerStringFromPatches(Bool_t doUsePatches) { fTriggerStringFromPatches = doUsePatches; }
30  void SetRequestAnalysisUtil(bool doUse) { fRequestAnalysisUtil = doUse; }
31  void SetCentralityRange(double min, double max) { fCentralityRange.SetLimits(min,max); }
32  void SetVertexRange(double min, double max) { fVertexRange.SetLimits(min, max); }
33 
34 protected:
35 
36  void GetPatchBoundaries(TObject *o, Double_t *boundaries) const;
37  bool IsOfflineSimplePatch(TObject *o) const;
38  bool SelectDCALPatch(TObject *o) const;
39  bool SelectSingleShowerPatch(TObject *o) const;
40  bool SelectJetPatch(TObject *o) const;
41  double GetPatchEnergy(TObject *o) const;
42 
43  void CreateEnergyBinning(TArrayD& binning) const;
44  void CreateLinearBinning(TArrayD& binning, int nbins, double min, double max) const;
45  void FillPatchHistograms(TString triggerclass, TString patchname, double energy, double transverseenergy, double eta, double phi, int col, int row);
46  TString GetFiredTriggerClassesFromPatches(const TClonesArray* triggerpatches) const;
47 
48  AliAnalysisUtils *fAnalysisUtil;
51 
54 
57 
58 private:
61 
63 
64 };
65 
66 } /* namespace EMCalTriggerPtAnalysis */
67 
68 #endif /* ALIANALYSISTASKEMCALPATCHESREF_H */
void FillPatchHistograms(TString triggerclass, TString patchname, double energy, double transverseenergy, double eta, double phi, int col, int row)
ClassDef(AliAnalysisTaskEmcalPatchesRef, 1)
void CreateLinearBinning(TArrayD &binning, int nbins, double min, double max) const
void SetOfflineTriggerSelection(AliEmcalTriggerOfflineSelection *sel)
void GetPatchBoundaries(TObject *o, Double_t *boundaries) const
AliAnalysisTaskEmcalPatchesRef & operator=(const AliAnalysisTaskEmcalPatchesRef &)
energy
Container class for histograms for the high- charged particle analysis.
Definition: THistManager.h:43
TString GetFiredTriggerClassesFromPatches(const TClonesArray *triggerpatches) const
const Int_t nbins