AliPhysics  0b37c46 (0b37c46)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskEmcalJetTagger.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKEMCALJETTAGGER_H
2 #define ALIANALYSISTASKEMCALJETTAGGER_H
3 
4 class TH1;
5 class TH2;
6 class TH3;
7 class AliJetContainer;
8 
10 
12  public:
14  kGeo = 0,
16  };
17 
19  kTag = 0,
21  };
22 
24  AliAnalysisTaskEmcalJetTagger(const char *name);
26 
28  void Terminate(Option_t *option);
29 
30  //Setters
33 
36 
38 
39  void SetUseSumw2(Bool_t b) { fUseSumw2 = b;}
40 
41  void SetTypeAcceptance(Int_t type) { fTypeAcc = type; /*see Init()*/}
42  void SetMaxDistance(Double_t dist) { fMaxDist = dist; }
43  void SetSpecialParticleContainer(Int_t contnumb) { fSpecPartContTag = contnumb; }
44  protected:
46  Bool_t Run();
48  void Init();
49  Double_t GetDeltaPhi(const AliEmcalJet* jet1, const AliEmcalJet* jet2);
51 
52  void MatchJetsGeo(Int_t c1 = -1, Int_t c2 = -1, Int_t iDebug = 0, Float_t maxDist = 0.3, Int_t type = 2, Bool_t bReset = kTRUE);
53  void ResetTagging(const Int_t c);
54 
55  private:
56  JetTaggingType fJetTaggingType; // jet matching type
57  JetTaggingMethod fJetTaggingMethod; // jet matching method
58  Int_t fContainerBase; // jets to be tagged
59  Int_t fContainerTag; // jets used for tagging
60  Int_t fSpecPartContTag; // particle container optionally used in AliJetContainer::GetFractionSharedPt(). Set only if needed.
61  Double_t fMinFractionShared; // only fill histos for jets if shared fraction larger than X
62  Bool_t fUseSumw2; // activate sumw2 for output histograms
63  Bool_t fMatchingDone; // flag to indicate if matching is done or not
64  Int_t fTypeAcc; // acceptance cut for the jet containers, see method MatchJetsGeo in .cxx for possibilities
65  Double_t fMaxDist; // distance allowed for two jets to match
66  Bool_t fInit; // true when the containers are initialized
70 
75 
81 
83 };
84 #endif
85 
double Double_t
Definition: External.C:58
Definition: External.C:260
Definition: External.C:236
Definition: External.C:244
TH1 * fNAccJets
pt jet vs Area vs delta R of constituents
void MatchJetsGeo(Int_t c1=-1, Int_t c2=-1, Int_t iDebug=0, Float_t maxDist=0.3, Int_t type=2, Bool_t bReset=kTRUE)
TCanvas * c
Definition: TestFitELoss.C:172
TH2F ** fh2PtJet2VsRelPt
pT of base jet vs tagged jet
TH2F ** fh2PtJet1VsLeadPtTagged
all jets after std selection
TH2F ** fh2PtJet1VsDeltaR
pt jet 1 vs deta vs dphi
int Int_t
Definition: External.C:63
float Float_t
Definition: External.C:68
void SetJetTaggingMethod(JetTaggingMethod m)
AliAnalysisTaskEmcalJetTagger & operator=(const AliAnalysisTaskEmcalJetTagger &)
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
Bool_t FillHistograms()
Function filling histograms.
TH2F ** fh2PtJet1VsLeadPtAllSel
pt jet 1 vs shared fraction
Base task in the EMCAL jet framework.
Represent a jet reconstructed using the EMCal jet framework.
Definition: AliEmcalJet.h:51
TH3F * fh3PtJetDEtaDPhiConst
pT of tagged jet vs pt base jet / pt tagged jet
const char Option_t
Definition: External.C:48
Double_t GetDeltaPhi(const AliEmcalJet *jet1, const AliEmcalJet *jet2)
bool Bool_t
Definition: External.C:53
TH3F * fh3PtJetAreaDRConst
pt jet vs delta eta vs delta phi of constituents
Container for jet within the EMCAL jet framework.
Definition: External.C:196
Bool_t RetrieveEventObjects()
Retrieve common objects from event.