AliPhysics  97344c9 (97344c9)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskRecoilJetYield.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKRECOILJETYIELD_H
2 #define ALIANALYSISTASKRECOILJETYIELD_H
3 
4 #define LOG_NO_WARNING
5 
6 class TH1;
7 class TH2;
8 class TH3;
9 class TH3F;
10 class TTree;
11 class THnSparse;
12 class TClonesArray;
13 class TArrayI;
14 class AliAnalysisManager;
15 class AliJetContainer;
16 class AliEmcalJetFinder;
17 class AliFJWrapper;
18 
20 #include "AliFJWrapper.h"
21 #include "AliClusterContainer.h"
22 const Int_t nBranch = 13;
24  public:
25 
26  enum JetShapeType {
27  kTrue = 0, // generated jets only
28  kTrueDet =1, // detector and generated jets
29  kData = 2, // raw data
30  kDetEmbPart = 3, //detector embedded jets
31  kSim = 4,
32  kGenOnTheFly=5 //fast truth level MC
33  };
34  enum JetShapeSub {
35  kNoSub = 0,
36  kConstSub = 1,
37  kDerivSub = 2
38  };
41  kRecoil = 1
42  };
46  };
47 
49  AliAnalysisTaskRecoilJetYield(const char *name);
51 
53  void Terminate(Option_t *option);
54 
55  //Setters
62  void SetJetRadius(Double_t JetRadius) {fJetRadius=JetRadius;}
63  void SetRMatching(Float_t f) { fRMatching = f ;}
72  void SetHolePos(Float_t poshole) { fHolePos = poshole;}
73  void SetHoleWidth(Float_t holewidth) { fHoleWidth = holewidth;}
74  void SetSubJetAlgorithm(Int_t SubJetAlgorithm) {fSubJetAlgorithm=SubJetAlgorithm;}
75  void SetSubJetRadius(Float_t SubJetRadius) {fSubJetRadius=SubJetRadius;}
76  void SetSubJetMinPt(Float_t SubJetMinPt) {fSubJetMinPt=SubJetMinPt;}
77  void SetRMatched(Double_t RMatched) {fRMatched=RMatched;}
78  void SetSharedFractionPtMin(Double_t SharedFractionPtMin) {fSharedFractionPtMin=SharedFractionPtMin;}
80  void SetFullTree(Bool_t FullTree) {fFullTree = FullTree;}
81  void SetBetaSD(Double_t BetaSD) {fBeta_SD = BetaSD;}
82  void SetZCut(Double_t ZCut) {fZCut = ZCut;}
84 
85  void SetNsubUnNormMeasure( Bool_t NsubMeasure) {fNsubMeasure= NsubMeasure;}
86  void SetRhoName(const char *r) {fRhoName = r;}
87 
88 
89  protected:
91  Bool_t Run();
93 
96 
97  Double_t Angularity(AliEmcalJet *Jet, Int_t JetContNb);
98  Double_t PTD(AliEmcalJet *Jet, Int_t JetContNb);
99  void SoftDrop(AliEmcalJet *fJet,AliJetContainer *fJetCont, double zcut, double beta);
101 
102 
103  Int_t fContainer; // jets to be analyzed 0 for Base, 1 for subtracted.
104  Float_t fMinFractionShared; // only fill histos for jets if shared fraction larger than X
105  JetShapeType fJetShapeType; // jet type to be used
106  JetShapeSub fJetShapeSub; // jet subtraction to be used
107  JetSelectionType fJetSelection; // Jet selection: inclusive/recoil jet
108  Double_t fJetInfoVar[nBranch]; // jet shapes used for the tagging
111 
112  Float_t fPtMinTriggerHadron; //min - max pT for trigger particle in case of recoil jet
114  Float_t fRecoilAngularWindow; //angular window for btb recoil analysis
115  Int_t fSemigoodCorrect; //if==1 we run over semigood runs
116  Float_t fHolePos; //position in radians of the bad TPC sector
117  Float_t fHoleWidth; //width of the hole in radians
118  Bool_t fCentSelectOn; // switch on/off centrality selection
119  Float_t fCentMin; // min centrality value
120  Float_t fCentMax; // max centrality value
137 
139 
140  TH1F *fhJetPt;
141  TH1F *fhJetPhi;
142  TH1F *fhJetEta;
143  TH1F *fhJetMass;
144  TH1F *fhJetRadius;
147  TH1F *fhJetArea;
153  TH1F *fhTrackPt;
154  TTree *fTreeJetInfo; //Tree with tagging variables subtracted MC or true MC or raw
155 
156  private:
159 
160  ClassDef(AliAnalysisTaskRecoilJetYield, 6)
161 };
162 #endif
163 
void SetSharedFractionPtMin(Double_t SharedFractionPtMin)
double Double_t
Definition: External.C:58
Definition: External.C:260
Double_t PTD(AliEmcalJet *Jet, Int_t JetContNb)
Definition: External.C:236
Definition: External.C:244
TCanvas * c
Definition: TestFitELoss.C:172
void SetSubJetAlgorithm(Int_t SubJetAlgorithm)
int Int_t
Definition: External.C:63
float Float_t
Definition: External.C:68
Int_t SelectTriggerHadron(Float_t PtMin, Float_t PtMax)
const Int_t nBranch
Double_t Angularity(AliEmcalJet *Jet, Int_t JetContNb)
Double_t RelativePhi(Double_t Phi1, Double_t Phi2)
void SetSubJetRadius(Float_t SubJetRadius)
Definition: External.C:220
void SetNsubUnNormMeasure(Bool_t NsubMeasure)
AliAnalysisTaskRecoilJetYield & operator=(const AliAnalysisTaskRecoilJetYield &)
Base task in the EMCAL jet framework.
Represent a jet reconstructed using the EMCal jet framework.
Definition: AliEmcalJet.h:44
void SoftDrop(AliEmcalJet *fJet, AliJetContainer *fJetCont, double zcut, double beta)
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
Double_t RelativePhiEventPlane(Double_t EventPlane, Double_t Phi)
Container for jet within the EMCAL jet framework.
Definition: External.C:196
void SetPtTriggerSelections(Float_t PtMin, Float_t PtMax)