AliPhysics  fe039ad (fe039ad)
 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 SetCentralityRange(double min, double max) { fCentralityRange.SetLimits(min, max); fRequestCentrality = true; }
88 
95 
100  void SetBunchCrossingIndex(Int_t bunchCrossingIndex) { fBunchCrossingIndex = bunchCrossingIndex; };
101 
108  static AliAnalysisTaskEmcalClustersRef *AddTaskEmcalClustersRef(const TString &nClusters = "usedefault", const TString &suffix = "");
109 
115  static AliAnalysisTaskEmcalClustersRef *AddTaskEmcalClustersRefDefault(const TString &nClusters = "usedefault");
116 
117 protected:
118 
122  virtual void CreateUserObjects() {}
123 
127  virtual void CreateUserHistos();
128 
133  virtual bool IsUserEventSelected();
134 
141  virtual bool Run();
142 
151  virtual void UserFillHistosAfterEventSelection();
152 
158  void GetPatchBoundaries(TObject *o, Double_t *boundaries) const;
159 
160  void FillClusterHistograms(const TString &triggerclass, double energy, double transversenergy, double eta, double phi, double clustertime, int ncell, TList *triggerpatches);
161 
170  void FindPatchesForTrigger(TString triggerclass, const TClonesArray * triggerpatches, TList &foundpatches) const;
171 
179  Bool_t CorrelateToTrigger(Double_t etaclust, Double_t phiclust, TList *triggerpatches) const;
180 
181 
187 
191 
192 private:
193 
194  class EnergyBinning : public TCustomBinning {
195  public:
196  EnergyBinning();
197  virtual ~EnergyBinning() {}
198  };
199 
200  int CountTracklets(double etamin, double etamax, double phimin, double phimax);
201  int CountEmcalClusters(double ecut);
202  int GetEMCALCellOccupancy(double ecut);
203 
206 
208  ClassDef(AliAnalysisTaskEmcalClustersRef, 1);
210 };
211 
212 } /* namespace EMCalTriggerPtAnalysis */
213 
214 #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 &)
energy
Definition: HFPtSpectrum.C:44
char Char_t
Definition: External.C:18
Simple monitoring task for cluster-related quantities in EMCAL-triggered events.
Bool_t fRequestCentrality
Switch on request for centrality range.
const Double_t etamin
int Int_t
Definition: External.C:63
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.
int CountTracklets(double etamin, double etamax, double phimin, double phimax)
TString fCentralityEstimator
Centrality estimator (default: V0M for PbPb)
static AliAnalysisTaskEmcalClustersRef * AddTaskEmcalClustersRefDefault(const TString &nClusters="usedefault")
AliCutValueRange< double > fCentralityRange
Selected centrality range.
const Double_t etamax
EnergyDefinition_t fEnergyDefinition
Energy definition used for a given cluster.
bool Bool_t
Definition: External.C:53
void FillClusterHistograms(const TString &triggerclass, double energy, double transversenergy, double eta, double phi, double clustertime, int ncell, TList *triggerpatches)
const Double_t phimin
void FindPatchesForTrigger(TString triggerclass, const TClonesArray *triggerpatches, TList &foundpatches) const