AliPhysics  6cf2591 (6cf2591)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliHighPtReconstructionEfficiency.h
Go to the documentation of this file.
1 
9 #ifndef ALIHIGHPTRECONSTRUCTIONEFFICIENCY_H
10 #define ALIHIGHPTRECONSTRUCTIONEFFICIENCY_H
11 /* Copyright(c) 1998-2015, ALICE Experiment at CERN, All rights reserved. *
12  * See cxx source for full Copyright notice */
13 
14 #include "AliAnalysisTaskSE.h"
15 
16 #include <map>
17 #include <vector>
18 #include <fastjet/PseudoJet.hh>
19 #include "AliParticleMap.h"
20 
21 class AliESDtrackCuts;
22 class AliVParticle;
23 class AliVTrack;
24 class TList;
25 class TNtuple;
26 
41 namespace HighPtTracks {
42 
43 class AliReducedJetEvent;
44 class AliReducedJetInfo;
45 
56 public:
61  enum CutType_t{
64  };
66  AliHighPtReconstructionEfficiency(const char *name);
68 
69  virtual void UserCreateOutputObjects();
70  virtual bool UserNotify();
71  virtual void UserExec(Option_t* /*option*/);
72  void Terminate(Option_t* /*option*/) {}
73 
79  void SetMaxEtaParticles(double maxeta) { fMaxEtaParticles = maxeta; }
80 
86  void SetMaxEtaJets(double maxeta) { fMaxEtaJets = maxeta; }
87 
93  void SetMinPtTracks(double minpt) { fMinPtParticles = minpt; }
94 
100  void SetMaxDR(double maxdr) { fMaxDR = maxdr; }
101 
107  void SetStandardTrackCuts(AliESDtrackCuts *const cuts) { SetTrackCuts(cuts, kRJStandardCuts); }
108 
114  void SetHybridTrackCuts(AliESDtrackCuts *const cuts) { SetTrackCuts(cuts, kRJHybridCuts); }
115 
119  void SetTaskDebugMode() { fTaskDebugMode = true; }
120 
121 protected:
122  void SetTrackCuts(AliESDtrackCuts *const cuts, CutType_t cuttype) { fTrackCuts[cuttype] = cuts; }
123  bool IsSelected(const AliVTrack * const track, CutType_t type) const;
124  bool IsTrueSelected(const AliVParticle *const track) const;
125  void SelectParticlesForJetfinding(TList &particles) const;
126  void CreateRectrackLookup();
127  std::vector<AliReconstructedParticlePair> SelectParticles() const;
128  double GetDR(const fastjet::PseudoJet &recjet, const AliVParticle *const inputtrack) const;
129  const AliParticleList * FindReconstructedParticleFast(int label) const;
130  void ProcessJet(AliReducedJetInfo *const jet, const std::vector<AliReconstructedParticlePair> &particles) const;
131  void ConvertConstituents(AliReducedJetInfo * const recjet, const fastjet::PseudoJet &inputjet);
132  bool IsPhysicalPrimary(const AliVParticle *const part) const;
133  bool PythiaInfoFromFile(const char* currFile, double &fXsec, double &fTrials, int &pthard) const ;
134  unsigned short GetNumberOfTPCTrackReferences(AliVParticle *const trk) const;
135 
136 private:
139 
140  AliESDtrackCuts *fTrackCuts[2];
143 
144  // Output objects
147 
148  double fMaxEtaJets;
151  double fMaxDR;
152 
153  double fCrossSection;
154  double fNtrials;
156 
158 
162 };
163 
164 }
165 #endif /* ALIHIGHPTRECONSTRUCTIONEFFICIENCY_H */
double fMaxDR
maximum distance of a particle to the main jet axis
void ConvertConstituents(AliReducedJetInfo *const recjet, const fastjet::PseudoJet &inputjet)
bool IsSelected(const AliVTrack *const track, CutType_t type) const
Event structure containing reduced jet information.
Container of reconstructed particles.
bool PythiaInfoFromFile(const char *currFile, double &fXsec, double &fTrials, int &pthard) const
Analysis task producing filtered trees with reconstructed jets at generator level.
bool IsTrueSelected(const AliVParticle *const track) const
unsigned short GetNumberOfTPCTrackReferences(AliVParticle *const trk) const
void ProcessJet(AliReducedJetInfo *const jet, const std::vector< AliReconstructedParticlePair > &particles) const
Reduced information about a reconstructed jet.
void SetMaxDR(double maxdr)
Set Maximum allowed distance for particles associated with a jet to the main jet axis.
AliParticleMap * fParticleMap
Map of reconstructed particles associate to a Monte-Carlo label.
AliHighPtReconstructionEfficiency & operator=(const AliHighPtReconstructionEfficiency &)
double GetDR(const fastjet::PseudoJet &recjet, const AliVParticle *const inputtrack) const
void SetTrackCuts(AliESDtrackCuts *const cuts, CutType_t cuttype)
const AliParticleList * FindReconstructedParticleFast(int label) const
Find reconstructed particles for a given label.
Helper objects for mapping MC-particles to reconstructed particles.
const char Option_t
Definition: External.C:48
bool IsPhysicalPrimary(const AliVParticle *const part) const
Checks if the particle is a physical primary particle.
std::vector< AliReconstructedParticlePair > SelectParticles() const
Map of reconstructed particles which share the same Monte-Carlo label.