AliPhysics  0937c79 (0937c79)

Configuration of gamma-hadron and pi0-hadron + isolation, correlation analysis. More...

#include <TString.h>
#include <TSystem.h>
#include <TROOT.h>
#include "AliLog.h"
#include "AliAnalysisTaskCaloTrackCorrelation.h"
#include "AliCaloTrackESDReader.h"
#include "AliCaloTrackAODReader.h"
#include "AliCalorimeterUtils.h"
#include "AliAnaPhoton.h"
#include "AliAnaPi0EbE.h"
#include "AliHistogramRanges.h"
#include "AliAnaParticleIsolation.h"
#include "AliAnaParticleHadronCorrelation.h"
#include "AliAnaChargedParticles.h"
#include "AliAnaCalorimeterQA.h"
#include "AliAnaGeneratorKine.h"
#include "AliAnaCaloTrackCorrMaker.h"
#include "AliAnalysisManager.h"
#include "AliInputEventHandler.h"
#include "AliVTrack.h"
#include "ConfigureAndGetEventTriggerMaskAndCaloTriggerString.C"
#include "AliESDtrackCuts.h"
#include "CreateTrackCutsPWGJE.C"
#include "GetAlienGlobalProductionVariables.C"
Include dependency graph for AddTaskGammaHadronCorrelation.C:

Go to the source code of this file.

Functions

AliCaloTrackReaderConfigureReader (TString col, Bool_t simulation, TString clustersArray, Bool_t tender, TString calorimeter, Bool_t nonLinOn, TString trigger, Bool_t rejectEMCTrig, Int_t minCen, Int_t maxCen, Bool_t printSettings, Int_t debug)
 
AliCalorimeterUtilsConfigureCaloUtils (TString col, Bool_t simulation, Bool_t tender, TString calorimeter, Bool_t nonLinOn, Int_t year, Bool_t printSettings, Int_t debug)
 
AliAnaPhotonConfigurePhotonAnalysis (TString col, Bool_t simulation, TString calorimeter, Int_t year, Int_t tm, Bool_t printSettings, Int_t debug)
 
AliAnaPi0EbEConfigurePi0EbEAnalysis (TString particle, Int_t analysis, Bool_t useSSIso, Bool_t useAsy, TString col, Bool_t simulation, TString calorimeter, Int_t year, Int_t tm, Bool_t printSettings, Int_t debug)
 
AliAnaParticleIsolationConfigureIsolationAnalysis (TString particle, Int_t leading, Int_t partInCone, Int_t thresType, Float_t cone, Float_t pth, Bool_t multi, TString col, Bool_t simulation, TString calorimeter, Int_t year, Int_t tm, Bool_t printSettings, Int_t debug)
 
AliAnaParticleHadronCorrelationConfigureHadronCorrelationAnalysis (TString particle, Int_t leading, Bool_t bIsolated, Float_t shshMax, Int_t partInCone, Int_t thresType, Float_t cone, Float_t pth, Bool_t mixOn, TString col, Bool_t simulation, TString calorimeter, Int_t year, Int_t tm, Bool_t printSettings, Int_t debug)
 
AliAnaChargedParticlesConfigureChargedAnalysis (Bool_t simulation, Bool_t printSettings, Int_t debug)
 
AliAnaCalorimeterQAConfigureQAAnalysis (TString col, Bool_t simulation, TString calorimeter, Int_t year, Bool_t printSettings, Int_t debug)
 
AliAnaGeneratorKineConfigureGenKineAnalysis (Int_t thresType, Float_t cone, Float_t pth, TString col, Bool_t simulation, TString calorimeter, Int_t year, Bool_t printSettings, Int_t debug)
 
void SetAnalysisCommonParameters (AliAnaCaloTrackCorrBaseClass *ana, TString calorimeter, Int_t year, TString col, Bool_t simulation, Bool_t printSettings, Int_t debug)
 
AliAnalysisTaskCaloTrackCorrelationAddTaskGammaHadronCorrelation (TString calorimeter="EMCAL", Bool_t simulation=kFALSE, Int_t year=2011, TString col="pp", Int_t rejectEMCTrig=0, TString clustersArray="", Bool_t tender=kFALSE, Bool_t nonLinOn=kFALSE, Float_t shshMax=0.27, Float_t isoCone=0.4, Float_t isoPtTh=0.5, Int_t isoMethod=AliIsolationCut::kPtThresIC, Int_t isoContent=AliIsolationCut::kNeutralAndCharged, Int_t leading=0, Int_t tm=1, Int_t minCen=-1, Int_t maxCen=-1, Bool_t mixOn=kTRUE, Bool_t qaAn=kFALSE, Bool_t chargedAn=kFALSE, TString outputfile="", Bool_t printSettings=kFALSE, Int_t debug=0, const char *trigSuffix="EMC7")
 

Variables

TString kAnaGammaHadronCorr = ""
 Global name to be composed of the settings, used to set the AOD branch name. More...
 

Detailed Description

Configuration of gamma-hadron and pi0-hadron + isolation, correlation analysis.

Configuration macro for analysis of gamma-hadron and pi0-hadron correlation analysis both pi0 and gamma isolated or not. It does:

  • Photon selection in calorimeter with AliAnaPhoton: Track matching, mild shower shape, NLM ... cuts
  • Tagging of photon candidate clusters as decay from pi0 or eta or from their side bands with AliAnaPi0EbE (4 calls, one pi0, one eta, one pi0 side band and one eta side band)
  • Tagging of photon candidate as isolated with AliAnaParticleIsolation
  • Correlation of the photon and charged tracks, twice, one without isolation condition, and other with isolation condition
  • Pi0 selection with the identification of merged clusters with AliAnaPi0EbE
  • Tagging of pi0 as isolated with AliAnaParticleIsolation
  • Correlation of the pi0 and charged tracks, twice, one without isolation condition, and other with isolation condition
  • Optionally, the QA tasks AliAnaCalorimeterQA and AliAnaChargedParticle are executed
Author
Gustavo Conesa Balbastre Gusta.nosp@m.vo.C.nosp@m.onesa.nosp@m..Bal.nosp@m.bastr.nosp@m.e@ce.nosp@m.rn.ch, (LPSC-CNRS)

Definition in file AddTaskGammaHadronCorrelation.C.

Function Documentation

AliAnalysisTaskCaloTrackCorrelation* AddTaskGammaHadronCorrelation ( TString  calorimeter = "EMCAL",
Bool_t  simulation = kFALSE,
Int_t  year = 2011,
TString  col = "pp",
Int_t  rejectEMCTrig = 0,
TString  clustersArray = "",
Bool_t  tender = kFALSE,
Bool_t  nonLinOn = kFALSE,
Float_t  shshMax = 0.27,
Float_t  isoCone = 0.4,
Float_t  isoPtTh = 0.5,
Int_t  isoMethod = AliIsolationCut::kPtThresIC,
Int_t  isoContent = AliIsolationCut::kNeutralAndCharged,
Int_t  leading = 0,
Int_t  tm = 1,
Int_t  minCen = -1,
Int_t  maxCen = -1,
Bool_t  mixOn = kTRUE,
Bool_t  qaAn = kFALSE,
Bool_t  chargedAn = kFALSE,
TString  outputfile = "",
Bool_t  printSettings = kFALSE,
Int_t  debug = 0,
const char *  trigSuffix = "EMC7" 
)

Main method calling all the configuration Creates a CaloTrackCorr task, configures it and adds it to the analysis manager.

The options that can be passed to the macro are:

Parameters
calorimeter: A string with he calorimeter used to measure the trigger particle: EMCAL, DCAL, PHOS
simulation: A bool identifying the data as simulation
yearThe year the data was taken, used to configure some histograms
colA string with the colliding system
rejectEMCTrig: An int to reject EMCal triggered events with bad trigger: 0 no rejection, 1 old runs L1 bit, 2 newer runs L1 bit
clustersArray: A string with the array of clusters not being the default (default is empty string)
tender: A bool indicating if the tender was running before this analysis
nonLinOn: A bool to set the use of the non linearity correction
shshMax: A float setting the maximum value of the shower shape of the clusters for the correlation analysis
isoCone: A float setting the isolation cone size
isoPtTh: A float setting the isolation pT threshold (sum of particles in cone or leading particle)
isoMethod: An int setting the isolation method: AliIsolationCut::kPtThresIC, ...
isoContent: An int setting the type of particles inside the isolation cone: AliIsolationCut::kNeutralAndCharged, AliIsolationCut::kOnlyNeutral, AliIsolationCut::kOnlyCharged
leading: An int setting the type of leading particle selection: 0, select all;l 1: absolute leading of charged; 2: absolute leading of charged and neutral; 3: near side leading absolute of charged; 4: near side leading absolute of charged and neutral
tm: track matching options: 0- no matching; 1-fixed residual cuts; 2-pT track dependent cut
minCen: An int to select the minimum centrality, -1 means no selection
maxCen: An int to select the maximum centrality, -1 means no selection
mixOn: A bool to switch the correlation mixing analysis
qaAn: A bool to switch the calorimeter QA analysis
chargedAn: A bool to switch the selected tracks QA analysis
outputfile: A string to change the name of the histograms output file, default is AnalysisResults.root
printSettings: A bool to enable the print of the settings per task
debug: An int to define the debug level of all the tasks
trigSuffix: A string with the trigger class, abbreviated, defined in ConfigureAndGetEventTriggerMaskAndCaloTriggerString.C

Definition at line 137 of file AddTaskGammaHadronCorrelation.C.

AliCalorimeterUtils * ConfigureCaloUtils ( TString  col,
Bool_t  simulation,
Bool_t  tender,
TString  calorimeter,
Bool_t  nonLinOn,
Int_t  year,
Bool_t  printSettings,
Int_t  debug 
)

Configure the class handling the calorimeter clusters specific methods

Definition at line 610 of file AddTaskGammaHadronCorrelation.C.

Referenced by AddTaskGammaHadronCorrelation().

AliAnaChargedParticles * ConfigureChargedAnalysis ( Bool_t  simulation,
Bool_t  printSettings,
Int_t  debug 
)

Configure the task doing the selected tracks checking

Definition at line 1375 of file AddTaskGammaHadronCorrelation.C.

Referenced by AddTaskGammaHadronCorrelation().

AliAnaGeneratorKine * ConfigureGenKineAnalysis ( Int_t  thresType,
Float_t  cone,
Float_t  pth,
TString  col,
Bool_t  simulation,
TString  calorimeter,
Int_t  year,
Bool_t  printSettings,
Int_t  debug 
)

Configure the task filling generated particle kinematics histograms

Definition at line 1447 of file AddTaskGammaHadronCorrelation.C.

Referenced by AddTaskGammaHadronCorrelation().

AliAnaParticleHadronCorrelation * ConfigureHadronCorrelationAnalysis ( TString  particle,
Int_t  leading,
Bool_t  bIsolated,
Float_t  shshMax,
Int_t  partInCone,
Int_t  thresType,
Float_t  cone,
Float_t  pth,
Bool_t  mixOn,
TString  col,
Bool_t  simulation,
TString  calorimeter,
Int_t  year,
Int_t  tm,
Bool_t  printSettings,
Int_t  debug 
)

Configure the task doing the trigger particle hadron correlation

Definition at line 1205 of file AddTaskGammaHadronCorrelation.C.

Referenced by AddTaskGammaHadronCorrelation().

AliAnaParticleIsolation * ConfigureIsolationAnalysis ( TString  particle,
Int_t  leading,
Int_t  partInCone,
Int_t  thresType,
Float_t  cone,
Float_t  pth,
Bool_t  multi,
TString  col,
Bool_t  simulation,
TString  calorimeter,
Int_t  year,
Int_t  tm,
Bool_t  printSettings,
Int_t  debug 
)

Configure the task doing the trigger particle isolation

Definition at line 1024 of file AddTaskGammaHadronCorrelation.C.

Referenced by AddTaskGammaHadronCorrelation().

AliAnaPhoton * ConfigurePhotonAnalysis ( TString  col,
Bool_t  simulation,
TString  calorimeter,
Int_t  year,
Int_t  tm,
Bool_t  printSettings,
Int_t  debug 
)

Configure the task doing the first photon cluster selections Basically the track matching, minor shower shape cut, NLM selection ...

Definition at line 742 of file AddTaskGammaHadronCorrelation.C.

Referenced by AddTaskGammaHadronCorrelation().

AliAnaPi0EbE * ConfigurePi0EbEAnalysis ( TString  particle,
Int_t  analysis,
Bool_t  useSSIso,
Bool_t  useAsy,
TString  col,
Bool_t  simulation,
TString  calorimeter,
Int_t  year,
Int_t  tm,
Bool_t  printSettings,
Int_t  debug 
)

Configure the task doing the pi0 even by event selection (invariant mass or split) and the cluster tagging as decay in different mass windows.

Definition at line 838 of file AddTaskGammaHadronCorrelation.C.

Referenced by AddTaskGammaHadronCorrelation().

AliAnaCalorimeterQA* ConfigureQAAnalysis ( TString  col,
Bool_t  simulation,
TString  calorimeter,
Int_t  year,
Bool_t  printSettings,
Int_t  debug 
)

Configure the task doing standard calorimeter QA

Definition at line 1409 of file AddTaskGammaHadronCorrelation.C.

Referenced by AddTaskGammaHadronCorrelation().

AliCaloTrackReader* ConfigureReader ( TString  col,
Bool_t  simulation,
TString  clustersArray,
Bool_t  tender,
TString  calorimeter,
Bool_t  nonLinOn,
TString  trigger,
Bool_t  rejectEMCTrig,
Int_t  minCen,
Int_t  maxCen,
Bool_t  printSettings,
Int_t  debug 
)

Configure the class handling the events and cluster/tracks filtering.

Definition at line 376 of file AddTaskGammaHadronCorrelation.C.

Referenced by AddTaskGammaHadronCorrelation().

void SetAnalysisCommonParameters ( AliAnaCaloTrackCorrBaseClass ana,
TString  calorimeter,
Int_t  year,
TString  col,
Bool_t  simulation,
Bool_t  printSettings,
Int_t  debug 
)

Set common histograms binning plus other analysis common settings like TRD covered super modules the activation of the MC dedicated histograms and the activation of the debug mode

Definition at line 1506 of file AddTaskGammaHadronCorrelation.C.

Referenced by ConfigureChargedAnalysis(), ConfigureGenKineAnalysis(), ConfigureHadronCorrelationAnalysis(), ConfigureIsolationAnalysis(), ConfigurePhotonAnalysis(), ConfigurePi0EbEAnalysis(), and ConfigureQAAnalysis().

Variable Documentation

TString kAnaGammaHadronCorr = ""

Global name to be composed of the settings, used to set the AOD branch name.

Definition at line 104 of file AddTaskGammaHadronCorrelation.C.