AliPhysics  vAN-20151014 (f894c76)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger Class Reference

Old charged hadron analysis in EMCAL-triggered events. More...

#include <AliAnalysisTaskPtEMCalTrigger.h>

Inheritance diagram for EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger:

Public Types

enum  EEMCalTriggerType_t { kEMCalJetLow = 0, kEMCalJetHigh = 1, kEMCalGammaLow = 2, kEMCalGammaHigh = 3 }
 

Public Member Functions

 AliAnalysisTaskPtEMCalTrigger ()
 
 AliAnalysisTaskPtEMCalTrigger (const char *name)
 
 ~AliAnalysisTaskPtEMCalTrigger ()
 
virtual void UserCreateOutputObjects ()
 
virtual Bool_t Run ()
 
void AddESDTrackCuts (AliESDtrackCuts *trackCuts)
 
void AddCutsForAOD (AliESDtrackCuts *trackCuts, UInt_t filterBits)
 
void SetEtaRange (double etamin, double etamax)
 
void SetPtRange (double ptmin, double ptmax)
 
void SetVertexRange (double vmin, double vmax)
 
void SetClusterEnergyRange (double emin, double emax)
 
void SetSwapEta ()
 
void UseTriggersFromTriggerMaker ()
 
void AddJetContainerName (const Char_t *contname, Bool_t isMC=kFALSE)
 
void SelectAllTracks (Bool_t doAll)
 

Static Public Attributes

static const Int_t kNJetRadii = 4
 
static const Double_t * kJetRadii = jetRadVals
 

Private Member Functions

 AliAnalysisTaskPtEMCalTrigger (const AliAnalysisTaskPtEMCalTrigger &)
 
AliAnalysisTaskPtEMCalTriggeroperator= (const AliAnalysisTaskPtEMCalTrigger &)
 
void CreateDefaultPtBinning (TArrayD &binning) const
 
void CreateDefaultZVertexBinning (TArrayD &binning) const
 
void CreateDefaultEtaBinning (TArrayD &binning) const
 
void DefineAxis (TAxis &axis, const char *name, const char *title, const TArrayD &binning, const char **labels=NULL)
 
void DefineAxis (TAxis &axis, const char *name, const char *title, int nbins, double min, double max, const char **labels=NULL)
 
void FillEventHist (const char *trigger, double vz, bool isPileup)
 
void FillTrackHist (const char *trigger, const AliVTrack *track, double vz, bool isPileup, int cut, bool isMinBias, double jetradius=-1.)
 
void FillClusterHist (const char *trigger, const AliVCluster *clust, double vz, bool isPileup, bool isMinBias)
 
void FillMCParticleHist (const char *histname, const AliVParticle *const part, double vz, bool isPileup)
 
bool IsTrueTrack (const AliVTrack *const) const
 
TString BuildTriggerString ()
 
const AliVVertex * GetSPDVertex () const
 
const AliEmcalJet * FoundTrackInJet (const AliVParticle *const track, AliJetContainer *const jets) const
 
const AliEmcalJet * FoundClusterInJet (const AliVCluster *const clust, AliJetContainer *const jets) const
 
bool TrackInJet (const AliVParticle *const track, const AliEmcalJet *reconstructedJet, const AliParticleContainer *const particles) const
 
bool ClusterInJet (const AliVCluster *const clust, const AliEmcalJet *reconstructedJet, const AliClusterContainer *const particles) const
 
bool IsInRadius (const AliVParticle *const track, const AliEmcalJet *reconstructedJet, Double_t radius) const
 
bool IsInRadius (const AliVCluster *const clust, const AliEmcalJet *reconstructedJet, Double_t radius) const
 

Private Attributes

AliEMCalHistoContainerfHistos
 Histogram container for the task. More...
 
TList * fListTrackCuts
 List of track cuts. More...
 
AliCutValueRange< double > fEtaRange
 Eta Selection Range. More...
 
AliCutValueRange< double > fPtRange
 Pt Selection Range. More...
 
AliCutValueRange< double > fEnergyRange
 Cluster energy selection range. More...
 
AliCutValueRange< double > fVertexRange
 Vertex cut. More...
 
TList fJetContainersMC
 List of jet containers for MC. More...
 
TList fJetContainersData
 List of jet containers for Data. More...
 
Bool_t fSelectAllTracks
 Loop over all tracks. More...
 
Bool_t fSwapEta
 Allow swapping of the eta sign in asymmetric collision systems. More...
 
Bool_t fUseTriggersFromTriggerMaker
 Use trigger classes from trigger maker. More...
 

Detailed Description

Old charged hadron analysis in EMCAL-triggered events.

Analysis task of the pt analysis on EMCal-triggered events

Definition at line 40 of file AliAnalysisTaskPtEMCalTrigger.h.

Member Enumeration Documentation

Enumerator
kEMCalJetLow 
kEMCalJetHigh 
kEMCalGammaLow 
kEMCalGammaHigh 

Definition at line 42 of file AliAnalysisTaskPtEMCalTrigger.h.

Constructor & Destructor Documentation

EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::AliAnalysisTaskPtEMCalTrigger ( )

Dummy constructor, initialising the values with default (NULL) values

Definition at line 75 of file AliAnalysisTaskPtEMCalTrigger.cxx.

EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::AliAnalysisTaskPtEMCalTrigger ( const char *  name)

Main constructor, setting default values for eta and zvertex cut

Parameters
nameName of the task

Definition at line 95 of file AliAnalysisTaskPtEMCalTrigger.cxx.

EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::~AliAnalysisTaskPtEMCalTrigger ( )

Destructor, deleting output

Definition at line 124 of file AliAnalysisTaskPtEMCalTrigger.cxx.

EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::AliAnalysisTaskPtEMCalTrigger ( const AliAnalysisTaskPtEMCalTrigger )
private

Member Function Documentation

void EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::AddCutsForAOD ( AliESDtrackCuts *  trackCuts,
UInt_t  filterbits 
)

Add new track cuts to the task

Parameters
trackCutsObject of type AliESDtrackCuts

Definition at line 904 of file AliAnalysisTaskPtEMCalTrigger.cxx.

void EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::AddESDTrackCuts ( AliESDtrackCuts *  trackCuts)

Add new track cuts to the task

Parameters
trackCutsObject of type AliESDtrackCuts

Definition at line 895 of file AliAnalysisTaskPtEMCalTrigger.cxx.

void EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::AddJetContainerName ( const Char_t *  contname,
Bool_t  isMC = kFALSE 
)

Add new Jet input container to the analysis task

Parameters
contnameName of the container
isMCDefines whether the container is for MC truth or not

Definition at line 1073 of file AliAnalysisTaskPtEMCalTrigger.cxx.

TString EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::BuildTriggerString ( )
private

Build trigger string from the trigger maker

Returns
blank-separated string of fired trigger classes

Definition at line 914 of file AliAnalysisTaskPtEMCalTrigger.cxx.

Referenced by Run().

bool EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::ClusterInJet ( const AliVCluster *const  clust,
const AliEmcalJet *  reconstructedJet,
const AliClusterContainer *const  clusters 
) const
private

Check whether cluster is among the jet constituents

Parameters
tracktrack to check
reconstructedJetreconstructed jet to check
clustersthe cluster container
Returns
true if found, false otherwise

Definition at line 1053 of file AliAnalysisTaskPtEMCalTrigger.cxx.

Referenced by FoundClusterInJet().

void EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::CreateDefaultEtaBinning ( TArrayD &  binning) const
private

Creating default z-Vertex binning.

Parameters
binningArray where to store the results.

Definition at line 666 of file AliAnalysisTaskPtEMCalTrigger.cxx.

Referenced by UserCreateOutputObjects().

void EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::CreateDefaultPtBinning ( TArrayD &  binning) const
private

Creating the default \( p_{t} \) binning.

Parameters
binningArray where to store the results.

Definition at line 618 of file AliAnalysisTaskPtEMCalTrigger.cxx.

Referenced by UserCreateOutputObjects().

void EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::CreateDefaultZVertexBinning ( TArrayD &  binning) const
private

Creating default z-Vertex binning.

Parameters
binningArray where to store the results.

Definition at line 647 of file AliAnalysisTaskPtEMCalTrigger.cxx.

Referenced by UserCreateOutputObjects().

void EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::DefineAxis ( TAxis &  axis,
const char *  name,
const char *  title,
const TArrayD &  binning,
const char **  labels = NULL 
)
private

Define an axis with a given binning

Parameters
axisAxis to be defined
nameName of the axis
titleTitle of the axis
binningaxis binning
labelsarray of bin labels

Definition at line 689 of file AliAnalysisTaskPtEMCalTrigger.cxx.

Referenced by UserCreateOutputObjects().

void EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::DefineAxis ( TAxis &  axis,
const char *  name,
const char *  title,
int  nbins,
double  min,
double  max,
const char **  labels = NULL 
)
private

Define an axis with number of bins from min to max

Parameters
axisAxis to be defined
nameName of the axis
titleTitle of the axis
nbinsNumber of bins
minlower limit of the axis
maxupper limit of the axis
labelsarray of bin labels

Definition at line 711 of file AliAnalysisTaskPtEMCalTrigger.cxx.

void EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::FillClusterHist ( const char *  histname,
const AliVCluster *  clust,
double  vz,
bool  isPileup,
bool  isMinBias 
)
private

Fill cluster-based histogram with corresponding information

Parameters
triggername of the trigger
clusterthe EMCal cluster information
vzz-position of the vertex
isPileupflag event as pileup event

Definition at line 840 of file AliAnalysisTaskPtEMCalTrigger.cxx.

Referenced by Run().

void EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::FillEventHist ( const char *  trigger,
double  vz,
bool  isPileup 
)
private

Fill event-based histogram

Parameters
triggername of the trigger configuration to be processed
vzz-position of the vertex
isPileupsignalises if the event is flagged as pileup event

Definition at line 730 of file AliAnalysisTaskPtEMCalTrigger.cxx.

Referenced by Run().

void EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::FillMCParticleHist ( const char *  histname,
const AliVParticle *const  track,
double  vz,
bool  isPileup 
)
private

Fill histogram for MC-true particles with the information pt, eta and phi

Parameters
trackthe Monte-Carlo track

Definition at line 867 of file AliAnalysisTaskPtEMCalTrigger.cxx.

Referenced by Run().

void EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::FillTrackHist ( const char *  trigger,
const AliVTrack *  track,
double  vz,
bool  isPileup,
int  cut,
bool  isMinBias,
double  jetradius = -1. 
)
private

Fill track-based histogram with corresponding information

Parameters
triggername of the trigger
trackESD track selected
vzz-position of the vertex
isPileupflag event as pileup event
cutid of the cut (0 = no cut)

Definition at line 761 of file AliAnalysisTaskPtEMCalTrigger.cxx.

Referenced by Run().

const AliEmcalJet * EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::FoundClusterInJet ( const AliVCluster *const  clust,
AliJetContainer *const  jets 
) const
private

Check whether a cluster is in a radius around a given jet

Parameters
clustThe cluster to check
reconstructedJetreconstructed jet to check
Returns
the jet containing the cluster (null otherwise)

Definition at line 1031 of file AliAnalysisTaskPtEMCalTrigger.cxx.

const AliEmcalJet * EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::FoundTrackInJet ( const AliVParticle *const  track,
AliJetContainer *const  jets 
) const
private

Correlate track to reconstructed jet

Parameters
trackparticle to be checked
jetscontainer of recontructed jets
Returns
The matched jet (NULL if not found)

Definition at line 949 of file AliAnalysisTaskPtEMCalTrigger.cxx.

Referenced by Run().

const AliVVertex * EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::GetSPDVertex ( ) const
private

Accessor for the SPD vertex, creating transparency for ESDs and AODs

Returns
the spd vertex

Definition at line 929 of file AliAnalysisTaskPtEMCalTrigger.cxx.

Referenced by Run().

bool EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::IsInRadius ( const AliVParticle *const  track,
const AliEmcalJet *  reconstructedJet,
Double_t  radius 
) const
private

Check if track is in radius around a given jet

Parameters
trackTrack to check
reconstructedjet jet to probe
radiuscone radius
Returns
result of the test (true if track is inside the cone radius, false otherwise)

Definition at line 973 of file AliAnalysisTaskPtEMCalTrigger.cxx.

Referenced by Run().

bool EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::IsInRadius ( const AliVCluster *const  clust,
const AliEmcalJet *  reconstructedJet,
Double_t  radius 
) const
private

Check if track is in radius around a given jet

Parameters
trackTrack to check
reconstructedjet jet to probe
radiuscone radius
Returns
result of the test (true if track is inside the cone radius, false otherwise)

Definition at line 985 of file AliAnalysisTaskPtEMCalTrigger.cxx.

bool EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::IsTrueTrack ( const AliVTrack * const  track) const
private

Check if the track has an associated MC particle, and that the particle is a physical primary In case of data we do not do the selection at that step (always return true)

Parameters
trackTrack to check
Returns
true primary track (true or false)

Definition at line 883 of file AliAnalysisTaskPtEMCalTrigger.cxx.

Referenced by Run().

AliAnalysisTaskPtEMCalTrigger& EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::operator= ( const AliAnalysisTaskPtEMCalTrigger )
private
Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::Run ( )
virtual

Runs the event loop

Parameters
optionAdditional options

Definition at line 318 of file AliAnalysisTaskPtEMCalTrigger.cxx.

void EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::SelectAllTracks ( Bool_t  doAll)
inline

Definition at line 67 of file AliAnalysisTaskPtEMCalTrigger.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::SetClusterEnergyRange ( double  emin,
double  emax 
)
inline

Definition at line 63 of file AliAnalysisTaskPtEMCalTrigger.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::SetEtaRange ( double  etamin,
double  etamax 
)
inline

Definition at line 60 of file AliAnalysisTaskPtEMCalTrigger.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::SetPtRange ( double  ptmin,
double  ptmax 
)
inline

Definition at line 61 of file AliAnalysisTaskPtEMCalTrigger.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::SetSwapEta ( )
inline

Definition at line 64 of file AliAnalysisTaskPtEMCalTrigger.h.

void EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::SetVertexRange ( double  vmin,
double  vmax 
)
inline

Definition at line 62 of file AliAnalysisTaskPtEMCalTrigger.h.

bool EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::TrackInJet ( const AliVParticle *const  track,
const AliEmcalJet *  reconstructedJet,
const AliParticleContainer *const  particles 
) const
private

Check whether track is among the jet constituents

Parameters
tracktrack to check
reconstructedJetreconstructed jet to check
trackscontainer with tracks used for jetfinding
Returns
true if found, false otherwise

Definition at line 1007 of file AliAnalysisTaskPtEMCalTrigger.cxx.

Referenced by FoundTrackInJet().

void EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::UserCreateOutputObjects ( )
virtual

Create the list of output objects and define the histograms. Also adding the track cuts to the list of histograms.

Definition at line 134 of file AliAnalysisTaskPtEMCalTrigger.cxx.

void EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::UseTriggersFromTriggerMaker ( )
inline

Definition at line 65 of file AliAnalysisTaskPtEMCalTrigger.h.

Member Data Documentation

AliCutValueRange<double> EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::fEnergyRange
private

Cluster energy selection range.

Definition at line 98 of file AliAnalysisTaskPtEMCalTrigger.h.

Referenced by AliAnalysisTaskPtEMCalTrigger(), Run(), and SetClusterEnergyRange().

AliCutValueRange<double> EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::fEtaRange
private

Eta Selection Range.

Definition at line 96 of file AliAnalysisTaskPtEMCalTrigger.h.

Referenced by AliAnalysisTaskPtEMCalTrigger(), Run(), and SetEtaRange().

AliEMCalHistoContainer* EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::fHistos
private
TList EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::fJetContainersData
private

List of jet containers for Data.

Definition at line 103 of file AliAnalysisTaskPtEMCalTrigger.h.

Referenced by AddJetContainerName(), Run(), and UserCreateOutputObjects().

TList EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::fJetContainersMC
private

List of jet containers for MC.

Definition at line 102 of file AliAnalysisTaskPtEMCalTrigger.h.

Referenced by AddJetContainerName(), Run(), and UserCreateOutputObjects().

TList* EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::fListTrackCuts
private
AliCutValueRange<double> EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::fPtRange
private

Pt Selection Range.

Definition at line 97 of file AliAnalysisTaskPtEMCalTrigger.h.

Referenced by AliAnalysisTaskPtEMCalTrigger(), Run(), and SetPtRange().

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::fSelectAllTracks
private

Loop over all tracks.

Definition at line 106 of file AliAnalysisTaskPtEMCalTrigger.h.

Referenced by Run(), and SelectAllTracks().

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::fSwapEta
private

Allow swapping of the eta sign in asymmetric collision systems.

Definition at line 107 of file AliAnalysisTaskPtEMCalTrigger.h.

Referenced by FillTrackHist(), and SetSwapEta().

Bool_t EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::fUseTriggersFromTriggerMaker
private

Use trigger classes from trigger maker.

Definition at line 108 of file AliAnalysisTaskPtEMCalTrigger.h.

Referenced by Run(), and UseTriggersFromTriggerMaker().

AliCutValueRange<double> EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::fVertexRange
private

Vertex cut.

Definition at line 99 of file AliAnalysisTaskPtEMCalTrigger.h.

Referenced by AliAnalysisTaskPtEMCalTrigger(), Run(), and SetVertexRange().

const Double_t * EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::kJetRadii = jetRadVals
static

Definition at line 49 of file AliAnalysisTaskPtEMCalTrigger.h.

Referenced by Run(), and UserCreateOutputObjects().

const Int_t EMCalTriggerPtAnalysis::AliAnalysisTaskPtEMCalTrigger::kNJetRadii = 4
static

Definition at line 48 of file AliAnalysisTaskPtEMCalTrigger.h.

Referenced by Run(), and UserCreateOutputObjects().


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