AliPhysics  7f2a7c4 (7f2a7c4)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskEmcalQGTagging.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKEMCALQGTAGGING_H
2 #define ALIANALYSISTASKEMCALQGTAGGING_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 
16 
17 
18 
20  public:
21 
22  enum JetShapeType {
23  kMCTrue = 0, // generated jets only
24  kTrueDet =1, // detector and generated jets
25  kData = 2, // raw data
26  kDetEmb = 3, //detector embedded jets
31  };
32  enum JetShapeSub {
33  kNoSub = 0,
34  kConstSub = 1,
35  kDerivSub = 2
36  };
39  kRecoil = 1
40  };
41 
45  };
46 
48  AliAnalysisTaskEmcalQGTagging(const char *name);
50 
52  void Terminate(Option_t *option);
53 
54  //Setters
61  void SetRMatching(Float_t f) { fRMatching = f ;}
63  void SetPtTriggerSelections(Float_t minpT, Float_t maxpT) { fminpTTrig = minpT; fmaxpTTrig = maxpT; }
69  void SetMinCentrality(Float_t t) { fCentMin = t ; }
70  void SetMaxCentrality(Float_t t) { fCentMax = t ; }
72  void SetHolePos(Float_t poshole) { fHolePos = poshole; }
73  void SetHoleWidth(Float_t holewidth) { fHoleWidth = holewidth; }
75  protected:
77  Bool_t Run();
79 
80  Float_t GetJetMass(AliEmcalJet *jet,Int_t jetContNb);
81  Float_t Angularity(AliEmcalJet *jet, Int_t jetContNb);
82  Float_t GetJetAngularity(AliEmcalJet *jet, Int_t jetContNb);
83  Float_t PTD(AliEmcalJet *jet, Int_t jetContNb);
84  Float_t GetJetpTD(AliEmcalJet *jet, Int_t jetContNb);
85  Float_t Circularity(AliEmcalJet *jet, Int_t jetContNb);
86  Float_t GetJetCircularity(AliEmcalJet *jet, Int_t jetContNb);
87  Float_t LeSub(AliEmcalJet *jet, Int_t jetContNb);
88  Float_t GetJetLeSub(AliEmcalJet *jet, Int_t jetContNb);
90  Float_t GetSigma2(AliEmcalJet *jet, Int_t jetContNb);
91  Float_t Sigma2(AliEmcalJet *jet, Int_t jetContNb);
92 
93  Int_t SelectTrigger(Float_t minpT, Float_t maxpT);
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  Float_t fShapesVar[18]; // jet shapes used for the tagging
104  Int_t fSelectedShapes; //chose set of shapes
105  Float_t fminpTTrig; //min - max pT for trigger particle in case of recoil jet
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
114  Bool_t fOneConstSelectOn; // switch on/off one constituent selection
116 
117 
125  TH1F *fPtJet;
126  TH2F *fhpTjetpT; //control p[lot fo the recoil analysis
127  TH1F *fhPt;
128  TH1F *fhPhi;
130 
131  TTree *fTreeObservableTagging; // Tree with tagging variables subtracted MC or true MC or raw
132 
133  private:
136 
137  ClassDef(AliAnalysisTaskEmcalQGTagging, 6)
138 };
139 #endif
140 
Int_t SelectTrigger(Float_t minpT, Float_t maxpT)
double Double_t
Definition: External.C:58
Definition: External.C:260
Definition: External.C:236
Definition: External.C:244
Float_t GetJetMass(AliEmcalJet *jet, Int_t jetContNb)
void SetPtTriggerSelections(Float_t minpT, Float_t maxpT)
AliAnalysisTaskEmcalQGTagging & operator=(const AliAnalysisTaskEmcalQGTagging &)
TCanvas * c
Definition: TestFitELoss.C:172
Float_t GetJetAngularity(AliEmcalJet *jet, Int_t jetContNb)
int Int_t
Definition: External.C:63
Float_t GetJetCircularity(AliEmcalJet *jet, Int_t jetContNb)
Float_t PTD(AliEmcalJet *jet, Int_t jetContNb)
float Float_t
Definition: External.C:68
Float_t GetSigma2(AliEmcalJet *jet, Int_t jetContNb)
Float_t Angularity(AliEmcalJet *jet, Int_t jetContNb)
Float_t LeSub(AliEmcalJet *jet, Int_t jetContNb)
Definition: External.C:220
Float_t Sigma2(AliEmcalJet *jet, Int_t jetContNb)
Double_t RelativePhi(Double_t mphi, Double_t vphi)
Float_t GetJetNumberOfConstituents(AliEmcalJet *jet, Int_t jetContNb)
Base task in the EMCAL jet framework.
Represent a jet reconstructed using the EMCal jet framework.
Definition: AliEmcalJet.h:44
Float_t GetJetpTD(AliEmcalJet *jet, Int_t jetContNb)
const char Option_t
Definition: External.C:48
Float_t Circularity(AliEmcalJet *jet, Int_t jetContNb)
bool Bool_t
Definition: External.C:53
Float_t GetJetLeSub(AliEmcalJet *jet, Int_t jetContNb)
Container for jet within the EMCAL jet framework.
Definition: External.C:196