AliPhysics  781d0c7 (781d0c7)
 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 
9 #include "AliAnalysisTaskEmcal.h"
10 #include "AliCutValueRange.h"
11 #include <TCustomBinning.h>
12 #include <TString.h>
13 
14 class AliOADBContainer;
15 
16 class TArrayD;
17 class TClonesArray;
18 class THistManager;
19 class TList;
20 class TObjArray;
21 class TString;
22 
23 namespace EMCalTriggerPtAnalysis {
24 
25 class AliEmcalTriggerOfflineSelection;
26 
28 public:
30  AliAnalysisTaskEmcalClustersRef(const char *name);
32 
34  void SetClusterContainer(TString clustercontname) { fNameClusterContainer = clustercontname; }
36 
37  void SetRequestAnalysisUtil(Bool_t doRequest) { fRequestAnalysisUtil = doRequest; }
38  void SetCentralityRange(double min, double max) { fCentralityRange.SetLimits(min, max); fRequestCentrality = true; }
39  void SetVertexRange(double min, double max) { fVertexRange.SetLimits(min, max); }
40  void SetDownscaleOADB(TString oadbname) { fNameDownscaleOADB = oadbname; }
41 
42 protected:
43 
44  virtual void UserCreateOutputObjects();
45  virtual bool Run();
46  virtual bool IsEventSelected();
47  virtual void ExecOnce();
48  virtual void RunChanged(Int_t runnumber);
49 
50  Double_t GetTriggerWeight(const TString &triggerclass) const;
51  void GetPatchBoundaries(TObject *o, Double_t *boundaries) const;
52  bool IsOfflineSimplePatch(TObject *o) const;
53  bool SelectDCALPatch(TObject *o) const;
54  bool SelectSingleShowerPatch(TObject *o) const;
55  bool SelectJetPatch(TObject *o) const;
56  double GetPatchEnergy(TObject *o) const;
57 
58  void FillClusterHistograms(const TString &triggerclass, double energy, double transversenergy, double eta, double phi, TList *triggerpatches);
59  void FillEventHistograms(const TString &triggerclass, double centrality, double vertexz);
60  TString GetFiredTriggerClassesFromPatches(const TClonesArray* triggerpatches) const;
61  void FindPatchesForTrigger(TString triggerclass, const TClonesArray * triggerpatches, TList &foundpatches) const;
62  Bool_t CorrelateToTrigger(Double_t etaclust, Double_t phiclust, TList *triggerpatches) const;
63 
66  std::vector<std::string> fAcceptTriggers;
68 
74 
76  AliOADBContainer *fDownscaleOADB;
78 
79 private:
80 
81  class EnergyBinning : public TCustomBinning {
82  public:
83  EnergyBinning();
84  virtual ~EnergyBinning() {}
85  };
86 
89 
93 };
94 
95 } /* namespace EMCalTriggerPtAnalysis */
96 
97 #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
Base task in the EMCAL framework.
AliAnalysisTaskEmcalClustersRef & operator=(const AliAnalysisTaskEmcalClustersRef &)
centrality
Bool_t fRequestCentrality
Swich on request for centrality range.
void FillEventHistograms(const TString &triggerclass, double centrality, double vertexz)
std::vector< std::string > fAcceptTriggers
! Temporary container with list of selected triggers
void FillClusterHistograms(const TString &triggerclass, double energy, double transversenergy, double eta, double phi, TList *triggerpatches)
AliEmcalTriggerOfflineSelection * fTriggerSelection
EMCAL offline trigger selection tool.
void SetOfflineTriggerSelection(AliEmcalTriggerOfflineSelection *sel)
int Int_t
Definition: External.C:63
TString fNameClusterContainer
Name of the cluster container in the event.
Bool_t fTriggerStringFromPatches
Build trigger string from trigger patches.
Helper class creating user defined custom binning.
AliOADBContainer * fDownscaleOADB
! Container with downscale factors for different triggers
energy
AliCutValueRange< double > fCentralityRange
Selected centrality range.
TString GetFiredTriggerClassesFromPatches(const TClonesArray *triggerpatches) const
AliCutValueRange< double > fVertexRange
Selected vertex range.
Container class for histograms for the high- charged particle analysis.
Definition: THistManager.h:43
Bool_t fRequestAnalysisUtil
Switch on request for event selection using analysis utils.
bool Bool_t
Definition: External.C:53
TString fNameDownscaleOADB
Name of the downscale OADB container.
void FindPatchesForTrigger(TString triggerclass, const TClonesArray *triggerpatches, TList &foundpatches) const