AliPhysics  b7e5564 (b7e5564)
 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 #include <TCustomBinning.h>
9 
10 class AliAnalysisUtils;
11 class THistManager;
12 class TArrayD;
13 class TString;
14 
15 namespace EMCalTriggerPtAnalysis {
16 
17 class AliEmcalTriggerOfflineSelection;
18 
19 class AliAnalysisTaskEmcalPatchesRef : public AliAnalysisTaskSE {
20 public:
22  AliAnalysisTaskEmcalPatchesRef(const char *name);
24 
26  void UserExec(Option_t *);
27  void Terminate(Option_t *) {}
28 
30  void SetCreateTriggerStringFromPatches(Bool_t doUsePatches) { fTriggerStringFromPatches = doUsePatches; }
31  void SetRequestAnalysisUtil(bool doUse) { fRequestAnalysisUtil = doUse; }
32  void SetCentralityRange(double min, double max) { fCentralityRange.SetLimits(min,max); fRequestCentrality = true; }
33  void SetVertexRange(double min, double max) { fVertexRange.SetLimits(min, max); }
34 
35 protected:
36 
37  void GetPatchBoundaries(TObject *o, Double_t *boundaries) const;
38  bool IsOfflineSimplePatch(TObject *o) const;
39  bool SelectDCALPatch(TObject *o) const;
40  bool SelectSingleShowerPatch(TObject *o) const;
41  bool SelectJetPatch(TObject *o) const;
42  double GetPatchEnergy(TObject *o) const;
43 
44  void FillPatchHistograms(TString triggerclass, TString patchname, double energy, double transverseenergy, double eta, double phi, int col, int row);
45  TString GetFiredTriggerClassesFromPatches(const TClonesArray* triggerpatches) const;
46 
47  AliAnalysisUtils *fAnalysisUtil;
50 
53 
57 
58 private:
59 
60  class EnergyBinning : public TCustomBinning {
61  public:
62  EnergyBinning();
63  virtual ~EnergyBinning() {}
64  };
65 
68 
70 
71 };
72 
73 } /* namespace EMCalTriggerPtAnalysis */
74 
75 #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 SetOfflineTriggerSelection(AliEmcalTriggerOfflineSelection *sel)
void GetPatchBoundaries(TObject *o, Double_t *boundaries) const
AliAnalysisTaskEmcalPatchesRef & operator=(const AliAnalysisTaskEmcalPatchesRef &)
Helper class creating user defined custom binning.
energy
Container class for histograms for the high- charged particle analysis.
Definition: THistManager.h:43
TString GetFiredTriggerClassesFromPatches(const TClonesArray *triggerpatches) const