AliPhysics  4646b6b (4646b6b)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskEmcalJetPatchTriggerQA.h
Go to the documentation of this file.
1 #ifndef AliAnalysisTaskEmcalJetPatchTriggerQA_h
2 #define AliAnalysisTaskEmcalJetPatchTriggerQA_h
3 
4 class TH1F;
5 class TH2F;
6 class TH3F;
7 class THnSparse;
9 
10 // this whole section of includes added
11 #include <AliEmcalJet.h>
12 #include <AliVEvent.h>
13 #include <AliVTrack.h>
14 #include <AliVCluster.h>
15 #include <TClonesArray.h>
16 #include <TMath.h>
17 #include <TRandom3.h>
18 #include <AliLog.h>
20 
22  public:
24  AliAnalysisTaskEmcalJetPatchTriggerQA(const char *name);
26 
27  virtual void UserCreateOutputObjects();
28  virtual THnSparse* NewTHnSparseF(const char* name, UInt_t entries);
29  virtual void GetDimParams(Int_t iEntry,TString &label, Int_t &nbins, Double_t &xmin, Double_t &xmax);
30  virtual void SetLocalRhoName(const char *n) { fLocalRhoName = n; }
31 
32  virtual void SetAreaCut(Double_t a) { fAreacut = a; }
33  virtual void SetJetEta(Double_t emin, Double_t emax) { fEtamin = emin; fEtamax = emax; }
34  virtual void SetJetPhi(Double_t pmin, Double_t pmax) { fPhimin = pmin; fPhimax = pmax; }
35 
36  // getters
38 
39  protected:
40  Bool_t Run();
41  virtual void Terminate(Option_t *);
42  virtual Int_t AcceptMyJet(AliEmcalJet *jet); // applies basic jet tests/cuts before accepting
43  virtual Int_t GetCentBin(Double_t cent) const;
44  Double_t RelativeEPJET(Double_t jetAng, Double_t EPAng) const;
45 
46  // parameters of detector to cut on for event
47  Double_t fPhimin; // phi min
48  Double_t fPhimax; // phi max
49  Double_t fEtamin; // eta min
50  Double_t fEtamax; // eta max
51  Double_t fAreacut; // area cut
52 
53  void ExecOnce();
55 
56  private:
58  THnSparse *fhnJetTriggerQA;
59 
60 
63 
64  ClassDef(AliAnalysisTaskEmcalJetPatchTriggerQA, 4); // ChristineQA
65 };
66 #endif
double Double_t
Definition: External.C:58
Definition: External.C:260
Definition: External.C:236
virtual void GetDimParams(Int_t iEntry, TString &label, Int_t &nbins, Double_t &xmin, Double_t &xmax)
THnSparse * fhnJetTriggerQA
number of jets versus Centrality
AliAnalysisTaskEmcalJetPatchTriggerQA & operator=(const AliAnalysisTaskEmcalJetPatchTriggerQA &)
TString fLocalRhoName
name for local rho
virtual THnSparse * NewTHnSparseF(const char *name, UInt_t entries)
void ExecOnce()
Perform steps needed to initialize the analysis.
int Int_t
Definition: External.C:63
unsigned int UInt_t
Definition: External.C:33
Double_t RelativeEPJET(Double_t jetAng, Double_t EPAng) const
virtual void SetJetPhi(Double_t pmin, Double_t pmax)
Base task in the EMCAL jet framework.
Represent a jet reconstructed using the EMCal jet framework.
Definition: AliEmcalJet.h:51
virtual void SetJetEta(Double_t emin, Double_t emax)
const char Option_t
Definition: External.C:48
const Int_t nbins
bool Bool_t
Definition: External.C:53
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.