AliPhysics  608b256 (608b256)

Isolated photon spectra configuration. More...

#include <TString.h>
#include <TSystem.h>
#include <TROOT.h>
#include "AliAnalysisManager.h"
#include "AliInputEventHandler.h"
#include "AliVTrack.h"
#include "AliAODTrack.h"
#include "AliESDtrack.h"
#include "AliESDtrackCuts.h"
#include "AliCaloTrackESDReader.h"
#include "AliCaloTrackAODReader.h"
#include "AliCalorimeterUtils.h"
#include "AliAnalysisTaskCaloTrackCorrelation.h"
#include "AliAnaCaloTrackCorrMaker.h"
#include "AliAnaPhoton.h"
#include "AliHistogramRanges.h"
#include "AliAnaParticleIsolation.h"
#include "AliAnaChargedParticles.h"
#include "AliAnaCalorimeterQA.h"
#include "AliAnaRandomTrigger.h"
#include "PWGJE/macros/CreateTrackCutsPWGJE.C"
Include dependency graph for AddTaskIsoPhoton.C:

Go to the source code of this file.

Functions

void ConfigureMC (AliAnaCaloTrackCorrBaseClass *ana, Bool_t simu=kFALSE)
 Global string for data type. More...
 
void SetHistoRangeAndNBins (AliHistogramRanges *histoRanges, TString calorimeter="EMCAL")
 
UInt_t SetTriggerMaskFromName (TString trigger)
 
AliCaloTrackReaderConfigureReader (TString inputDataType="AOD", Bool_t useKinematics=kFALSE, Bool_t simu=kFALSE, TString calorimeter="EMCAL", Bool_t nonlin=kTRUE, Bool_t timecut=kFALSE, Bool_t primvtx=kFALSE, Bool_t notrackcut=kFALSE, Float_t tmin=-2000, Float_t tmax=2000, Bool_t trackTcut=kFALSE, Float_t minCen=-1, Float_t maxCen=-1, Int_t debug=-1, Bool_t print=kFALSE, Int_t SSsmearing=0, TString clustListName="")
 
AliCalorimeterUtilsConfigureCaloUtils (Bool_t nonlin=kTRUE, Bool_t simu=kFALSE, Int_t debug=-1, Bool_t print=kFALSE)
 
AliAnaPhotonConfigurePhotonAnalysis (TString calorimeter="EMCAL", Int_t tm=0, Float_t eOpMax=1000, Float_t deltaphicut=0.02, Float_t deltaetacut=0.03, Int_t disttobad=0, Int_t nlmMax=2, Bool_t simu=kFALSE, Int_t debug=-1, Bool_t print=kFALSE)
 
AliAnaParticleIsolationConfigureIsolationAnalysis (TString calorimeter="EMCAL", TString particle="Photon", Int_t partInCone=AliIsolationCut::kOnlyCharged, Int_t thresType=AliIsolationCut::kSumPtFracIC, Float_t cone=0.3, Float_t pth=0.3, Int_t tm=0, Float_t eOpMax=1000, Bool_t leading=kTRUE, Bool_t multi=kFALSE, Bool_t simu=kFALSE, Int_t debug=-1, Bool_t print=kFALSE, Bool_t tmInCone=kTRUE)
 
AliAnaCalorimeterQAConfigureQAAnalysis (TString calorimeter="EMCAL", Bool_t simu=kFALSE, Int_t debug=-1, Bool_t print=kFALSE)
 
AliAnaChargedParticlesConfigureChargedAnalysis (Int_t debugLevel)
 
AliAnaRandomTriggerConfigureRandomTriggerAnalysis (TString detector="", Bool_t debug=kFALSE)
 
AliAnalysisTaskCaloTrackCorrelationAddTaskIsoPhoton (const Float_t cone=0.4, const Float_t pth=2., const Bool_t leading=kFALSE, const Bool_t timecut=kFALSE, const TString calorimeter="EMCAL", const Bool_t simu=kFALSE, const Bool_t exotic=kTRUE, const Bool_t nonlin=kFALSE, const TString trigger="EMC7", const Int_t tm=2, const Float_t eOpMax=1000, const Int_t minCen=-1, const Int_t maxCen=-1, const Float_t deltaphicut=0.03, const Float_t deltaetacut=0.02, const Float_t tmin=-30., const Float_t tmax=30., const Bool_t trackTcut=kFALSE, const Int_t disttobad=2, const Int_t nlmMax=20, const Bool_t qaan=kFALSE, const Bool_t primvtx=kTRUE, const Bool_t notrackcut=kTRUE, const Bool_t rdmtrigger=kFALSE, const TString tag="", const Int_t debug=-1, const Bool_t print=kFALSE, const Bool_t tmInCone=kTRUE, const Int_t SSsmearing=0, const TString clustListName="", const Int_t isocut=1)
 

Variables

TString kAnaIsoPhotonName = ""
 
TString kCalorimeter = "EMCAL"
 Global name to be composed of the settings, used to set the AOD branch name. More...
 
TString kData = ""
 Global setting of calorimeter of photon. More...
 

Detailed Description

Isolated photon spectra configuration.

Configuration of the isolated photon analysis analysis based on AddTaskIsoPhoton by Gustavo Conesa & Marie Germain.

Author
Marie Germain Marie.nosp@m..Ger.nosp@m.main@.nosp@m.cern.nosp@m..ch, SUBATECH, main 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 AddTaskIsoPhoton.C.

Function Documentation

AliAnalysisTaskCaloTrackCorrelation* AddTaskIsoPhoton ( const Float_t  cone = 0.4,
const Float_t  pth = 2.,
const Bool_t  leading = kFALSE,
const Bool_t  timecut = kFALSE,
const TString  calorimeter = "EMCAL",
const Bool_t  simu = kFALSE,
const Bool_t  exotic = kTRUE,
const Bool_t  nonlin = kFALSE,
const TString  trigger = "EMC7",
const Int_t  tm = 2,
const Float_t  eOpMax = 1000,
const Int_t  minCen = -1,
const Int_t  maxCen = -1,
const Float_t  deltaphicut = 0.03,
const Float_t  deltaetacut = 0.02,
const Float_t  tmin = -30.,
const Float_t  tmax = 30.,
const Bool_t  trackTcut = kFALSE,
const Int_t  disttobad = 2,
const Int_t  nlmMax = 20,
const Bool_t  qaan = kFALSE,
const Bool_t  primvtx = kTRUE,
const Bool_t  notrackcut = kTRUE,
const Bool_t  rdmtrigger = kFALSE,
const TString  tag = "",
const Int_t  debug = -1,
const Bool_t  print = kFALSE,
const Bool_t  tmInCone = kTRUE,
const Int_t  SSsmearing = 0,
const TString  clustListName = "",
const Int_t  isocut = 1 
)

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
cone: A float setting the isolation cone size
pth: A float setting the isolation pT threshold (sum of particles in cone or leading particle)
leading: select leading trigger clusters?
timecut: activate time cut
calorimeter: A string with he calorimeter used to measure the trigger particle
simu: A bool identifying the data as simulation
exotic: reject exotic clusters
nonlin: A bool to set the use of the non linearity correction
trigger: A string with the trigger class, abbreviated, defined in method belowSetTriggerMaskFromName()
tm: An int to select neutral clusters as triggers, 0 off, 1 fix residual, 2 pT track dependent resid.
eOpMax: Cut on max value of cluster E / track p
minCen: An int to select the minimum centrality, -1 means no selection
maxCen: An int to select the maximum centrality, -1 means no selection
deltaphicut: track matching residual cut in azimuth
deltaetacut: track matching residual cut in pseudo-rapidity
tmin: minimum cluster time
tmax: maximum cluster time
trackTcut: apply time cut on tracks
disttobad: value of cut on distance to bad channel
nlmMax: maximum value of shower shape parameter
qaan: activate detector qa analysis
primvtx: select primary vertex
notrackcut: reject events without tracks
rdmtrigger: do the analysis with random triggers
tag: name to pass to analysis generated branch and histo container
debug: An int to define the debug level of all the tasks
print: A bool to enable the print of the settings per task
tmInCone: A bool to enable the CPV in cone (to reject charged clusters in Eiso calculation)
SSsmearing: An integer to enable the shower shape smearing, 0: no smearing, 1: Smearing with Gustavo's settings, 2: Smearing with Astrid's settings
clustListNamename of list with clusters

Definition at line 844 of file AddTaskIsoPhoton.C.

AliCalorimeterUtils* ConfigureCaloUtils ( Bool_t  nonlin = kTRUE,
Bool_t  simu = kFALSE,
Int_t  debug = -1,
Bool_t  print = kFALSE 
)

Configure the class handling the calorimeter clusters specific methods

Definition at line 409 of file AddTaskIsoPhoton.C.

Referenced by AddTaskIsoPhoton().

AliAnaChargedParticles* ConfigureChargedAnalysis ( Int_t  debugLevel)

Configure the task doing charged track selection

Definition at line 717 of file AddTaskIsoPhoton.C.

Referenced by AddTaskIsoPhoton().

AliAnaParticleIsolation* ConfigureIsolationAnalysis ( TString  calorimeter = "EMCAL",
TString  particle = "Photon",
Int_t  partInCone = AliIsolationCut::kOnlyCharged,
Int_t  thresType = AliIsolationCut::kSumPtFracIC,
Float_t  cone = 0.3,
Float_t  pth = 0.3,
Int_t  tm = 0,
Float_t  eOpMax = 1000,
Bool_t  leading = kTRUE,
Bool_t  multi = kFALSE,
Bool_t  simu = kFALSE,
Int_t  debug = -1,
Bool_t  print = kFALSE,
Bool_t  tmInCone = kTRUE 
)

Configure the task doing the trigger cluster/random isolation

Definition at line 560 of file AddTaskIsoPhoton.C.

Referenced by AddTaskIsoPhoton().

void ConfigureMC ( AliAnaCaloTrackCorrBaseClass ana,
Bool_t  simu = kFALSE 
)

Global string for data type.

Configure the selection of MC events

Definition at line 59 of file AddTaskIsoPhoton.C.

Referenced by ConfigureIsolationAnalysis(), ConfigurePhotonAnalysis(), and ConfigureQAAnalysis().

AliAnaPhoton* ConfigurePhotonAnalysis ( TString  calorimeter = "EMCAL",
Int_t  tm = 0,
Float_t  eOpMax = 1000,
Float_t  deltaphicut = 0.02,
Float_t  deltaetacut = 0.03,
Int_t  disttobad = 0,
Int_t  nlmMax = 2,
Bool_t  simu = kFALSE,
Int_t  debug = -1,
Bool_t  print = kFALSE 
)

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

Definition at line 462 of file AddTaskIsoPhoton.C.

Referenced by AddTaskIsoPhoton().

AliAnaCalorimeterQA* ConfigureQAAnalysis ( TString  calorimeter = "EMCAL",
Bool_t  simu = kFALSE,
Int_t  debug = -1,
Bool_t  print = kFALSE 
)

Configure the task doing standard calorimeter QA

Definition at line 685 of file AddTaskIsoPhoton.C.

Referenced by AddTaskIsoPhoton().

AliAnaRandomTrigger* ConfigureRandomTriggerAnalysis ( TString  detector = "",
Bool_t  debug = kFALSE 
)

Configure the task doing random trigger generation

Definition at line 753 of file AddTaskIsoPhoton.C.

Referenced by AddTaskIsoPhoton().

AliCaloTrackReader* ConfigureReader ( TString  inputDataType = "AOD",
Bool_t  useKinematics = kFALSE,
Bool_t  simu = kFALSE,
TString  calorimeter = "EMCAL",
Bool_t  nonlin = kTRUE,
Bool_t  timecut = kFALSE,
Bool_t  primvtx = kFALSE,
Bool_t  notrackcut = kFALSE,
Float_t  tmin = -2000,
Float_t  tmax = 2000,
Bool_t  trackTcut = kFALSE,
Float_t  minCen = -1,
Float_t  maxCen = -1,
Int_t  debug = -1,
Bool_t  print = kFALSE,
Int_t  SSsmearing = 0,
TString  clustListName = "" 
)

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

Definition at line 204 of file AddTaskIsoPhoton.C.

Referenced by AddTaskIsoPhoton().

void SetHistoRangeAndNBins ( AliHistogramRanges histoRanges,
TString  calorimeter = "EMCAL" 
)
UInt_t SetTriggerMaskFromName ( TString  trigger)

Configure the task doing the trigger cluster-jet correlation

Definition at line 124 of file AddTaskIsoPhoton.C.

Referenced by AddTaskIsoPhoton().

Variable Documentation

TString kAnaIsoPhotonName = ""

Definition at line 50 of file AddTaskIsoPhoton.C.

TString kCalorimeter = "EMCAL"

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

Definition at line 52 of file AddTaskIsoPhoton.C.

Referenced by ConfigureRandomTriggerAnalysis().

TString kData = ""

Global setting of calorimeter of photon.

Definition at line 53 of file AddTaskIsoPhoton.C.