AliPhysics  c923f52 (c923f52)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskEmcalPatchesRef.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKEMCALPATCHESREF_H
2 #define ALIANALYSISTASKEMCALPATCHESREF_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 #include "AliAnalysisTaskEmcal.h"
9 #include "AliCutValueRange.h"
10 #include <TCustomBinning.h>
11 #include <TString.h>
12 
13 class AliOADBContainer;
14 class THistManager;
15 class TObjArray;
16 
17 namespace EMCalTriggerPtAnalysis {
18 
19 class AliEmcalTriggerOfflineSelection;
20 
22 public:
24  AliAnalysisTaskEmcalPatchesRef(const char *name);
26 
29  void SetRequestAnalysisUtil(bool doUse) { fRequestAnalysisUtil = doUse; }
30  void SetCentralityRange(double min, double max) { fCentralityRange.SetLimits(min,max); fRequestCentrality = true; }
31  void SetVertexRange(double min, double max) { fVertexRange.SetLimits(min, max); }
32  void SetDownscaleOADB(TString oadbname) { fNameDownscaleOADB = oadbname; }
33 
34 protected:
35  virtual void UserCreateOutputObjects();
36  virtual void ExecOnce();
37  virtual bool IsEventSelected();
38  virtual bool Run();
39  virtual void RunChanged(Int_t runnumber);
40 
41  Double_t GetTriggerWeight(const TString &triggerclass) const;
42 
43  void GetPatchBoundaries(TObject *o, Double_t *boundaries) const;
44  bool IsOfflineSimplePatch(TObject *o) const;
45  bool SelectDCALPatch(TObject *o) const;
46  bool SelectSingleShowerPatch(TObject *o) const;
47  bool SelectJetPatch(TObject *o) const;
48  double GetPatchEnergy(TObject *o) const;
49 
50  void FillPatchHistograms(TString triggerclass, TString patchname, double energy, double transverseenergy, double eta, double phi, int col, int row);
51  void FillEventHistograms(const TString &triggerclass, double centrality, double vertexz);
52  TString GetFiredTriggerClassesFromPatches(const TClonesArray* triggerpatches) const;
53 
55  std::vector<std::string> fAcceptTriggers;
57 
60 
64 
66  AliOADBContainer *fDownscaleOADB;
68 
69 private:
70 
71  class EnergyBinning : public TCustomBinning {
72  public:
73  EnergyBinning();
74  virtual ~EnergyBinning() {}
75  };
76 
79 
81  ClassDef(AliAnalysisTaskEmcalPatchesRef, 1);
83 };
84 
85 } /* namespace EMCalTriggerPtAnalysis */
86 
87 #endif /* ALIANALYSISTASKEMCALPATCHESREF_H */
void FillPatchHistograms(TString triggerclass, TString patchname, double energy, double transverseenergy, double eta, double phi, int col, int row)
double Double_t
Definition: External.C:58
std::vector< std::string > fAcceptTriggers
! Temporary container of selected triggers
Base task in the EMCAL framework.
centrality
Bool_t fTriggerStringFromPatches
Switch on building a trigger string based on available trigger patches.
AliCutValueRange< double > fVertexRange
Range of the z-position in order to accept a primary vertex.
void SetOfflineTriggerSelection(AliEmcalTriggerOfflineSelection *sel)
Bool_t fRequestCentrality
Switch for request of centrality selection.
AliEmcalTriggerOfflineSelection * fTriggerSelection
Offline trigger selection tool.
void FillEventHistograms(const TString &triggerclass, double centrality, double vertexz)
Bool_t fRequestAnalysisUtil
Switch on request for analysis util.
void GetPatchBoundaries(TObject *o, Double_t *boundaries) const
int Int_t
Definition: External.C:63
AliAnalysisTaskEmcalPatchesRef & operator=(const AliAnalysisTaskEmcalPatchesRef &)
Helper class creating user defined custom binning.
TObjArray * fDownscaleFactors
! Downscalefactors for given run
TString fNameDownscaleOADB
Name of the downscale OADB container.
energy
AliOADBContainer * fDownscaleOADB
! Container with downscale factors for different triggers
AliCutValueRange< double > fCentralityRange
Range of accepted event centralities.
Container class for histograms for the high- charged particle analysis.
Definition: THistManager.h:43
TString GetFiredTriggerClassesFromPatches(const TClonesArray *triggerpatches) const
bool Bool_t
Definition: External.C:53