AliPhysics  d2444a6 (d2444a6)
 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 #include <TString.h>
10 
11 class AliAnalysisUtils;
12 class AliOADBContainer;
13 class THistManager;
14 class TObjArray;
15 
16 namespace EMCalTriggerPtAnalysis {
17 
18 class AliEmcalTriggerOfflineSelection;
19 
20 class AliAnalysisTaskEmcalPatchesRef : public AliAnalysisTaskSE {
21 public:
23  AliAnalysisTaskEmcalPatchesRef(const char *name);
25 
27  void UserExec(Option_t *);
28  void Terminate(Option_t *) {}
29 
31  void SetCreateTriggerStringFromPatches(Bool_t doUsePatches) { fTriggerStringFromPatches = doUsePatches; }
32  void SetRequestAnalysisUtil(bool doUse) { fRequestAnalysisUtil = doUse; }
33  void SetCentralityRange(double min, double max) { fCentralityRange.SetLimits(min,max); fRequestCentrality = true; }
34  void SetVertexRange(double min, double max) { fVertexRange.SetLimits(min, max); }
35  void SetDownscaleOADB(TString oadbname) { fNameDownscaleOADB = oadbname; }
36 
37 protected:
38 
39  virtual void ExecOnce();
40  virtual void RunChanged(Int_t runnumber);
41  Double_t GetTriggerWeight(const TString &triggerclass) const;
42 
43  void GetPatchBoundaries(TObject *o, Double_t *boundaries) const;
44  bool IsOfflineSimplePatch(TObject *o) const;
45  bool SelectDCALPatch(TObject *o) const;
46  bool SelectSingleShowerPatch(TObject *o) const;
47  bool SelectJetPatch(TObject *o) const;
48  double GetPatchEnergy(TObject *o) const;
49 
50  void FillPatchHistograms(TString triggerclass, TString patchname, double energy, double transverseenergy, double eta, double phi, int col, int row);
51  void FillEventHistograms(const TString &triggerclass, double centrality, double vertexz);
52  TString GetFiredTriggerClassesFromPatches(const TClonesArray* triggerpatches) const;
53 
54  AliAnalysisUtils *fAnalysisUtil;
57  TClonesArray *fTriggerPatches;
58 
61 
65 
67  AliOADBContainer *fDownscaleOADB;
68  TObjArray *fDownscaleFactors;
69 
70  Int_t fCurrentRun;
71  Bool_t fInitialized;
72 
73 private:
74 
75  class EnergyBinning : public TCustomBinning {
76  public:
77  EnergyBinning();
78  virtual ~EnergyBinning() {}
79  };
80 
83 
85  ClassDef(AliAnalysisTaskEmcalPatchesRef, 1);
87 };
88 
89 } /* namespace EMCalTriggerPtAnalysis */
90 
91 #endif /* ALIANALYSISTASKEMCALPATCHESREF_H */
void FillPatchHistograms(TString triggerclass, TString patchname, double energy, double transverseenergy, double eta, double phi, int col, int row)
centrality
Bool_t fTriggerStringFromPatches
Switch on building a trigger string based on available trigger patches.
AliCutValueRange< double > fVertexRange
Range of the z-position in order to accept a primary vertex.
void SetOfflineTriggerSelection(AliEmcalTriggerOfflineSelection *sel)
Bool_t fRequestCentrality
Switch for request of centrality selection.
AliEmcalTriggerOfflineSelection * fTriggerSelection
Offline trigger selection tool.
void FillEventHistograms(const TString &triggerclass, double centrality, double vertexz)
Bool_t fRequestAnalysisUtil
Switch on request for analysis util.
void GetPatchBoundaries(TObject *o, Double_t *boundaries) const
AliAnalysisTaskEmcalPatchesRef & operator=(const AliAnalysisTaskEmcalPatchesRef &)
Helper class creating user defined custom binning.
TObjArray * fDownscaleFactors
! Downscalefactors for given run
Int_t fCurrentRun
Current run number (for RunChange method)
TString fNameDownscaleOADB
Name of the downscale OADB container.
energy
AliAnalysisUtils * fAnalysisUtil
Analysis utils for event selection.
AliOADBContainer * fDownscaleOADB
! Container with downscale factors for different triggers
AliCutValueRange< double > fCentralityRange
Range of accepted event centralities.
Container class for histograms for the high- charged particle analysis.
Definition: THistManager.h:43
TString GetFiredTriggerClassesFromPatches(const TClonesArray *triggerpatches) const
TClonesArray * fTriggerPatches
! Container with trigger patches