AliPhysics  04715ba (04715ba)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet Class Reference

Stores p-vector of jet, leading track and subleading track. More...

#include <AliAnalysisTaskTracksInJet.h>

Inheritance diagram for EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet:

Classes

struct  JetData
 

Public Member Functions

 AliAnalysisTaskTracksInJet ()
 
 AliAnalysisTaskTracksInJet (const char *taskname)
 
virtual ~AliAnalysisTaskTracksInJet ()
 
virtual void UserCreateOutputObjects ()
 
virtual Bool_t UserNotify ()
 
virtual void UserExec (Option_t *)
 
virtual void Terminate (Option_t *)
 
void SetMC (Bool_t isMC)
 
void SetOutlierCut (double fracpthard=1.2)
 

Protected Member Functions

Bool_t PythiaInfoFromFile (const char *currFile, Float_t &fXsec, Float_t &fTrials, Int_t &pthard) const
 
Bool_t IsPhysicalPrimary (const AliVParticle *const part, AliMCEvent *const mcevent) const
 
AliGenPythiaEventHeader * GetPythiaHeader () const
 
Bool_t IsOutlier (AliGenPythiaEventHeader *const header) const
 
Bool_t TrackSelectionESDHybrid (AliESDtrack *track) const
 
Bool_t TrackSelectionESDDefault (AliESDtrack *track) const
 
Bool_t TrackSelectionAODHybrid (AliAODTrack *track) const
 
Bool_t TrackSelectionAODDefault (AliAODTrack *track) const
 

Protected Attributes

JetData fJetStructure
 
TTreefJetTree
 
AliAnalysisUtils * fAnalysisUtils
 
AliESDtrackCuts * fTrackCutsDefault
 
AliESDtrackCuts * fHybridCutsCat1
 
AliESDtrackCuts * fHybridCutsCat2
 
Bool_t fIsMC
 
Double_t fFracPtHard
 
THistManagerfHistosMC
 

Private Member Functions

 AliAnalysisTaskTracksInJet (AliAnalysisTaskTracksInJet &ref)
 
AliAnalysisTaskTracksInJetoperator= (const AliAnalysisTaskTracksInJet &ref)
 

Detailed Description

Stores p-vector of jet, leading track and subleading track.

Definition at line 25 of file AliAnalysisTaskTracksInJet.h.

Constructor & Destructor Documentation

EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet::AliAnalysisTaskTracksInJet ( )

Constructor

Definition at line 59 of file AliAnalysisTaskTracksInJet.cxx.

EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet::AliAnalysisTaskTracksInJet ( const char *  taskname)

Definition at line 73 of file AliAnalysisTaskTracksInJet.cxx.

EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet::~AliAnalysisTaskTracksInJet ( )
virtual

Definition at line 89 of file AliAnalysisTaskTracksInJet.cxx.

EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet::AliAnalysisTaskTracksInJet ( AliAnalysisTaskTracksInJet ref)
private

Member Function Documentation

AliGenPythiaEventHeader * EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet::GetPythiaHeader ( ) const
protected

Access PYTHIA event header

Returns
pythia event header (if existing)

Definition at line 502 of file AliAnalysisTaskTracksInJet.cxx.

Referenced by UserExec().

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet::IsOutlier ( AliGenPythiaEventHeader *const  header) const
protected

Find outlier jets compared to the pt hard

Parameters
headerPYTHIA header with trigger jets and pt hard
Returns
True if event has at least one outlier, false otherwise

Definition at line 522 of file AliAnalysisTaskTracksInJet.cxx.

Referenced by UserExec().

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet::IsPhysicalPrimary ( const AliVParticle *const  part,
AliMCEvent *const  mcevent 
) const
protected

Check in a transparent way for ESDs and AODs whether the particle is physical primary or not

  1. AOD: Information stored in the AliAODMCParticle
  2. ESD: Information needs to be retrieved from the stack via the label of the MC particle
    Parameters
    partThe particle to check
    mceventThe MC event containing the stack (ESD only)
    Returns
    True if particle is a physical primary particle, false otherwise

Definition at line 487 of file AliAnalysisTaskTracksInJet.cxx.

Referenced by UserExec().

AliAnalysisTaskTracksInJet& EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet::operator= ( const AliAnalysisTaskTracksInJet ref)
private
Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet::PythiaInfoFromFile ( const char *  currFile,
Float_t fXsec,
Float_t fTrials,
Int_t pthard 
) const
protected

Get the cross section and the trails either from pyxsec.root or from pysec_hists.root Get the pt hard bin from the file path This is to called in Notify and should provide the path to the AOD/ESD file (Partially copied from AliAnalysisHelperJetTasks) From AliAnalysisTaskEmcal

Parameters
currFileFile name with PYTHIA hard cross section
fXsecOutput storage for the cross section
fTrialsOutput storage for the number of trials
pthardOutput storage of the pthardbin
Returns
True if reading was successful, false in case of errors

Definition at line 407 of file AliAnalysisTaskTracksInJet.cxx.

Referenced by UserNotify().

void EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet::SetMC ( Bool_t  isMC)
inline

Definition at line 36 of file AliAnalysisTaskTracksInJet.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet::SetOutlierCut ( double  fracpthard = 1.2)
inline

Definition at line 37 of file AliAnalysisTaskTracksInJet.h.

virtual void EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet::Terminate ( Option_t )
inlinevirtual

Definition at line 34 of file AliAnalysisTaskTracksInJet.h.

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet::TrackSelectionAODDefault ( AliAODTrack *  track) const
protected

Run default track selection for AOD tracks

Parameters
trackThe track to check
Returns
True if the track is selected, false otherwise

Definition at line 389 of file AliAnalysisTaskTracksInJet.cxx.

Referenced by UserExec().

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet::TrackSelectionAODHybrid ( AliAODTrack *  track) const
protected

Run hybrid track selection for AOD tracks

Parameters
trackThe track to check
Returns
True if the track is selected, false otherwise

Definition at line 378 of file AliAnalysisTaskTracksInJet.cxx.

Referenced by UserExec().

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet::TrackSelectionESDDefault ( AliESDtrack *  track) const
protected

Run track selection for ESD tracks. Does the default track selection.

Parameters
trackThe track to check
Returns
True if the track is selected, false otherwise

Definition at line 369 of file AliAnalysisTaskTracksInJet.cxx.

Referenced by UserExec().

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet::TrackSelectionESDHybrid ( AliESDtrack *  track) const
protected

Run track selection for ESD tracks. Does hybrid track selection. Remember to do this on a copy

Parameters
trackThe track to check
Returns
True if the track is selected, false otherwise

Definition at line 335 of file AliAnalysisTaskTracksInJet.cxx.

Referenced by UserExec().

void EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet::UserCreateOutputObjects ( )
virtual

Definition at line 91 of file AliAnalysisTaskTracksInJet.cxx.

void EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet::UserExec ( Option_t )
virtual

Event loop

Parameters

Definition at line 176 of file AliAnalysisTaskTracksInJet.cxx.

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet::UserNotify ( )
virtual

Perform actions when giles change

Returns

Definition at line 136 of file AliAnalysisTaskTracksInJet.cxx.

Member Data Documentation

AliAnalysisUtils* EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet::fAnalysisUtils
protected

Definition at line 71 of file AliAnalysisTaskTracksInJet.h.

Referenced by UserCreateOutputObjects(), and UserExec().

Double_t EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet::fFracPtHard
protected

Definition at line 77 of file AliAnalysisTaskTracksInJet.h.

Referenced by IsOutlier(), SetOutlierCut(), and UserExec().

THistManager* EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet::fHistosMC
protected

Definition at line 80 of file AliAnalysisTaskTracksInJet.h.

Referenced by UserCreateOutputObjects(), UserExec(), and UserNotify().

AliESDtrackCuts* EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet::fHybridCutsCat1
protected
AliESDtrackCuts* EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet::fHybridCutsCat2
protected
Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet::fIsMC
protected

Definition at line 76 of file AliAnalysisTaskTracksInJet.h.

Referenced by SetMC(), and UserNotify().

JetData EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet::fJetStructure
protected

Definition at line 69 of file AliAnalysisTaskTracksInJet.h.

Referenced by UserCreateOutputObjects(), and UserExec().

TTree* EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet::fJetTree
protected

Definition at line 70 of file AliAnalysisTaskTracksInJet.h.

Referenced by UserCreateOutputObjects(), and UserExec().

AliESDtrackCuts* EMCalTriggerPtAnalysis::AliAnalysisTaskTracksInJet::fTrackCutsDefault
protected

The documentation for this class was generated from the following files: