AliPhysics  ec707b8 (ec707b8)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 THistManager;
14 class TList;
15 class TString;
16 
17 namespace EMCalTriggerPtAnalysis {
18 
19 class AliEmcalTriggerOfflineSelection;
20 
21 class AliAnalysisTaskEmcalClustersRef : public AliAnalysisTaskSE {
22 public:
24  AliAnalysisTaskEmcalClustersRef(const char *name);
26 
28  void UserExec(Option_t *);
29  void Terminate(Option_t *) {}
30 
32  void SetClusterContainer(TString clustercontname) { fClusterContainer = clustercontname; }
33  void SetCreateTriggerStringFromPatches(Bool_t doUsePatches) { fTriggerStringFromPatches = doUsePatches; }
34 
35  void SetRequestAnalysisUtil(Bool_t doRequest) { fRequestAnalysisUtil = doRequest; }
36 
37 protected:
38 
39  void GetPatchBoundaries(TObject *o, Double_t *boundaries) const;
40  bool IsOfflineSimplePatch(TObject *o) const;
41  bool SelectDCALPatch(TObject *o) const;
42  bool SelectSingleShowerPatch(TObject *o) const;
43  bool SelectJetPatch(TObject *o) const;
44  double GetPatchEnergy(TObject *o) const;
45 
46  void CreateEnergyBinning(TArrayD& binning) const;
47  void CreateLinearBinning(TArrayD& binning, int nbins, double min, double max) const;
48  void FillClusterHistograms(TString triggerclass, double energy, double transversenergy, double eta, double phi, TList *triggerpatches);
49  TString GetFiredTriggerClassesFromPatches(const TClonesArray* triggerpatches) const;
50  void FindPatchesForTrigger(TString triggerclass, const TClonesArray * triggerpatches, TList &foundpatches) const;
51  Bool_t CorrelateToTrigger(Double_t etaclust, Double_t phiclust, TList *triggerpatches) const;
52 
53  AliAnalysisUtils *fAnalysisUtil;
54  THistManager *fHistos;
56  AliEMCALGeometry *fGeometry;
58 
61 
62 private:
65 
67 };
68 
69 } /* namespace EMCalTriggerPtAnalysis */
70 
71 #endif /* ALIANALYSISTASKEMCALCLUSTERSREF_H */
void GetPatchBoundaries(TObject *o, Double_t *boundaries) const
void FillClusterHistograms(TString triggerclass, double energy, double transversenergy, double eta, double phi, TList *triggerpatches)
Bool_t CorrelateToTrigger(Double_t etaclust, Double_t phiclust, TList *triggerpatches) const
AliAnalysisTaskEmcalClustersRef & operator=(const AliAnalysisTaskEmcalClustersRef &)
void SetOfflineTriggerSelection(AliEmcalTriggerOfflineSelection *sel)
void CreateLinearBinning(TArrayD &binning, int nbins, double min, double max) const
ClassDef(AliAnalysisTaskEmcalClustersRef, 1)
energy
TString GetFiredTriggerClassesFromPatches(const TClonesArray *triggerpatches) const
const Int_t nbins
void FindPatchesForTrigger(TString triggerclass, const TClonesArray *triggerpatches, TList &foundpatches) const