AliPhysics  master (3d17d9d)
AliAnalysisTaskHardestBranch.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKHARDESTBRANCH_H
2 #define ALIANALYSISTASKHARDESTBRANCH_H
3 
4 class TH1;
5 class TH2;
6 class TH3;
7 class TH3F;
8 class TTree;
9 class THnSparse;
10 class TClonesArray;
11 class TArrayI;
12 class AliAnalysisManager;
13 class AliJetContainer;
14 class AliEmcalJetFinder;
15 class AliFJWrapper;
17 #include "AliFJWrapper.h"
18 
20 public:
21  enum JetShapeType {
22  kMCTrue = 0, // generated jets only
23  kTrueDet = 1, // detector and generated jets
24  kData = 2, // raw data
25  kDetEmb = 3, // detector embedded jets
30  };
31  enum JetShapeSub { kNoSub = 0, kConstSub = 1, kDerivSub = 2 };
32  enum JetSelectionType { kInclusive = 0, kRecoil = 1 };
33 
35 
37  AliAnalysisTaskHardestBranch(const char *name);
39 
41  void Terminate(Option_t *option);
42 
43  // Setters
50  void SetRMatching(Float_t f) { fRMatching = f; }
51 
59  void SetDoTwoTrack(Bool_t t) { fDoTwoTrack = t; }
66 
67 
68 protected:
70  Bool_t Run();
72 
73  Float_t GetJetMass(AliEmcalJet *jet, Int_t jetContNb);
74  Float_t Angularity(AliEmcalJet *jet, Int_t jetContNb);
75  Float_t GetJetAngularity(AliEmcalJet *jet, Int_t jetContNb);
77  void IterativeParents(AliEmcalJet *fJet, AliJetContainer *fJetCont);
79  void IterativeParentsMCAverage(AliEmcalJet *fJet, Int_t km, Double_t &aver1,
80  Double_t &aver2, Double_t &aver3,
81  Double_t &aver4, Double_t &aver5);
83  AliEmcalJet *fJetM, AliJetContainer *fJetContM);
84  Bool_t CheckClosePartner(Int_t index, AliEmcalJet *fJet, AliVParticle *fTrack,
85  AliParticleContainer *fTrackCont);
86  Int_t fContainer; // jets to be analyzed 0 for Base, 1 for subtracted.
87  Float_t fMinFractionShared; // only fill histos for jets if shared fraction
88  // larger than X
89  JetShapeType fJetShapeType; // jet type to be used
90  JetShapeSub fJetShapeSub; // jet subtraction to be used
91  JetSelectionType fJetSelection; // Jet selection: inclusive/recoil jet
92  Float_t fShapesVar[12]; // jet shapes used for the tagging
95 
96  Bool_t fCentSelectOn; // switch on/off centrality selection
97  Float_t fCentMin; // min centrality value
98  Float_t fCentMax; // max centrality value
99  Bool_t fOneConstSelectOn; // switch on/off one constituent selection
100  Bool_t fTrackCheckPlots; // switch on qa plots
101  Bool_t fDoFillMCLund; // to fill the matched mc plane
102  Bool_t fCheckResolution; // check subjet energy resolution
103  Float_t fSubjetCutoff; // angular cutoff for subjets at det/gen level
104  Float_t fMinPtConst; // constituent pt cutoff
105  Float_t fHardCutoff; // hard cutoff in the iterative declustering
106  Bool_t fDoTwoTrack; // switch to consider 2 track effects
107  Bool_t fDoAreaIterative; // subtract the area in the declustering
108  Float_t fPowerAlgo; // power of the generickt algorithm
109  Float_t fPhiCutValue; // cuts from HBT
110  Float_t fEtaCutValue; // cuts from HBT
111  Float_t fMagFieldPolarity; // polarity, to calculate phimin
113 
114 
115  TH1F *fPtJet;
116 
117 
118 
119  TTree *fTreeSubstructure; // Tree with tagging variables subtracted MC or true
120  // MC or raw
121 
122 private:
124  const AliAnalysisTaskHardestBranch &); // not implemented
126  operator=(const AliAnalysisTaskHardestBranch &); // not implemented
127 
128  ClassDef(AliAnalysisTaskHardestBranch, 7)
129 };
130 #endif
double Double_t
Definition: External.C:58
Definition: External.C:260
void IterativeParentsMCAverage(AliEmcalJet *fJet, Int_t km, Double_t &aver1, Double_t &aver2, Double_t &aver3, Double_t &aver4, Double_t &aver5)
Definition: External.C:244
Bool_t FillHistograms()
Function filling histograms.
void CheckSubjetResolution(AliEmcalJet *fJet, AliJetContainer *fJetCont, AliEmcalJet *fJetM, AliJetContainer *fJetContM)
TCanvas * c
Definition: TestFitELoss.C:172
Float_t Angularity(AliEmcalJet *jet, Int_t jetContNb)
Container for particles within the EMCAL framework.
Bool_t RetrieveEventObjects()
Retrieve common objects from event.
int Int_t
Definition: External.C:63
float Float_t
Definition: External.C:68
Double_t RelativePhi(Double_t mphi, Double_t vphi)
Float_t GetJetMass(AliEmcalJet *jet, Int_t jetContNb)
void SetJetSelection(JetSelectionType t)
AliAnalysisTaskHardestBranch & operator=(const AliAnalysisTaskHardestBranch &)
void IterativeParents(AliEmcalJet *fJet, AliJetContainer *fJetCont)
Bool_t CheckClosePartner(Int_t index, AliEmcalJet *fJet, AliVParticle *fTrack, AliParticleContainer *fTrackCont)
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.
Definition: External.C:220
Base task in the EMCAL jet framework.
Represent a jet reconstructed using the EMCal jet framework.
Definition: AliEmcalJet.h:51
const char Option_t
Definition: External.C:48
Float_t GetJetAngularity(AliEmcalJet *jet, Int_t jetContNb)
bool Bool_t
Definition: External.C:53
void IterativeParentsAreaBased(AliEmcalJet *fJet, AliJetContainer *fJetCont)
Container for jet within the EMCAL jet framework.
Definition: External.C:196