AliPhysics  58f3d52 (58f3d52)
 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 
56  void EnableSumw2(Bool_t doEnable) { fEnableSumw2 = doEnable; }
57 
66  void SetCentralityRange(double min, double max) { fCentralityRange.SetLimits(min,max); fRequestCentrality = true; }
67 
78  void SetUseRecalcPatches(Bool_t doUse = kTRUE) { fUseRecalcPatches = doUse; }
79 
80 protected:
81 
85  virtual void CreateUserObjects() {}
86 
94  virtual void CreateUserHistos();
95 
104  virtual bool IsUserEventSelected();
105 
115  virtual bool Run();
116 
127  virtual void UserFillHistosAfterEventSelection();
128 
135  void GetPatchBoundaries(const AliEMCALTriggerPatchInfo *patch, Double_t *boundaries) const;
136 
142  bool SelectSingleShowerPatch(const AliEMCALTriggerPatchInfo *patch) const;
143 
149  bool SelectJetPatch(const AliEMCALTriggerPatchInfo *patch) const;
150 
167  void FillPatchHistograms(TString triggerclass, TString patchname, double energy, double transverseenergy, double smearedenergy, double eta, double phi, int col, int row);
168 
174 
175 private:
176 
181  class EnergyBinning : public TCustomBinning {
182  public:
186  EnergyBinning();
187 
191  virtual ~EnergyBinning() {}
192  };
193 
196 
198  ClassDef(AliAnalysisTaskEmcalPatchesRef, 1);
200 };
201 
202 } /* namespace EMCalTriggerPtAnalysis */
203 
204 #endif /* ALIANALYSISTASKEMCALPATCHESREF_H */
virtual bool IsUserEventSelected()
Apply additional event selection requested by the user.
double Double_t
Definition: External.C:58
void FillPatchHistograms(TString triggerclass, TString patchname, double energy, double transverseenergy, double smearedenergy, double eta, double phi, int col, int row)
Filling patch related histogram.
Bool_t fEnableSumw2
Enable sumw2 during histogram creation.
energy
Definition: HFPtSpectrum.C:44
void SetUseRecalcPatches(Bool_t doUse=kTRUE)
Switch for recalc patches.
virtual void UserFillHistosAfterEventSelection()
Fill event-based histograms.
Bool_t fRequestCentrality
Switch for request of centrality selection.
AliAnalysisTaskEmcalPatchesRef & operator=(const AliAnalysisTaskEmcalPatchesRef &)
bool SelectSingleShowerPatch(const AliEMCALTriggerPatchInfo *patch) const
Selecting offline/recalc simple single shower (gamma or L0) patches.
Helper class creating user defined custom binning.
void EnableSumw2(Bool_t doEnable)
Enable Sumw2 when creating the histograms.
bool SelectJetPatch(const AliEMCALTriggerPatchInfo *patch) const
Selecting offline/recalc simple jet patches.
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:99
bool Bool_t
Definition: External.C:53
void SetCentralityRange(double min, double max)
Set centrality selection.
Bool_t fUseRecalcPatches
Switch between offline (FEE) and recalc (L1) patches.
void GetPatchBoundaries(const AliEMCALTriggerPatchInfo *patch, Double_t *boundaries) const