AliPhysics  1909eaa (1909eaa)
 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 <string>
7 #include <vector>
9 #include "AliCutValueRange.h"
10 #include <TCustomBinning.h>
11 #include <TString.h>
12 
13 class AliOADBContainer;
14 class AliEMCALTriggerPatchInfo;
15 class THistManager;
16 class TObjArray;
17 
18 namespace EMCalTriggerPtAnalysis {
19 
20 class AliEmcalTriggerOfflineSelection;
21 
30 public:
35 
40  AliAnalysisTaskEmcalPatchesRef(const char *name);
41 
46 
53  void EnableSumw2(Bool_t doEnable) { fEnableSumw2 = doEnable; }
54 
61  void SetCentralityRange(double min, double max) { fCentralityRange.SetLimits(min,max); fRequestCentrality = true; }
62 
63 protected:
64 
68  virtual void CreateUserObjects() {}
69 
75  virtual void CreateUserHistos();
76 
81  virtual bool IsUserEventSelected();
82 
88  virtual bool Run();
89 
98  virtual void UserFillHistosAfterEventSelection();
99 
106  void GetPatchBoundaries(const AliEMCALTriggerPatchInfo *patch, Double_t *boundaries) const;
107 
113  bool SelectSingleShowerPatch(const AliEMCALTriggerPatchInfo *patch) const;
114 
120  bool SelectJetPatch(const AliEMCALTriggerPatchInfo *patch) const;
121 
131  void FillPatchHistograms(TString triggerclass, TString patchname, double energy, double transverseenergy, double eta, double phi, int col, int row);
132 
137 
138 private:
139 
140  class EnergyBinning : public TCustomBinning {
141  public:
145  EnergyBinning();
146 
150  virtual ~EnergyBinning() {}
151  };
152 
155 
157  ClassDef(AliAnalysisTaskEmcalPatchesRef, 1);
159 };
160 
161 } /* namespace EMCalTriggerPtAnalysis */
162 
163 #endif /* ALIANALYSISTASKEMCALPATCHESREF_H */
void FillPatchHistograms(TString triggerclass, TString patchname, double energy, double transverseenergy, double eta, double phi, int col, int row)
double Double_t
Definition: External.C:58
Bool_t fEnableSumw2
Enable sumw2 during histogram creation.
Bool_t fRequestCentrality
Switch for request of centrality selection.
AliAnalysisTaskEmcalPatchesRef & operator=(const AliAnalysisTaskEmcalPatchesRef &)
bool SelectSingleShowerPatch(const AliEMCALTriggerPatchInfo *patch) const
Helper class creating user defined custom binning.
bool SelectJetPatch(const AliEMCALTriggerPatchInfo *patch) const
energy
Analysis of trigger patches in min. bias and triggered events.
AliCutValueRange< double > fCentralityRange
Range of accepted event centralities.
Container class for histograms.
Definition: THistManager.h:43
bool Bool_t
Definition: External.C:53
void GetPatchBoundaries(const AliEMCALTriggerPatchInfo *patch, Double_t *boundaries) const