This repository contains the macros use to process the data for the study of the vertexing efficiency in UPC. It contains both the configurables and scripts needed to run the O2Physics task locally, and some macros for post processing.
-
run_upc_rho.shandrun_upc_jpsi: script used to run the taskupcTrackVertexingQA.cxx. They require a configurables, calledconfig_upc_rho.jsonandconfig_upc_jpsi.json, respectively. -
config_upc.jsonconfigurable needed to run the taskupcTrackVertexingQA.cxx. It allows to set some limits for some kinematic variables related to the pair or to the tracks. It has few process functions: more process function can be enabled at the same time, but not if they refer to different particles (i.e.$J/\psi$ and$\rho^0$ ) or if they can run only on data or both data and MC. Process functions availble:-
processRhoCand: process data asking for a collision before looping on tracks, fill histograms considering the process$\rho^0 \rightarrow \pi\pi$ ; -
processJpsiCand: process data asking for a collision before looping on tracks, fill histograms considering the process$J/\psi \rightarrow \mu\mu$ ; -
processRhoCandMcInfo: same asprocessRhoCand, but add some info on gen MC; -
processJpsiCandMcInfo, same asprocessJpsiCand, but add some info on gen MC; -
processRhoTracksBeforeGrouping: process tracks from$\rho^0 \rightarrow \pi\pi$ without requiring them to be matched to a collision; -
processJpsiTracksBeforeGrouping: process tracks from$J/\psi \rightarrow \mu\mu$ without requiring them to be matched to a collision; -
processRhoTracksBeforeGroupingMcInfo: same asprocessRhoTracksBeforeGroupingbut add some info on gen MC; -
processJpsiTracksBeforeGroupingMcInfo: same asprocessJpsiTracksBeforeGroupingbut add some info on gen MC; -
processMcGenRho: process generated MC info (both collisions and tracks) from$\rho^0 \rightarrow \pi\pi$ ; -
processMcGenJpsi: process generated MC info (both collisions and tracks) from$J/\psi \rightarrow \mu\mu$
-
compareHisto.cpp: macro used to compare the results from theupcTrackVertexingQA.cxx, considering all tracks or only the one surviving after the match with a collision. It has three arguments, the first refers to the particle and the type of comparison, and can be"rhoAss"or"jpsiAss", to compare all tracks with the ones associated to a collision, or"rhoMC"or"jpsiMC", for comparing gen and reco distributions. The second is a boolean that needs to be set ontrueto normalize the distributions, otherwise they will be plotted with their own normalization. The third is a bool set totrueif we are analyzing MC.