AliPhysics  b3a51e4 (b3a51e4)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskSubJetFraction.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKSUBJETFRACTION_H
2 #define ALIANALYSISTASKSUBJETFRACTION_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;
16 
18 #include "AliFJWrapper.h"
19 #include "AliClusterContainer.h"
20 
22  public:
23 
24  enum JetShapeType {
25  kTrue = 0, // generated jets only
26  kTrueDet =1, // detector and generated jets
27  kData = 2, // raw data
28  kDetEmbPart = 3, //detector embedded jets
29  kSim = 4,
30  kGenOnTheFly=5 //fast truth level MC
31  };
32  enum JetShapeSub {
33  kNoSub = 0,
34  kConstSub = 1,
35  kDerivSub = 2
36  };
39  kRecoil = 1
40  };
44  };
45 
47  AliAnalysisTaskSubJetFraction(const char *name);
49 
51  void Terminate(Option_t *option);
52 
53  //Setters
54  void SetJetContainer(Int_t c) { fContainer = c ; }
55  void SetMinFractionShared(Double_t f) { fMinFractionShared = f ; }
59  void SetJetPtThreshold(Float_t f) { fPtThreshold = f ; }
60  void SetJetRadius(Double_t JetRadius) {fJetRadius=JetRadius;}
61  void SetRMatching(Float_t f) { fRMatching = f ;}
62  void SetPtTriggerSelections(Float_t minpT, Float_t maxpT) { fminpTTrig = minpT; fmaxpTTrig = maxpT; }
66  void SetCentralitySelectionOn(Bool_t t) { fCentSelectOn = t;}
67  void SetMinCentrality(Float_t t) { fCentMin = t ; }
68  void SetMaxCentrality(Float_t t) { fCentMax = t ; }
69  void SetSemigoodCorrect(Int_t yesno) {fSemigoodCorrect=yesno;}
70  void SetHolePos(Float_t poshole) { fHolePos = poshole; }
71  void SetHoleWidth(Float_t holewidth) { fHoleWidth = holewidth; }
72  void SetSubJetAlgorithm(Int_t SubJetAlgorithm) {fSubJetAlgorithm=SubJetAlgorithm;}
73  void SetSubJetRadius(Float_t SubJetRadius) {fSubJetRadius=SubJetRadius;}
74  void SetSubJetMinPt(Float_t SubJetMinPt) {fSubJetMinPt=SubJetMinPt;}
75  void SetRMatched(Double_t RMatched) {fRMatched=RMatched;}
76  void SetSharedFractionPtMin(Double_t SharedFractionPtMin) {fSharedFractionPtMin=SharedFractionPtMin;}
77  void SetDerivativeSubtractionOrder(Int_t Order) {fDerivSubtrOrder = Order;}
78  void SetFullTree(Bool_t FullTree) {fFullTree = FullTree;}
79 
80  protected:
81  Bool_t RetrieveEventObjects();
82  Bool_t Run();
83  Bool_t FillHistograms();
84 
85  Int_t SelectTrigger(Float_t minpT, Float_t maxpT);
86  // Double_t RelativePhi(Double_t mphi, Double_t vphi);
87  Double_t RelativePhi(Double_t Phi1, Double_t Phi2);
88  Double_t Angularity(AliEmcalJet *Jet, Int_t JetContNb);
89  Double_t PTD(AliEmcalJet *Jet, Int_t JetContNb);
90  AliEmcalJetFinder *Recluster(AliEmcalJet *Jet, Int_t JetContNb, Double_t SubJetRadius, Double_t SubJetMinPt, Int_t Algorithm, const char* Name);
91  Double_t SubJetOrdering(AliEmcalJet *Jet, AliEmcalJetFinder *Reclusterer, Int_t N, Int_t Type, Bool_t Index);
92  Double_t SubJetFraction(AliEmcalJet *Jet, AliEmcalJetFinder *Reclusterer, Int_t N, Int_t Type, Bool_t Add, Bool_t Loss);
93  Double_t NSubJettiness(AliEmcalJet *Jet, Int_t JetContNb, Double_t JetRadius, AliEmcalJetFinder *Reclusterer, Int_t N, Int_t A, Int_t B);
94  Double_t fjNSubJettiness(AliEmcalJet *Jet, Int_t JetContNb, Int_t N, Int_t Algorithm, Double_t Beta, Int_t Option=0);
95 
96  Int_t fContainer; // jets to be analyzed 0 for Base, 1 for subtracted.
97  Float_t fMinFractionShared; // only fill histos for jets if shared fraction larger than X
98  JetShapeType fJetShapeType; // jet type to be used
99  JetShapeSub fJetShapeSub; // jet subtraction to be used
100  JetSelectionType fJetSelection; // Jet selection: inclusive/recoil jet
101  Double_t *fShapesVar; // jet shapes used for the tagging
102  Float_t fPtThreshold;
103  Float_t fRMatching;
104 
105  Float_t fminpTTrig; //min - max pT for trigger particle in case of recoil jet
106  Float_t fmaxpTTrig;
107  Float_t fangWindowRecoil; //angular window for btb recoil analysis
108  Int_t fSemigoodCorrect; //if==1 we run over semigood runs
109  Float_t fHolePos; //position in radians of the bad TPC sector
110  Float_t fHoleWidth; //width of the hole in radians
111  Bool_t fCentSelectOn; // switch on/off centrality selection
112  Float_t fCentMin; // min centrality value
113  Float_t fCentMax; // max centrality value
115  Float_t fSubJetRadius;
116  Float_t fSubJetMinPt;
117  Double_t fJetRadius;
118  Double_t fRMatched;
121  Double_t Background_Fluc;
123  Bool_t fFullTree;
124 
125 
126  TH1F *fhJetPt;
127  TH1F *fhJetPt_1;
128  TH1F *fhJetPt_2;
129  TH1F *fhJetPhi;
130  TH1F *fhJetPhi_1;
131  TH1F *fhJetPhi_2;
132  TH1F *fhJetEta;
133  TH1F *fhJetEta_1;
134  TH1F *fhJetEta_2;
135  TH1F *fhJetMass;
136  TH1F *fhJetMass_1;
137  TH1F *fhJetMass_2;
138  TH1F *fhJetRadius;
143  TH1F *fhJetPTD;
151  TH1F *fhSubJetPt;
185  TH2F *fh2PtRatio;
231  TTree *fTreeResponseMatrixAxis; //Tree with tagging variables subtracted MC or true MC or raw
232 
233  private:
236 
237  ClassDef(AliAnalysisTaskSubJetFraction, 6)
238 };
239 #endif
240 
Double_t fjNSubJettiness(AliEmcalJet *Jet, Int_t JetContNb, Int_t N, Int_t Algorithm, Double_t Beta, Int_t Option=0)
AliAnalysisTaskSubJetFraction & operator=(const AliAnalysisTaskSubJetFraction &)
Double_t PTD(AliEmcalJet *Jet, Int_t JetContNb)
void SetPtTriggerSelections(Float_t minpT, Float_t maxpT)
Double_t NSubJettiness(AliEmcalJet *Jet, Int_t JetContNb, Double_t JetRadius, AliEmcalJetFinder *Reclusterer, Int_t N, Int_t A, Int_t B)
Int_t SelectTrigger(Float_t minpT, Float_t maxpT)
Double_t RelativePhi(Double_t Phi1, Double_t Phi2)
void SetSubJetAlgorithm(Int_t SubJetAlgorithm)
Double_t SubJetFraction(AliEmcalJet *Jet, AliEmcalJetFinder *Reclusterer, Int_t N, Int_t Type, Bool_t Add, Bool_t Loss)
void SetSharedFractionPtMin(Double_t SharedFractionPtMin)
void SetSubJetRadius(Float_t SubJetRadius)
AliEmcalJetFinder * Recluster(AliEmcalJet *Jet, Int_t JetContNb, Double_t SubJetRadius, Double_t SubJetMinPt, Int_t Algorithm, const char *Name)
Base task in the EMCAL jet framework.
Represent a jet reconstructed using the EMCal jet framework.
Definition: AliEmcalJet.h:44
Double_t Angularity(AliEmcalJet *Jet, Int_t JetContNb)
Double_t SubJetOrdering(AliEmcalJet *Jet, AliEmcalJetFinder *Reclusterer, Int_t N, Int_t Type, Bool_t Index)
Container for jet within the EMCAL jet framework.