AliPhysics  2797316 (2797316)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskEmcalJetMassStructure.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKEMCALJETMASSSTRUCTURE_H
2 #define ALIANALYSISTASKEMCALJETMASSSTRUCTURE_H
3 
4 class TH1;
5 class TH2;
6 class TH3;
7 class TProfile;
8 class THnSparse;
9 class TClonesArray;
10 class TArrayI;
11 class TRandom3;
12 class TList;
13 
14 class AliAnalysisManager;
15 class AliJetContainer;
16 class AliEmcalJet;
18 
20 
22  public:
23  enum JetMassType {
24  kRaw = 0, //mass form anti-kt 4-vector
25  kDeriv = 1 //area based subtracted jet mass
26  };
27 
29  kNoCorr = 0,
30  kAnnulus = 1, //reproduce existing particles (over-corrects)
32  };
33 
35  AliAnalysisTaskEmcalJetMassStructure(const char *name);
37 
39  void Terminate(Option_t *option);
40 
41  //Setters
42  void SetJetContainerBase(Int_t c) { fContainerBase = c ; }
43  void SetMinFractionShared(Double_t f) { fMinFractionShared = f ; }
45  void SetFixedTrackEfficiency(Double_t eff) { fEfficiencyFixed = eff ; }
48  void SetParticleArray(TString particles) { fPartArrayN = particles;}
49  Int_t CalculateNMissingTracks(AliEmcalJet *jet1, AliEmcalJet *jPart);
50  //Getters
52 
53  protected:
54  Bool_t RetrieveEventObjects();
55  Bool_t Run();
56  Bool_t FillHistograms();
57 
58  Bool_t GetSortedArray(Int_t indexes[], Float_t dr[], AliEmcalJet *jet) const;
59  Double_t GetJetMass(AliEmcalJet *jet);
60  Double_t GetEfficiency(Double_t pt);
61 
63  Double_t fMinFractionShared;
65 
66  TH1F *fhtmppTRec;
67  TH1F *fhtmppTGen;
68 
69  TRandom3 *fRandom;
70  Double_t fEfficiencyFixed;
71 
74 
75  TH3F **fh3PtDRMass;
76  TH3F **fh3PtDRRho;
77  TH3F **fh3PtDRMassCorr;
78  TH3F **fh3PtDRRhoCorr;
79  TH2F **fh2PtMass;
80  TH2F **fh2PtMassCorr;
81  THnSparse *fhnMassResponse;
82  THnSparse *fhnMassResponseCorr;
84  THnSparse *fhnDeltaMass;
85  THnSparse *fhnDeltaMassCorr;
86  TH2F *fhAllpTRec;
88  TH2F *fhAllpTGen;
90  TH2F *fhAllpTCor;
92  THnSparse *fhConstRecGen;
95  TString fPartArrayN;
96  private:
99 
101 };
102 #endif
103 
TString fPartArrayN
Array of particles used for jet reconstruction at particle level (need to make it transient probably)...
AliAnalysisTaskEmcalJetMassStructure & operator=(const AliAnalysisTaskEmcalJetMassStructure &)
TH3F ** fh3PtDRMassCorr
! jet pT vs dr(jet axis, constituent) vs cumulative mass density corrected
THnSparse * fhnMassResponseCorr
! response matrix corrected
TList * fListOfOutputFromClass
! list of output from class AliEmcalJetByJetCorrection
THnSparse * fhnDeltaMass
! resolution on mass matrix
TH2F * fhAllpTRec
! histogram that stores the pT of the constituents (RECO level)
TH2F * fhAllpTGen
! histogram that stores the pT of the constituents (PART level)
THnSparse * fhnDeltaMassCorr
! resolution on mass matrix corrected
TH3F ** fh3JetPtDRTrackPt
! jet pt vs dr(jet axis, constituent) vs pT,track
JetByJetCorrType fCorrType
jet-by-jet correction method
Double_t fEfficiencyFixed
fixed efficiency for all pT and all types of tracks
void SetJetByJetCorrObject(AliEmcalJetByJetCorrection *a)
TH3F ** fh3PtDRRho
! jet pT vs dr(jet axis, constituent) vs cumulative pt density
TH3F ** fh3PtDRRhoCorr
! jet pT vs dr(jet axis, constituent) vs cumulative pt density corrected
Double_t fMinFractionShared
only fill histos for jets if shared fraction larger than X
Bool_t GetSortedArray(Int_t indexes[], Float_t dr[], AliEmcalJet *jet) const
JetMassType fJetMassType
jet mass type to be used
TH3F ** fh3PtDRMass
! jet pT vs dr(jet axis, constituent) vs cumulative mass density
AliEmcalJetByJetCorrection * fEJetByJetCorr
object to do jet-by-jet correction
Bool_t fSwitchResolutionhn
switch on/off (default on) the 2 THnSparse for the mass resolution
Base task in the EMCAL jet framework.
Represent a jet reconstructed using the EMCal jet framework.
Definition: AliEmcalJet.h:44
AliEmcalJetByJetCorrection * GetJetByJetCorrObject() const
TH2F * fhAllpTCor
! histogram that stores the pT of the constituents (CORR level)
Int_t CalculateNMissingTracks(AliEmcalJet *jet1, AliEmcalJet *jPart)
TH1F * fhtmppTGen
Temporary stores the pT distribution of jet constituents (gen level)
Container for jet within the EMCAL jet framework.
THnSparse * fhConstRecGen
! number of constituent correlation
TH1F * fhtmppTRec
Temporary stores the pT distribution of jet constituents (reco level)