AliPhysics  v5-07-15-01 (b3d7633)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
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 
8 class AliAnalysisUtils;
9 class TArrayD;
10 class TString;
11 
12 namespace EMCalTriggerPtAnalysis {
13 
14 class AliAnalysisTaskEmcalPatchesRef : public AliAnalysisTaskSE {
15 public:
17  kEPREL0 = 0,
28  };
30  AliAnalysisTaskEmcalPatchesRef(const char *name);
32 
34  void UserExec(Option_t *);
35  void Terminate(Option_t *) {}
36 
37  void SetCreateTriggerStringFromPatches(Bool_t doUsePatches) { fTriggerStringFromPatches = doUsePatches; }
38  void SetOfflineEnergyThreshold(EmcalTriggerClass trgcls, double threshold) { fOfflineEnergyThreshold[trgcls] = threshold; }
39  void SetRequestAnalysisUtil(bool doUse) { fRequestAnalysisUtil = doUse; }
40 
41 protected:
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 CreateEnergyBinning(TArrayD& binning) const;
51  void CreateLinearBinning(TArrayD& binning, int nbins, double min, double max) const;
52  void FillPatchHistograms(TString triggerclass, TString patchname, double energy, double transverseenergy, double eta, double phi);
53  TString GetFiredTriggerClassesFromPatches(const TClonesArray* triggerpatches) const;
54  Bool_t IsOfflineSelected(EmcalTriggerClass trgcls, const TClonesArray * const triggerpatches) const;
55 
56  AliAnalysisUtils *fAnalysisUtil;
58 
62 
63 private:
66 
68 
69 };
70 
71 } /* namespace EMCalTriggerPtAnalysis */
72 
73 #endif /* ALIANALYSISTASKEMCALPATCHESREF_H */
ClassDef(AliAnalysisTaskEmcalPatchesRef, 1)
void FillPatchHistograms(TString triggerclass, TString patchname, double energy, double transverseenergy, double eta, double phi)
void CreateLinearBinning(TArrayD &binning, int nbins, double min, double max) const
Container class for histograms for the high- charged particle analysis.
void GetPatchBoundaries(TObject *o, Double_t *boundaries) const
AliAnalysisTaskEmcalPatchesRef & operator=(const AliAnalysisTaskEmcalPatchesRef &)
energy
Bool_t IsOfflineSelected(EmcalTriggerClass trgcls, const TClonesArray *const triggerpatches) const
TString GetFiredTriggerClassesFromPatches(const TClonesArray *triggerpatches) const
const Int_t nbins
void SetOfflineEnergyThreshold(EmcalTriggerClass trgcls, double threshold)