AliPhysics  41af4b0 (41af4b0)
AliAnalysisTaskTracksInJet.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKTRACKSINJET_H
2 #define ALIANALYSISTASKTRACKSINJET_H
3 /* Copyright(c) 1998-2015, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 #include <AliAnalysisTaskSE.h>
7 
8 class TTree;
9 class AliAnalysisUtils;
10 class AliAODTrack;
11 class AliESDtrack;
12 class AliESDtrackCuts;
13 class AliGenPythiaEventHeader;
14 class AliMCEvent;
15 class AliVParticle;
16 class THistManager;
17 
18 namespace EMCalTriggerPtAnalysis {
19 
20 
26 public:
28  AliAnalysisTaskTracksInJet(const char *taskname);
30 
31  virtual void UserCreateOutputObjects();
32  virtual Bool_t UserNotify();
33  virtual void UserExec(Option_t *);
34  virtual void Terminate(Option_t *) {}
35 
36  void SetMC(Bool_t isMC) { fIsMC = isMC; }
37  void SetOutlierCut(double fracpthard = 1.2) { fFracPtHard = fracpthard; }
38 
39 
40 protected:
41  struct JetData{
46 
48  {
49  Reset();
50  }
51 
52  void Reset(){
53  memset(fPvecJet, 0, sizeof(Double_t) * 3);
54  memset(fPvecLead, 0, sizeof(Double_t) * 3);
55  memset(fPvecSubLead, 0, sizeof(Double_t) * 3);
56  fIsData = 0;
57  }
58  };
59 
60  Bool_t PythiaInfoFromFile(const char* currFile, Float_t &fXsec, Float_t &fTrials, Int_t &pthard) const;
61  Bool_t IsPhysicalPrimary(const AliVParticle* const part, AliMCEvent* const mcevent) const;
62  AliGenPythiaEventHeader *GetPythiaHeader() const;
63  Bool_t IsOutlier(AliGenPythiaEventHeader * const header) const;
64  Bool_t TrackSelectionESDHybrid(AliESDtrack* track) const;
65  Bool_t TrackSelectionESDDefault(AliESDtrack* track) const;
66  Bool_t TrackSelectionAODHybrid(AliAODTrack* track) const;
67  Bool_t TrackSelectionAODDefault(AliAODTrack* track) const;
68 
71  AliAnalysisUtils *fAnalysisUtils;
72  AliESDtrackCuts *fTrackCutsDefault;
73  AliESDtrackCuts *fHybridCutsCat1;
74  AliESDtrackCuts *fHybridCutsCat2;
75 
78 
79  // Histos for MC
81 
82 private:
83 
86 
87  ClassDef(AliAnalysisTaskTracksInJet, 1);
88 };
89 
90 } /* namespace EMCalTriggerPtAnalysis */
91 
92 #endif /* ALIANALYSISTASKTRACKSINJET_H */
Bool_t PythiaInfoFromFile(const char *currFile, Float_t &fXsec, Float_t &fTrials, Int_t &pthard) const
AliAnalysisTaskTracksInJet & operator=(const AliAnalysisTaskTracksInJet &ref)
double Double_t
Definition: External.C:58
Bool_t IsPhysicalPrimary(const AliVParticle *const part, AliMCEvent *const mcevent) const
Bool_t IsOutlier(AliGenPythiaEventHeader *const header) const
int Int_t
Definition: External.C:63
float Float_t
Definition: External.C:68
Stores p-vector of jet, leading track and subleading track.
Bool_t isMC
Analysis of high- tracks in triggered events.
Container class for histograms.
Definition: THistManager.h:99
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53