AliPhysics  1adf5bd (1adf5bd)
 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 
6 #include <string>
7 #include <vector>
8 
10 #include "AliCutValueRange.h"
11 #include <TCustomBinning.h>
12 #include <TString.h>
13 
14 class TClonesArray;
15 
16 namespace EMCalTriggerPtAnalysis {
17 
19 public:
21  AliAnalysisTaskEmcalClustersRef(const char *name);
23 
24  void SetClusterContainer(TString clustercontname) { fNameClusterContainer = clustercontname; }
26 
27  void SetCentralityRange(double min, double max) { fCentralityRange.SetLimits(min, max); fRequestCentrality = true; }
28 
29 protected:
30  virtual void CreateUserObjects() {}
31  virtual void CreateUserHistos();
32  virtual bool IsUserEventSelected();
33  virtual bool Run();
34  virtual void UserFillHistosAfterEventSelection();
35 
36  void GetPatchBoundaries(TObject *o, Double_t *boundaries) const;
37  bool IsOfflineSimplePatch(TObject *o) const;
38  bool SelectDCALPatch(TObject *o) const;
39  bool SelectSingleShowerPatch(TObject *o) const;
40  bool SelectJetPatch(TObject *o) const;
41  double GetPatchEnergy(TObject *o) const;
42 
43  void FillClusterHistograms(const TString &triggerclass, double energy, double transversenergy, double eta, double phi, TList *triggerpatches);
44  void FindPatchesForTrigger(TString triggerclass, const TClonesArray * triggerpatches, TList &foundpatches) const;
45  Bool_t CorrelateToTrigger(Double_t etaclust, Double_t phiclust, TList *triggerpatches) const;
46 
48 
52 
53 private:
54 
55  class EnergyBinning : public TCustomBinning {
56  public:
57  EnergyBinning();
58  virtual ~EnergyBinning() {}
59  };
60 
63 
67 };
68 
69 } /* namespace EMCalTriggerPtAnalysis */
70 
71 #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