AliPhysics  cda3415 (cda3415)
 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 SetClusterTimeRange(double mintime, double maxtime) { fClusterTimeRange.SetLimits(mintime, maxtime); }
81 
87  void SetClusterContainer(TString clustercontname) { fNameClusterContainer = clustercontname; }
88 
94  void SetCentralityRange(double min, double max) { fCentralityRange.SetLimits(min, max); fRequestCentrality = true; }
95 
102 
109  static AliAnalysisTaskEmcalClustersRef *AddTaskEmcalClustersRef(const TString &nClusters = "usedefault", const TString &suffix = "");
110 
116  static AliAnalysisTaskEmcalClustersRef *AddTaskEmcalClustersRefDefault(const TString &nClusters = "usedefault");
117 
118 protected:
119 
123  virtual void CreateUserObjects() {}
124 
128  virtual void CreateUserHistos();
129 
134  virtual bool IsUserEventSelected();
135 
142  virtual bool Run();
143 
152  virtual void UserFillHistosAfterEventSelection();
153 
159  void GetPatchBoundaries(TObject *o, Double_t *boundaries) const;
160 
161  void FillClusterHistograms(const TString &triggerclass, double energy, double transversenergy, double eta, double phi, double clustertime, TList *triggerpatches);
162 
171  void FindPatchesForTrigger(TString triggerclass, const TClonesArray * triggerpatches, TList &foundpatches) const;
172 
180  Bool_t CorrelateToTrigger(Double_t etaclust, Double_t phiclust, TList *triggerpatches) const;
181 
183 
188 
192 
193 private:
194 
195  class EnergyBinning : public TCustomBinning {
196  public:
197  EnergyBinning();
198  virtual ~EnergyBinning() {}
199  };
200 
203 
205  ClassDef(AliAnalysisTaskEmcalClustersRef, 1);
207 };
208 
209 } /* namespace EMCalTriggerPtAnalysis */
210 
211 #endif /* ALIANALYSISTASKEMCALCLUSTERSREF_H */
AliCutValueRange< double > fClusterTimeRange
Selected range on cluster time.
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.
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
void FillClusterHistograms(const TString &triggerclass, double energy, double transversenergy, double eta, double phi, double clustertime, TList *triggerpatches)
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