AliPhysics  251aa1e (251aa1e)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends 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 
7 #include "AliCutValueRange.h"
8 #include <TCustomBinning.h>
9 #include <TString.h>
10 
11 class TClonesArray;
12 
13 namespace EMCalTriggerPtAnalysis {
14 
33 public:
34 
43  };
44 
49 
54  AliAnalysisTaskEmcalClustersRef(const char *name);
55 
60 
67  void EnableSumw2(Bool_t doEnable) { fEnableSumw2 = doEnable; }
68 
74 
80  void SetClusterContainer(TString clustercontname) { fNameClusterContainer = clustercontname; }
81 
87  void SetCentralityRange(double min, double max) { fCentralityRange.SetLimits(min, max); fRequestCentrality = true; }
88 
95 
102  static AliAnalysisTaskEmcalClustersRef *AddTaskEmcalClustersRef(const TString &nClusters = "usedefault", const TString &suffix = "");
103 
109  static AliAnalysisTaskEmcalClustersRef *AddTaskEmcalClustersRefDefault(const TString &nClusters = "usedefault");
110 
111 protected:
112 
116  virtual void CreateUserObjects() {}
117 
121  virtual void CreateUserHistos();
122 
127  virtual bool IsUserEventSelected();
128 
135  virtual bool Run();
136 
145  virtual void UserFillHistosAfterEventSelection();
146 
152  void GetPatchBoundaries(TObject *o, Double_t *boundaries) const;
153 
154  void FillClusterHistograms(const TString &triggerclass, double energy, double transversenergy, double eta, double phi, TList *triggerpatches);
155 
164  void FindPatchesForTrigger(TString triggerclass, const TClonesArray * triggerpatches, TList &foundpatches) const;
165 
173  Bool_t CorrelateToTrigger(Double_t etaclust, Double_t phiclust, TList *triggerpatches) const;
174 
176 
181 
184 
185 private:
186 
187  class EnergyBinning : public TCustomBinning {
188  public:
189  EnergyBinning();
190  virtual ~EnergyBinning() {}
191  };
192 
195 
197  ClassDef(AliAnalysisTaskEmcalClustersRef, 1);
199 };
200 
201 } /* namespace EMCalTriggerPtAnalysis */
202 
203 #endif /* ALIANALYSISTASKEMCALCLUSTERSREF_H */
void GetPatchBoundaries(TObject *o, Double_t *boundaries) const
double Double_t
Definition: External.C:58
Bool_t CorrelateToTrigger(Double_t etaclust, Double_t phiclust, TList *triggerpatches) const
AliAnalysisTaskEmcalClustersRef & operator=(const AliAnalysisTaskEmcalClustersRef &)
Simple monitoring task for cluster-related quantities in EMCAL-triggered events.
Bool_t fRequestCentrality
Switch on request for centrality range.
void FillClusterHistograms(const TString &triggerclass, double energy, double transversenergy, double eta, double phi, TList *triggerpatches)
TString fNameClusterContainer
Name of the cluster container in the event.
Helper class creating user defined custom binning.
static AliAnalysisTaskEmcalClustersRef * AddTaskEmcalClustersRef(const TString &nClusters="usedefault", const TString &suffix="")
EnergyDefinition_t
Type of the energy used in the monitoring histograms.
TString fCentralityEstimator
Centrality estimator (default: V0M for PbPb)
energy
static AliAnalysisTaskEmcalClustersRef * AddTaskEmcalClustersRefDefault(const TString &nClusters="usedefault")
AliCutValueRange< double > fCentralityRange
Selected centrality range.
EnergyDefinition_t fEnergyDefinition
Energy definition used for a given cluster.
bool Bool_t
Definition: External.C:53
void FindPatchesForTrigger(TString triggerclass, const TClonesArray *triggerpatches, TList &foundpatches) const