AliPhysics  vAN-20151012 (2287573)
 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,
23  };
25  AliAnalysisTaskEmcalPatchesRef(const char *name);
27 
29  void UserExec(Option_t *);
30  void Terminate(Option_t *) {}
31 
32  void SetCreateTriggerStringFromPatches(Bool_t doUsePatches) { fTriggerStringFromPatches = doUsePatches; }
33  void SetOfflineEnergyThreshold(EmcalTriggerClass trgcls, double threshold) { fOfflineEnergyThreshold[trgcls] = threshold; }
34 
35 protected:
36  void CreateEnergyBinning(TArrayD& binning) const;
37  void FillPatchHistograms(TString triggerclass, TString patchname, double energy, double eta, double phi);
38  TString GetFiredTriggerClassesFromPatches(const TClonesArray* triggerpatches) const;
39  Bool_t IsOfflineSelected(EmcalTriggerClass trgcls, const TClonesArray * const triggerpatches) const;
40 
41  AliAnalysisUtils *fAnalysisUtil;
43 
46 
47 private:
50 
52 
53 };
54 
55 } /* namespace EMCalTriggerPtAnalysis */
56 
57 #endif /* ALIANALYSISTASKEMCALPATCHESREF_H */
ClassDef(AliAnalysisTaskEmcalPatchesRef, 1)
Container class for histograms for the high- charged particle analysis.
AliAnalysisTaskEmcalPatchesRef & operator=(const AliAnalysisTaskEmcalPatchesRef &)
void FillPatchHistograms(TString triggerclass, TString patchname, double energy, double eta, double phi)
energy
Bool_t IsOfflineSelected(EmcalTriggerClass trgcls, const TClonesArray *const triggerpatches) const
TString GetFiredTriggerClassesFromPatches(const TClonesArray *triggerpatches) const
void SetOfflineEnergyThreshold(EmcalTriggerClass trgcls, double threshold)