AliPhysics  7273240 (7273240)
 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 
16 public:
18  AliAnalysisTaskEmcalClustersRef(const char *name);
20 
21  void SetClusterContainer(TString clustercontname) { fNameClusterContainer = clustercontname; }
23 
24  void SetCentralityRange(double min, double max) { fCentralityRange.SetLimits(min, max); fRequestCentrality = true; }
25 
26 protected:
27  virtual void CreateUserObjects() {}
28  virtual void CreateUserHistos();
29  virtual bool IsUserEventSelected();
30  virtual bool Run();
31  virtual void UserFillHistosAfterEventSelection();
32 
33  void GetPatchBoundaries(TObject *o, Double_t *boundaries) const;
34  bool IsOfflineSimplePatch(TObject *o) const;
35  bool SelectDCALPatch(TObject *o) const;
36  bool SelectSingleShowerPatch(TObject *o) const;
37  bool SelectJetPatch(TObject *o) const;
38  double GetPatchEnergy(TObject *o) const;
39 
40  void FillClusterHistograms(const TString &triggerclass, double energy, double transversenergy, double eta, double phi, TList *triggerpatches);
41  void FindPatchesForTrigger(TString triggerclass, const TClonesArray * triggerpatches, TList &foundpatches) const;
42  Bool_t CorrelateToTrigger(Double_t etaclust, Double_t phiclust, TList *triggerpatches) const;
43 
45 
49 
50 private:
51 
52  class EnergyBinning : public TCustomBinning {
53  public:
54  EnergyBinning();
55  virtual ~EnergyBinning() {}
56  };
57 
60 
64 };
65 
66 } /* namespace EMCalTriggerPtAnalysis */
67 
68 #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 &)
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.
energy
Bool_t fTriggerStringFromPatches
Do rebuild the trigger string from trigger patches.
AliCutValueRange< double > fCentralityRange
Selected centrality range.
bool Bool_t
Definition: External.C:53
void FindPatchesForTrigger(TString triggerclass, const TClonesArray *triggerpatches, TList &foundpatches) const