AliPhysics  vAN-20151012 (2287573)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
AliAnalysisTaskEmcalClustersRef.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKEMCALCLUSTERSREF_H
2 #define ALIANALYSISTASKEMCALCLUSTERSREF_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 AliEMCALGeometry;
10 
11 class TArrayD;
12 class TClonesArray;
13 class TList;
14 class TString;
15 
16 namespace EMCalTriggerPtAnalysis {
17 
18 class AliEMCalHistoContainer;
19 
20 class AliAnalysisTaskEmcalClustersRef : public AliAnalysisTaskSE {
21 public:
23  kECREL0 = 0,
29  };
31  AliAnalysisTaskEmcalClustersRef(const char *name);
33 
35  void UserExec(Option_t *);
36  void Terminate(Option_t *) {}
37 
38  void SetClusterContainer(TString clustercontname) { fClusterContainer = clustercontname; }
39  void SetCreateTriggerStringFromPatches(Bool_t doUsePatches) { fTriggerStringFromPatches = doUsePatches; }
40 
41  void SetOfflineEnergyThreshold(EmcalTriggerClass trgcls, double threshold) { fOfflineEnergyThreshold[trgcls] = threshold; }
42 
43 protected:
44 
45  void CreateEnergyBinning(TArrayD& binning) const;
46  void CreateLinearBinning(TArrayD& binning, int nbins, double min, double max) const;
47  void FillClusterHistograms(TString triggerclass, double energy, double eta, double phi, TList *triggerpatches);
48  TString GetFiredTriggerClassesFromPatches(const TClonesArray* triggerpatches) const;
49  void FindPatchesForTrigger(TString triggerclass, const TClonesArray * triggerpatches, TList &foundpatches) const;
50  Bool_t CorrelateToTrigger(Double_t etaclust, Double_t phiclust, TList *triggerpatches) const;
51  Bool_t IsOfflineSelected(EmcalTriggerClass trgcls, const TClonesArray * const triggerpatches) const;
52 
53  AliAnalysisUtils *fAnalysisUtil;
55  AliEMCALGeometry *fGeometry;
57 
60 
61 private:
64 
66 };
67 
68 } /* namespace EMCalTriggerPtAnalysis */
69 
70 #endif /* ALIANALYSISTASKEMCALCLUSTERSREF_H */
Bool_t CorrelateToTrigger(Double_t etaclust, Double_t phiclust, TList *triggerpatches) const
AliAnalysisTaskEmcalClustersRef & operator=(const AliAnalysisTaskEmcalClustersRef &)
void FillClusterHistograms(TString triggerclass, double energy, double eta, double phi, TList *triggerpatches)
Container class for histograms for the high- charged particle analysis.
void CreateLinearBinning(TArrayD &binning, int nbins, double min, double max) const
ClassDef(AliAnalysisTaskEmcalClustersRef, 1)
energy
void SetOfflineEnergyThreshold(EmcalTriggerClass trgcls, double threshold)
Bool_t IsOfflineSelected(EmcalTriggerClass trgcls, const TClonesArray *const triggerpatches) const
TString GetFiredTriggerClassesFromPatches(const TClonesArray *triggerpatches) const
const Int_t nbins
void FindPatchesForTrigger(TString triggerclass, const TClonesArray *triggerpatches, TList &foundpatches) const