AliPhysics  67e0feb (67e0feb)
AliAnalysisTaskEmcalJetTriggerMatcher.h
Go to the documentation of this file.
1 #ifndef AliAnalysisTaskEmcalJetTriggerMatcher_h
2 #define AliAnalysisTaskEmcalJetTriggerMatcher_h
3 
4 class TClonesArray;
5 class TH1;
6 class TH2;
7 class TH3;
8 class TH1F;
9 class TH2F;
10 class TH3F;
11 class THnSparse;
12 class TLorentzVector;
13 class TGraph;
14 
15 class AliEMCALTrack;
16 class AliMagF;
17 class AliESDEvent;
18 class AliAODEvent;
19 class AliEMCALGeometry;
20 class AliEMCALRecoUtils;
21 class AliESDtrack;
22 class AliESDCaloCluster;
23 class TClonesArray;
24 class TArrayI;
25 class TProfile;
28 
29 #include <TRef.h>
30 #include <TBits.h>
31 #include <TMath.h>
32 
33 // this whole section of includes added
34 #include <AliEmcalJet.h>
35 #include <AliVEvent.h>
36 #include <AliVTrack.h>
37 #include <AliVCluster.h>
38 #include <TClonesArray.h>
39 #include <TMath.h>
40 #include <TRandom3.h>
41 #include <AliLog.h>
43 #include <AliESDCaloCluster.h>
44 #include "AliEMCALTriggerPatchInfo.h"
45 #include "AliAnalysisFilter.h"
46 
48  public:
49 
51  kManual = 0, //just select highest energy patch in array
52  kEmcalJet = 1, //use functionality of AliAnalysisTaskEmcal
56 
57  };
58 
60  AliAnalysisTaskEmcalJetTriggerMatcher(const char *name);
62 
63  virtual void UserCreateOutputObjects();
64 
67 
68  //JetTrigger Sparse
69  virtual THnSparse* NewTHnSparseDJetTrigger(const char* name, UInt_t entries);
70  virtual void GetDimParamsJetTrigger(Int_t iEntry,TString &label, Int_t &nbins, Double_t &xmin, Double_t &xmax);
71 
72  // setters
73  void SetJetPt(Double_t jpt) { fJetHIpt = jpt; } // jet threshold pt cut
74  virtual void SetTrackEta(Double_t e) { fTrackEta = e; } //eta range of the associated tracks
75  virtual void SetFillHistograms(Bool_t hists) { fFillHists = hists; } // Fill Histograms
76  virtual void SetTrigClusterMatchDistance(Double_t dist) { fMatchDist = dist; } // Jet Cluster to Patch Matching Distance in units of towers (0.014 * fMatchDist)
77 
78  // eta and phi limits of jets - setters
79  virtual void SetJetEta(Double_t emin, Double_t emax) { fEtamin = emin; fEtamax = emax; }
80  virtual void SetJetPhi(Double_t pmin, Double_t pmax) { fPhimin = pmin; fPhimax = pmax; }
81 
82  // event no.
83  Int_t event; // event number (processed)
84  protected:
85  Bool_t Run();
86  virtual void Terminate(Option_t *);
87  virtual Int_t AcceptMyJet(AliEmcalJet *jet); // applies basic jet tests/cuts before accepting
88  void ExecOnce();
89  void ExtractMainPatch();
90 
91  // Trigger bit
95  Bool_t fEventTrigEMCALL1Gamma1 ; // Event is L1-Gamma, threshold 1 on its name, it should correspond kEMCEGA
96  Bool_t fEventTrigEMCALL1Gamma2 ; // Event is L1-Gamma, threshold 2 on its name, it should correspond kEMCEGA
97 
98  // data type switch
99  AliVEvent * fInputEvent;
100 
101  // cuts
106  Double_t fAreacut; //area cut
107  Double_t fJetHIpt; // high jet pt
109  Double_t fTrkQAcut; //trkQA cut
112 
115 
116  private:
119 
120  AliEMCALTriggerPatchInfo *fMaxPatch; // main patch
121  MainPatchType fMainPatchType; // method to select main patch
122  TriggerCategory fMainTrigCat; // trigger category for main trigger from AliAnalysisTaskEmcal::GetMainTriggerPatch
123  Bool_t fMainTrigSimple; // use offline trigger instead of online from AliAnalysisTaskEmcal::GetMainTriggerPatch
124 
125  THnSparse *fhnTriggerInfo;
138  THnSparse *fhnJetTrigger;
139 
140  //Declare it private to avoid compilation warning
143 
144 
145 
147 };
148 #endif
AliEMCALTriggerPatchInfo * fMaxPatch
// AOD Object
double Double_t
Definition: External.C:58
Definition: External.C:260
Definition: External.C:236
Definition: External.C:244
Some utilities for cluster and cell treatment.
Container for particles within the EMCAL framework.
virtual THnSparse * NewTHnSparseDJetTrigger(const char *name, UInt_t entries)
int Int_t
Definition: External.C:63
unsigned int UInt_t
Definition: External.C:33
virtual void SetJetEta(Double_t emin, Double_t emax)
void ExecOnce()
Perform steps needed to initialize the analysis.
AliAnalysisTaskEmcalJetTriggerMatcher & operator=(const AliAnalysisTaskEmcalJetTriggerMatcher &)
Definition: External.C:220
TH1F * fHistEventClusSpect
Plot of Trigger Geo pos - Trigger COM pos.
void SetMainTriggerTypeCat(TriggerCategory cat, Bool_t b)
Base task in the EMCAL jet framework.
virtual void SetJetPhi(Double_t pmin, Double_t pmax)
Represent a jet reconstructed using the EMCal jet framework.
Definition: AliEmcalJet.h:51
const char Option_t
Definition: External.C:48
const Int_t nbins
bool Bool_t
Definition: External.C:53
virtual void GetDimParamsJetTrigger(Int_t iEntry, TString &label, Int_t &nbins, Double_t &xmin, Double_t &xmax)
TH1F * fHistMatchedClusJet
patch energy and event observables
TriggerCategory
Online trigger categories.
Container structure for EMCAL clusters.
TH2F * fHistdEtaPatchvdPhiPatch
Matched Cluster E vs Patch E.
Definition: External.C:196
Bool_t Run()
Run function. This is the core function of the analysis and contains the user code. Therefore users have to implement this function.