/** VERSION NUMBER 1.1 */ /************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: Ana Marin, Kathrin Koch, Kenneth Aamodt * Contact: kenneth.aamodt@cern.ch * Version 1.1 * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ class AliAnalysisDataContainer; class AliGammaConversionHistograms; class AliAnalysisTaskGammaConversion; // set this to a number if you want to analyze a set number of files // if it is 0 it will analyze the files listed in the data list Int_t kGCnumberOfFilesToAnalyze=0; Bool_t kGCrunNeutralMeson = kTRUE; Bool_t kGCrunJet = kFALSE; Bool_t kGCrunChic = kFALSE; Bool_t kGCrunCF = kFALSE; Bool_t kGCcalculateBackground = kTRUE; Bool_t kGCdoNeutralMesonV0MCCheck =kFALSE; Bool_t kGCrunOmegaMeson = kFALSE; /** ---------------------------------- define cuts here ------------------------------------*/ TString kGCAnalysisCutSelectionId="9010111000"; // do not cheange here, use -set-cut-selection in argument instead Int_t kGCpidOfNegativeTrack=11; Int_t kGCpidOfPositiveTrack=-11; Double_t kGCmaxRCut = 180.; Double_t kGCetaCut = 0.9; Double_t kGCptCut = 0.02; Double_t kGCsingleptCut = 0.02; Double_t kGCmaxZCut = 240.; Double_t kGCminClsTPCCut= 0.; Double_t kGCchi2CutConversion = 30.; Double_t kGCchi2CutMeson = 50.; Double_t kGCLineCutZRSlope = tan(2*atan(exp(-kGCetaCut))); Double_t kGCLineCutZValue = 7.; Double_t kGCxVertexCut = 0.; Double_t kGCyVertexCut = 0.; Double_t kGCzVertexCut = 0.; Double_t kGCsigmaCutGammaMass=0.0001; Bool_t kGCuseImprovedVertex = kTRUE; Bool_t kGCUseOnFlyV0Finder = kTRUE; // define masses of different particles, this will be used by the KF particle // together with the width to set mass constraints. Units in GeV. Double_t kGCelectronMass = 0.00051099892; Double_t kGCgammaMass = 0.; Double_t kGCpi0Mass = 0.1349766; Double_t kGCetaMass = 0.54751; // define the width constraint used by KF particle. Double_t kGCgammaWidth = 0.01; Double_t kGCpi0Width = 0.01; Double_t kGCetaWidth = 0.01; // define the probability of track being an electron Double_t kGCprobElectron = 0.000; Double_t kGCminOpeningAngleGhostCut = 0.01; /** ----------------------------------end define cuts here----------------------------------*/ /** -------------------------------- Phi/R Mapping ---------------------------------------*/ Int_t kGCnPhiIndex = 8; Int_t kGCnRIndex = 14; Double_t kGCminRadius = 0.; Double_t kGCmaxRadius = 200.; Double_t kGCminPhi = -TMath::Pi(); Double_t kGCmaxPhi = TMath::Pi(); /** ------------------------------- end Phi/R Mapping ------------------------------------*/ Bool_t kGCdoOwnXYZCalculation = kFALSE; Bool_t kGCWriteStandardAOD =kFALSE; // need to be true for train running? CKB /** ------------------- define which histograms to plot here --------------------------------*/ /** NB: to change the bin numbers, see below the histogram flags */ // NEUTRAL MESON PLOTS Bool_t kGCplotMCConversionR = kTRUE; Bool_t kGCplotMCConversionZR = kTRUE; Bool_t kGCplotMCConversionXY = kTRUE; Bool_t kGCplotMCConversionOpeningAngle = kTRUE; Bool_t kGCplotMCConvGammaEAsymmetryP = kTRUE; Bool_t kGCplotMCConvGammaPAsymmetryP = kTRUE; Bool_t kGCplotMCEEnergy = kTRUE; Bool_t kGCplotMCEPt = kTRUE; Bool_t kGCplotMCEEta = kTRUE; Bool_t kGCplotMCEPhi = kTRUE; Bool_t kGCplotMCENTPCClusters = kTRUE; Bool_t kGCplotMCENITSClusters = kTRUE; Bool_t kGCplotMCPEnergy = kTRUE; Bool_t kGCplotMCPPt = kTRUE; Bool_t kGCplotMCPEta = kTRUE; Bool_t kGCplotMCPPhi = kTRUE; Bool_t kGCplotMCPNTPCClusters = kTRUE; Bool_t kGCplotMCPNITSClusters = kTRUE; Bool_t kGCplotMCallGammaEnergy = kTRUE; Bool_t kGCplotMCallGammaPt = kTRUE; Bool_t kGCplotMCallGammaEta = kTRUE; Bool_t kGCplotMCallGammaPhi = kTRUE; Bool_t kGCplotMCallGammaRapid = kTRUE; Bool_t kGCplotMCConvGammaEnergy = kTRUE; Bool_t kGCplotMCConvGammaPt = kTRUE; Bool_t kGCplotMCConvGammaEta = kTRUE; Bool_t kGCplotMCConvGammaPhi = kTRUE; Bool_t kGCplotMCConvGammaRapid = kTRUE; Bool_t kGCplotMCConvGammaPtvsEta = kTRUE; Bool_t kGCplotMCallDirectGammaEnergy = kTRUE; Bool_t kGCplotMCallDirectGammaPt = kTRUE; Bool_t kGCplotMCallDirectGammaEta = kTRUE; Bool_t kGCplotMCallDirectGammaPhi = kTRUE; Bool_t kGCplotMCallDirectGammaRapid = kTRUE; Bool_t kGCplotMCConvDirectGammaEnergy = kTRUE; Bool_t kGCplotMCConvDirectGammaPt = kTRUE; Bool_t kGCplotMCConvDirectGammaEta = kTRUE; Bool_t kGCplotMCConvDirectGammaPhi = kTRUE; Bool_t kGCplotMCConvDirectGammaRapid = kTRUE; Bool_t kGCplotMCMotherEta = kTRUE; Bool_t kGCplotMCMotherRapid = kTRUE; Bool_t kGCplotMCMotherPhi = kTRUE; Bool_t kGCplotMCMotherPt = kTRUE; Bool_t kGCplotMCMotherEnergy = kTRUE; Bool_t kGCplotMCMotherMass = kTRUE; Bool_t kGCplotMCMotherOpeningAngle = kTRUE; Bool_t kGCplotMCMotherR = kTRUE; Bool_t kGCplotMCMotherZR = kFALSE; Bool_t kGCplotMCMotherXY = kFALSE; Bool_t kGCplotMCMotherPtvsEtaWithinAcceptance = kTRUE; Bool_t kGCplotMCMotherPtvsRapidWithinAcceptance = kTRUE; Bool_t kGCplotMCMotherPtvsEtaConvGammaWithinAcceptance = kTRUE; Bool_t kGCplotMCMotherPtvsRapidConvGammaWithinAcceptance = kTRUE; Bool_t kGCplotMCMotherSpectra = kTRUE; Bool_t kGCplotMCPi0Eta = kTRUE; Bool_t kGCplotMCPi0Rapid = kTRUE; Bool_t kGCplotMCPi0Phi = kTRUE; Bool_t kGCplotMCPi0Pt = kTRUE; Bool_t kGCplotMCPi0PtFiducial = kTRUE; Bool_t kGCplotMCPi0PtWithinAcceptanceFiducial = kTRUE; Bool_t kGCplotMCPi0PtConvGammaWithinAcceptanceFiducial = kTRUE; Bool_t kGCplotMCPi0Energy = kTRUE; Bool_t kGCplotMCPi0Mass = kTRUE; Bool_t kGCplotMCPi0Alpha = kTRUE; Bool_t kGCplotMCPi0OpeningAngle = kTRUE; Bool_t kGCplotMCPi0R = kTRUE; Bool_t kGCplotMCPi0ZR = kTRUE; Bool_t kGCplotMCPi0XY = kTRUE; Bool_t kGCplotMCPi0PtvsEtaWithinAcceptance = kTRUE; Bool_t kGCplotMCPi0PtvsRapidWithinAcceptance = kTRUE; Bool_t kGCplotMCPi0PtvsEtaConvGammaWithinAcceptance = kTRUE; Bool_t kGCplotMCPi0PtvsRapidConvGammaWithinAcceptance = kTRUE; Bool_t kGCplotMCPi0ZRConvGammaWithinAcceptance = kTRUE; Bool_t kGCplotMCPi0SecondaryEta = kTRUE; Bool_t kGCplotMCPi0SecondaryRapid = kTRUE; Bool_t kGCplotMCPi0SecondaryPhi = kTRUE; Bool_t kGCplotMCPi0SecondaryPt = kTRUE; Bool_t kGCplotMCPi0SecondaryEnergy = kTRUE; Bool_t kGCplotMCPi0SecondaryMass = kTRUE; Bool_t kGCplotMCPi0SecondaryOpeningAngle = kTRUE; Bool_t kGCplotMCPi0SecondaryR = kTRUE; Bool_t kGCplotMCPi0SecondaryZR = kTRUE; Bool_t kGCplotMCPi0SecondaryXY = kTRUE; Bool_t kGCplotMCPi0SecondaryPtvsEtaWithinAcceptance = kTRUE; Bool_t kGCplotMCPi0SecondaryPtvsRapidWithinAcceptance = kTRUE; Bool_t kGCplotMCPi0SecondaryPtvsEtaConvGammaWithinAcceptance = kTRUE; Bool_t kGCplotMCPi0SecondaryPtvsRapidConvGammaWithinAcceptance = kTRUE; Bool_t kGCplotMCEtaEta = kTRUE; Bool_t kGCplotMCEtaRapid = kTRUE; Bool_t kGCplotMCEtaPhi = kTRUE; Bool_t kGCplotMCEtaPt = kTRUE; Bool_t kGCplotMCEtaEnergy = kTRUE; Bool_t kGCplotMCEtaMass = kTRUE; Bool_t kGCplotMCEtaOpeningAngleGamma = kTRUE; Bool_t kGCplotMCEtaR = kTRUE; Bool_t kGCplotMCEtaZR = kTRUE; Bool_t kGCplotMCEtaXY = kTRUE; Bool_t kGCplotMCEtaPtvsEtaWithinAcceptance = kTRUE; Bool_t kGCplotMCEtaPtvsRapidWithinAcceptance = kTRUE; Bool_t kGCplotMCEtaPtvsEtaConvGammaWithinAcceptance = kTRUE; Bool_t kGCplotMCEtaPtvsRapidConvGammaWithinAcceptance = kTRUE; Bool_t kGCplotMCEtaZRConvGammaWithinAcceptance = kTRUE; // Histograms from esd tracks Bool_t kGCplotESDConversionR = kTRUE; Bool_t kGCplotESDConversionZR = kTRUE; Bool_t kGCplotESDConversionXY = kTRUE; Bool_t kGCplotESDConversionOpeningAngle = kTRUE; Bool_t kGCplotESDConvGammaCosPointingAngle = kTRUE; Bool_t kGCplotESDConvGammaDcaDaugthers = kTRUE; Bool_t kGCplotESDConvGammaNormDcaDistDaugthers = kTRUE; Bool_t kGCplotESDConvGammaLikelihoodAP = kTRUE; Bool_t kGCplotESDConvGammaEAsymmetryP = kTRUE; Bool_t kGCplotESDConvGammaPAsymmetryP = kTRUE; Bool_t kGCplotESDConvGammaEdEdxP = kTRUE; Bool_t kGCplotESDConvGammaPdEdxP = kTRUE; Bool_t kGCplotESDConvGammaQtAlfa = kTRUE; Bool_t kGCplotESDEEnergy = kTRUE; Bool_t kGCplotESDEPt = kTRUE; Bool_t kGCplotESDEEta = kTRUE; Bool_t kGCplotESDEPhi = kTRUE; Bool_t kGCplotESDENTPCClusters = kTRUE; Bool_t kGCplotESDENITSClusters = kTRUE; Bool_t kGCplotESDPEnergy = kTRUE; Bool_t kGCplotESDPPt = kTRUE; Bool_t kGCplotESDPEta = kTRUE; Bool_t kGCplotESDPPhi = kTRUE; Bool_t kGCplotESDPNTPCClusters = kTRUE; Bool_t kGCplotESDPNITSClusters = kTRUE; Bool_t kGCplotESDConvGammaEnergy = kTRUE; Bool_t kGCplotESDConvGammaPt = kTRUE; Bool_t kGCplotESDConvGammaEta = kTRUE; Bool_t kGCplotESDConvGammaPhi = kTRUE; Bool_t kGCplotESDConvGammaMass = kTRUE; Bool_t kGCplotESDConvGammaWidth = kTRUE; Bool_t kGCplotESDConvGammaChi2 = kTRUE; Bool_t kGCplotESDConvGammaNDF = kTRUE; Bool_t kGCplotESDConvGammaRapid = kTRUE; Bool_t kGCplotESDConvGammaPtvsEta = kTRUE; Bool_t kGCplotESDConvGammaPtvsChi2 = kTRUE; Bool_t kGCplotESDConvGammaEtavsChi2 = kTRUE; Bool_t kGCplotESDTrueDalitzContaminationR = kTRUE; Bool_t kGCplotESDTrueConvGammaEnergy = kTRUE; Bool_t kGCplotESDTrueConvGammaPt = kTRUE; Bool_t kGCplotESDTrueConvGammaEta = kTRUE; Bool_t kGCplotESDTrueConvGammaPhi = kTRUE; Bool_t kGCplotESDTrueConvGammaMass = kTRUE; Bool_t kGCplotESDTrueConvGammaWidth = kTRUE; Bool_t kGCplotESDTrueConvGammaChi2 = kTRUE; Bool_t kGCplotESDTrueConvGammaNDF = kTRUE; Bool_t kGCplotESDTrueConvGammaRapid = kTRUE; Bool_t kGCplotESDTrueConvGammaPtvsEta = kTRUE; Bool_t kGCplotESDTrueConversionR = kTRUE; Bool_t kGCplotESDTrueConversionZR = kTRUE; Bool_t kGCplotESDTrueConversionXY = kTRUE; Bool_t kGCplotESDTrueConversionOpeningAngle = kTRUE; Bool_t kGCplotESDTrueConvGammaCosPointingAngle = kTRUE; Bool_t kGCplotESDTrueConvGammaDcaDaugthers = kTRUE; Bool_t kGCplotESDTrueConvGammaNormDcaDistDaugthers = kTRUE; Bool_t kGCplotESDTrueConvGammaLikelihoodAP = kTRUE; Bool_t kGCplotESDTrueConvGammaEAsymmetryP = kTRUE; Bool_t kGCplotESDTrueConvGammaPAsymmetryP = kTRUE; Bool_t kGCplotESDTrueConvGammaEdEdxP = kTRUE; Bool_t kGCplotESDTrueConvGammaPdEdxP = kTRUE; Bool_t kGCplotESDTrueConvGammaPtvsChi2 = kTRUE; Bool_t kGCplotESDTrueConvGammaEtavsChi2 = kTRUE; Bool_t kGCplotESDTrueConvGammaMCPtEta = kTRUE; Bool_t kGCplotESDTrueConversionMCZR = kTRUE; Bool_t kGCplotESDTrueConversionMCXY = kTRUE; Bool_t kGCplotESDNoCutConvGammaEnergy = kTRUE; Bool_t kGCplotESDNoCutConvGammaPt = kTRUE; Bool_t kGCplotESDNoCutConvGammaEta = kTRUE; Bool_t kGCplotESDNoCutConvGammaPhi = kTRUE; Bool_t kGCplotESDNoCutConvGammaMass = kTRUE; Bool_t kGCplotESDNoCutConvGammaWidth = kTRUE; Bool_t kGCplotESDNoCutConvGammaChi2 = kTRUE; Bool_t kGCplotESDNoCutConvGammaNDF = kTRUE; Bool_t kGCplotESDNoCutConvGammaRapid = kTRUE; Bool_t kGCplotESDNoCutConvGammaPtvsEta = kTRUE; Bool_t kGCplotESDNoCutConversionR = kTRUE; Bool_t kGCplotESDNoCutConversionZR = kTRUE; Bool_t kGCplotESDNoCutConversionXY = kTRUE; Bool_t kGCplotESDNoCutConversionOpeningAngle = kTRUE; Bool_t kGCplotESDNoCutConvGammaCosPointingAngle = kTRUE; Bool_t kGCplotESDNoCutConvGammaDcaDaugthers = kTRUE; Bool_t kGCplotESDNoCutConvGammaNormDcaDistDaugthers = kTRUE; Bool_t kGCplotESDNoCutConvGammaLikelihoodAP = kTRUE; Bool_t kGCplotESDNoCutConvGammaEAsymmetryP = kTRUE; Bool_t kGCplotESDNoCutConvGammaPAsymmetryP = kTRUE; Bool_t kGCplotESDNoCutConvGammaEdEdxP = kTRUE; Bool_t kGCplotESDNoCutConvGammaPdEdxP = kTRUE; Bool_t kGCplotESDNoCutConvGammaPtvsChi2 = kTRUE; Bool_t kGCplotESDNoCutConvGammaEtavsChi2 = kTRUE; Bool_t kGCplotESDNoCutConvGammaMCPtEta = kTRUE; Bool_t kGCplotESDNoCutConversionMCZR = kTRUE; Bool_t kGCplotESDNoCutConversionMCXY = kTRUE; Bool_t kGCplotESDMotherOpeningAngleGamma = kTRUE; Bool_t kGCplotESDMotherEnergy = kTRUE; Bool_t kGCplotESDMotherPt = kTRUE; Bool_t kGCplotESDMotherEta = kTRUE; Bool_t kGCplotESDMotherPhi = kTRUE; Bool_t kGCplotESDMotherMass = kTRUE; Bool_t kGCplotESDMotherR = kTRUE; Bool_t kGCplotESDMotherZR = kFALSE; Bool_t kGCplotESDMotherXY = kFALSE; Bool_t kGCplotESDMotherRapid = kTRUE; Bool_t kGCplotESDBackgroundOpeningAngleGamma = kTRUE; Bool_t kGCplotESDBackgroundEnergy = kTRUE; Bool_t kGCplotESDBackgroundPt = kTRUE; Bool_t kGCplotESDBackgroundEta = kTRUE; Bool_t kGCplotESDBackgroundPhi = kTRUE; Bool_t kGCplotESDBackgroundMass = kTRUE; Bool_t kGCplotESDBackgroundR = kTRUE; Bool_t kGCplotESDBackgroundZR = kFALSE; Bool_t kGCplotESDBackgroundXY = kFALSE; Bool_t kGCplotESDBackgroundRapid = kTRUE; Bool_t kGCplotMapping = kTRUE; Bool_t kGCplotResolutiondPt = kTRUE; Bool_t kGCplotResolutiondR = kTRUE; Bool_t kGCplotResolutiondZ = kTRUE; Bool_t kGCplotResolutiondRAbs = kTRUE; Bool_t kGCplotResolutiondZAbs = kTRUE; Bool_t kGCplotResolutiondPhiAbs = kTRUE; Bool_t kGCplotResolutiondRdPt = kTRUE; Bool_t kGCplotResolutionMCPt = kTRUE; Bool_t kGCplotResolutionMCR = kTRUE; Bool_t kGCplotResolutionMCZ = kTRUE; Bool_t kGCplotResolutionESDPt = kTRUE; Bool_t kGCplotResolutionESDR = kTRUE; Bool_t kGCplotResolutionESDZ = kTRUE; Bool_t kGCplotResolutionPtdPt = kTRUE; Bool_t kGCplotESDNumberOfV0s = kTRUE; Bool_t kGCplotESDNumberOfSurvivingV0s = kTRUE; Bool_t kGCplotESDNumberOfContributorsVtx = kTRUE; Bool_t kGCplotESDNumberOfGoodESDTracks = kTRUE; // debug histograms Bool_t kGCplotESDCutGetOnFly = kTRUE; Bool_t kGCplotESDCutNContributors = kTRUE; Bool_t kGCplotESDCutLikeSign = kTRUE; Bool_t kGCplotESDCutRefit = kTRUE; Bool_t kGCplotESDCutKink = kTRUE; Bool_t kGCplotESDCutPIDProb = kTRUE; Bool_t kGCplotESDCutdedxSigmaElectronLine=kTRUE; Bool_t kGCplotESDCutdedxSigmaPionLine=kTRUE; Bool_t kGCplotESDCutR = kTRUE; Bool_t kGCplotESDCutLine = kTRUE; Bool_t kGCplotESDCutZ = kTRUE; Bool_t kGCplotESDCutMinClsTPC = kTRUE; Bool_t kGCplotESDGoodV0s = kTRUE; Bool_t kGCplotESDAllV0s = kTRUE; Bool_t kGCplotESDAllV0sCurrentFinder = kTRUE; Bool_t kGCplotESDAllV0sCurrentFinderQtAlfa = kTRUE; Bool_t kGCplotESDCutNDF = kTRUE; Bool_t kGCplotESDCutChi2 = kTRUE; Bool_t kGCplotESDCutEta = kTRUE; Bool_t kGCplotESDCutPt = kTRUE; Bool_t kGCplotESDTrueConvGammaTrackLength =kFALSE; Bool_t kGCplotESDTrueConvGammaTrackLengthVSInvMass =kFALSE; Bool_t kGCplotPi0Spectra = kTRUE; Bool_t kGCplotEtaSpectra = kTRUE; Bool_t kGCplotOmegaSpectra = kTRUE; /////////////Chi_c Analysis////////////////////////// Bool_t kGCplotStatsElectrons = kTRUE; Bool_t kGCplotRecENegJPsiPtDiff = kTRUE; Bool_t kGCplotRecEPosJPsiPtDiff = kTRUE; Bool_t kGCplotRecEPosENegR = kTRUE; Bool_t kGCplotRecEPosENegEta = kTRUE; Bool_t kGCplotESDInvMassePluseMinus = kTRUE; Bool_t kGCplotESDInvMassGammaePluseMinusChiC = kTRUE; Bool_t kGCplotESDInvMassGammaePluseMinusPi0 = kTRUE; Bool_t kGCplotESDElectronPosNegPt = kTRUE; Bool_t kGCplotESDElectronPosNegEta = kTRUE; Bool_t kGCplotESDElectronPosNegAngle = kTRUE; Bool_t kGCplotMCElectronPosNegPt = kTRUE; Bool_t kGCplotMCElectronPosNegEta = kTRUE; Bool_t kGCplotMCElectronPosNegJPsiAngle = kTRUE; Bool_t kGCplotESDElectronPosNegPi0Angle = kTRUE; Bool_t kGCplotMCElectronPosNegPi0Angle = kTRUE; Bool_t kGCplotTableElectrons = kTRUE; Bool_t kGCplotESDEPosBackground = kTRUE; Bool_t kGCplotESDENegBackground = kTRUE; Bool_t kGCplotESDEPosENegBackground = kTRUE; Bool_t kGCplotESDEPosENegBackgroundCut = kTRUE; Bool_t kGCplotESDePoseNegAngle = kTRUE; Bool_t kGCplotESDEPosENegGammaBackgroundMX = kTRUE; Bool_t kGCplotMCLabels = kTRUE; /////////////////////////////////////////////////////////////////// //---------------- Gamma Jet analysis ---------------------------- Bool_t kGCplotdPhiHdrGam = kTRUE; Bool_t kGCplotdPhiHdrGamIsolated = kTRUE; Bool_t kGCplotMinimumIsoDistance = kTRUE; Bool_t kGCplotFFzHdrGam = kTRUE; Bool_t kGCplotImbalanceHdrGam = kTRUE; //---------------------------------------------------------------- /** ----------------- end define which histograms to plot here -------------------------------*/ /** ----------- Define the binning for the different plot types here -------------------------*/ //R-plots Int_t kGCnXBinsR = 500; Double_t kGCfirstXBinR = 0.; Double_t kGClastXBinR = 250.; //ZR-plots Int_t kGCnXBinsZR = 1200; Double_t kGCfirstXBinZR = -300.; Double_t kGClastXBinZR = 300.; Int_t kGCnYBinsZR = 500; Double_t kGCfirstYBinZR = 0.; Double_t kGClastYBinZR = 250.; //XY-plots Int_t kGCnXBinsXY = 1000; Double_t kGCfirstXBinXY = -250.; Double_t kGClastXBinXY = 250.; Int_t kGCnYBinsXY = 1000; Double_t kGCfirstYBinXY = -250.; Double_t kGClastYBinXY = 250.; //OpenAngle-plots Int_t kGCnXBinsOpeningAngle = 400; Double_t kGCfirstXBinOpeningAngle = 0.; Double_t kGClastXBinOpeningAngle = TMath::Pi(); //CosPointingAngle-plots Int_t kGCnXBinsCosPointingAngle = 400; Double_t kGCfirstXBinCosPointingAngle = 0.99; Double_t kGClastXBinCosPointingAngle = 1.01; //DCA Daugthers-plots Int_t kGCnXBinsDcaDaughters = 400; Double_t kGCfirstXBinDcaDaughters= 0.; Double_t kGClastXBinDcaDaughters = 5.; //Norm DCA dist Daugthers-plots Int_t kGCnXBinsNormDcaDistDaughters = 400; Double_t kGCfirstXBinNormDcaDistDaughters= 0.; Double_t kGClastXBinNormDcaDistDaughters = 10.; //LikelihoodAP Plots Int_t kGCnXBinsLikelihoodAP = 400; Double_t kGCfirstXBinLikelihoodAP= 0.; Double_t kGClastXBinLikelihoodAP = 2.; //Energy-plots Int_t kGCnXBinsEnergy = 200; Double_t kGCfirstXBinEnergy = 0.; Double_t kGClastXBinEnergy = 50.; //P-plots Int_t kGCnXBinsP = 200; Double_t kGCfirstXBinP = 0.; Double_t kGClastXBinP = 50.; //dEdx-plots Int_t kGCnYBinsdEdx = 400; Double_t kGCfirstYBindEdx = 0.; Double_t kGClastYBindEdx = 400.; //Qt-plots Int_t kGCnYBinsQt = 500; Double_t kGCfirstYBinQt = 0.; Double_t kGClastYBinQt = 0.5; //Asymmetry-plots Int_t kGCnYBinsAsymmetry = 200; Double_t kGCfirstYBinAsymmetry = 0.; Double_t kGClastYBinAsymmetry = 1.; //Pt-plots Int_t kGCnXBinsPt = 500; Double_t kGCfirstXBinPt = 0.; Double_t kGClastXBinPt = 50.; //Eta-plots Int_t kGCnXBinsEta = 40; Double_t kGCfirstXBinEta = -2.; Double_t kGClastXBinEta = 2.; //Rapidity Int_t kGCnXBinsRapid = 200; Double_t kGCfirstXBinRapid = -10.; Double_t kGClastXBinRapid = 10.; //Phi-plots Int_t kGCnXBinsPhi = 72; Double_t kGCfirstXBinPhi = -TMath::Pi(); Double_t kGClastXBinPhi = TMath::Pi(); //nTPCCluster-plots Int_t kGCnXBinsNTPCClusters = 201; Double_t kGCfirstXBinNTPCClusters = -0.5; Double_t kGClastXBinNTPCClusters = 200.5; //nITSCluster-plots Int_t kGCnXBinsNITSClusters = 7; Double_t kGCfirstXBinNITSClusters = -0.5; Double_t kGClastXBinNITSClusters = 6.5; //Mapping-plots Int_t kGCnXBinsMapping = 800; Double_t kGCfirstXBinMapping = -100.; Double_t kGClastXBinMapping = 100.; Int_t kGCnYBinsMapping = 40; Double_t kGCfirstYBinMapping = -2; Double_t kGClastYBinMapping = 2; //ResolutionPlots //RESdPt Int_t kGCnXBinsResdPt=1000; Int_t kGCfirstXBinResdPt= 0; Int_t kGClastXBinResdPt=100; Int_t kGCnYBinsResdPt=1000; Int_t kGCfirstYBinResdPt= -5; Int_t kGClastYBinResdPt=5; //RESdR Int_t kGCnXBinsResdR=500; Int_t kGCfirstXBinResdR= 0; Int_t kGClastXBinResdR=250; Int_t kGCnYBinsResdR=100; Int_t kGCfirstYBinResdR= -25; Int_t kGClastYBinResdR=25; //RESdZ Int_t kGCnXBinsResdZ=80; Int_t kGCfirstXBinResdZ= -20; Int_t kGClastXBinResdZ=20; Int_t kGCnYBinsResdZ=80; Int_t kGCfirstYBinResdZ= -20; Int_t kGClastYBinResdZ=20; //RESdRdPt Int_t kGCnXBinsResdRdPt=440; Int_t kGCfirstXBinResdRdPt= -22; Int_t kGClastXBinResdRdPt=22; Int_t kGCnYBinsResdRdPt=100; Int_t kGCfirstYBinResdRdPt= -5; Int_t kGClastYBinResdRdPt=5; //RESMCPt Int_t kGCnXBinsResPt=1000; Int_t kGCfirstXBinResPt= 0; Int_t kGClastXBinResPt=100; //RESMCR Int_t kGCnXBinsResR=500; Int_t kGCfirstXBinResR= 0; Int_t kGClastXBinResR=250; //RESMCZ Int_t kGCnXBinsResZ=500; Int_t kGCfirstXBinResZ= 0; Int_t kGClastXBinResZ=250; //GammaMass-plots Int_t kGCnXBinsGammaMass = 4000; Double_t kGCfirstXBinGammaMass = 0.; Double_t kGClastXBinGammaMass = 1.; //Pi0Mass-plots Int_t kGCnXBinsPi0Mass = 1000; Double_t kGCfirstXBinPi0Mass = 0.; Double_t kGClastXBinPi0Mass = 1.; Double_t kGCfirstXBinPi0Alpha = -1.; Double_t kGClastXBinPi0Alpha = 1.; //EtaMass-plots Int_t kGCnXBinsEtaMass = 1000; Double_t kGCfirstXBinEtaMass = 0.; Double_t kGClastXBinEtaMass = 1.; //GammaWidth-plots Int_t kGCnXBinsGammaWidth = 100; Double_t kGCfirstXBinGammaWidth = 0.; Double_t kGClastXBinGammaWidth = 1.; //GammaChi2-plots Int_t kGCnXBinsGammaChi2 = 100; Double_t kGCfirstXBinGammaChi2 = 0; Double_t kGClastXBinGammaChi2 = 200.; //GammaNDF-plots Int_t kGCnXBinsGammaNDF = 10; Double_t kGCfirstXBinGammaNDF = 0.; Double_t kGClastXBinGammaNDF = 10.; //Spectra-plots Int_t kGCnXBinsSpectra = 1000; Double_t kGCfirstXBinSpectra = 0.; Double_t kGClastXBinSpectra = 1.; Int_t kGCnYBinsSpectra = 500; Double_t kGCfirstYBinSpectra = 0.; Double_t kGClastYBinSpectra = 50.; Double_t kGCfirstXBinAlpha = -1.; Double_t kGClastXBinAlpha = 1.; //track length plots Int_t kGCnXBinsTrackLength = 1000; Double_t kGCfirstXBinTrackLength = 0; Double_t kGClastXBinTrackLength = 500; /////////Chic_Analysis/////////////////////////////////// Int_t kGCnXBinsEPt = 1000; Double_t kGCfirstXBinEPt = 0.; Double_t kGClastXBinJPsiPt = 10; Int_t kGCnXBinsJPsiMass = 1000; Double_t kGCfirstXBinJPsiMass = 0.; Double_t kGClastXBinJPsiMass = 10.; Int_t kGCnXBinsChicMass = 1000; Double_t kGCfirstXBinChicMass = 0.; Double_t kGClastXBinChicMass = 10.; Int_t kGCnXBinsPi0Mass = 1000; Double_t kGCfirstXBinPi0Mass = 0.; Double_t kGClastXBinPi0Mass = 1.; Int_t kGCnXBinsEPosNegPt = 1000; Double_t kGCfirstXBinEPosNegPt = 0.; Double_t kGClastXBinEPosNegPt = 10.; Int_t kGCnXBinsEPosNegEta = 200; Double_t kGCfirstXBinEPosNegEta = -1.2; Double_t kGClastXBinEPosNegEta = 1.2; Int_t kGCnXBinsEPosNegAngle = 200; Double_t kGCfirstXBinEPosNegAngle = 0.; Double_t kGClastXBinEPosNegAngle = TMath::Pi(); Int_t kGCnXBinsEBackground = 1000; Double_t kGCfirstXBinEBackground = 0.; Double_t kGClastXBinEBackground = 10.; Int_t kGCnXBinsEBackgroundCut = 100; Double_t kGCfirstXBinEBackgroundCut = 0.; Double_t kGClastXBinEBackgroundCut = 0.015.; Int_t kGCnXBinsMCLabels = 10; Double_t kGCfirstXBinMCLabels = 0.; Double_t kGClastXBinMCLabels = 10.; Int_t kGCnElementsElectronTable = 19; //18 elements const char * kGCelectronTable[] = { "Num. Events", "MC e+ J/Psi |\\eta|<0.9","MC e- J/Psi |\\eta|<0.9","MC e+ e+ from J/Psi |\\eta|<0.9", "ESDtracks", "Kink Cut", "Vertex Cut","TRDOut","TRDrefit","TPCrefit", "ITSrefit","TRDout+TPC+TPC+ITS+nsigma>3 Pass","pid!=0","ESDElec","ESD e+ JPsi", "ESD e- JPsi","ESD e+ e- JPSI","MC: gamma < 1.2","e+,e- < 0.9 g <1.2" }; // for Gamma Jet analysis Int_t kGCnXBinsdphiHdrGam = 100; Double_t kGCfirstXBindphiHdrGam = -TMath::PiOver2(); Double_t kGClastXBindphiHdrGam = 3*TMath::PiOver2(); Int_t kGCnXBinsMinimumIsoDistance = 100; Double_t kGCfirstXBinMinimumIsoDistance = 0.; Double_t kGClastXBinMinimumIsoDistance = TMath::PiOver2(); Int_t kGCnXBinsFFzHdrGam = 100; Double_t kGCfirstXBinFFzHdrGam = 0.; Double_t kGClastXBinFFzHdrGam = 5; Int_t kGCnXBinsImbalanceHdrGam = 100; Double_t kGCfirstXBinImbalanceHdrGam = -5.; Double_t kGClastXBinImbalanceHdrGam = 5.; //////////////////////////////////////////////////////// /** ---------- end Define the binning for the different plot types here ----------------------*/ /************************************************************************************************ * * * * * EVERYTHING BELOW IS FOR DEVELOPERS ONLY * * * * * ************************************************************************************************/ TString kGCoutputFileName = "histogramsGammaConversion"; TString kGCoutputFileAppendix = ""; TString kGCdataList = ""; Bool_t kGCwriteNtuple = kFALSE; // WE DOO NOT NEED TO CHANGE THIS (kGCusePWG4PartCorr) ANYMORE SINCE IT IS TAKEN CARE OF AUTOMATICALLY NOW Bool_t kGCusePWG4PartCorr = kTRUE; /** Flag to enable running on train */ Bool_t kGCrunOnTrain = kFALSE; /** ------------------------------ Monte Carlo flag -----------------------------------------*/ Bool_t kGCdoMCTruth = kTRUE; /** ---------------------------- end Monte Carlo flag ---------------------------------------*/ /** ------------------------------ Selecting trigger CINT1B -----------------------------------*/ Bool_t kGCtriggerCINT1B = kFALSE; /** ---------------------------- end Monte Carlo flag ---------------------------------------*/ /** ------------------------- Choose KFParticle OR ESDTrack --------------------------------*/ Bool_t kGCuseKFParticle = kTRUE; Bool_t kGCuseESDTrack = kFALSE; /** ----------------------- end Choose KFParticle OR ESDTrack -----------------------------*/ /**------------------------------Flag to apply dEdx cut base on sigmas to electron line----------*/ Bool_t kGCdodEdxSigmaCut= kTRUE; /**------------------------------end Flag to apply NsigmadEdx cut ----------*/ Double_t kGCPIDnSigmaAboveElectronLine=5; Double_t kGCPIDnSigmaBelowElectronLine=-3; Double_t kGCPIDnSigmaAbovePionLine=0; Double_t kGCPIDMinPnSigmaAbovePionLine=1; Bool_t scanArguments(TString arguments){ Bool_t iResult = kTRUE; TString allArgs=arguments; TString argument; int bMissingParam=0; cout<<"Arguments received: "<GetEntries() && iResult==kTRUE; i++) { argument=((TObjString*)pTokens->At(i))->GetString(); if(argument.IsNull()) continue; // -- deconvolute-time option if(argument.CompareTo("-data-list") == 0){ if((bMissingParam=(++i>=pTokens->GetEntries()))) break; kGCdataList = ((TObjString*)pTokens->At(i))->GetString(); if(kGCdataList.IsNull()){ cout<<"-data-list is NULL"<=pTokens->GetEntries()))) break; kGCoutputFileName = ((TObjString*)pTokens->At(i))->GetString(); if(kGCoutputFileName.IsNull()){ cout<<"-output-file-name is NULL"<=pTokens->GetEntries()))) break; kGCoutputFileAppendix = TString("_")+((TObjString*)pTokens->At(i))->GetString(); if(kGCoutputFileAppendix.IsNull()){ cout<<"-appending-to-output-file is NULL"<=pTokens->GetEntries()))) break; kGCAnalysisCutSelectionId = ((TObjString*)pTokens->At(i))->GetString(); cout<<"The analysis cut selection is set to: "<Getenv("ALICE_ROOT"); file+="/PWG4/PartCorr/AliAnalysisTaskGammaConversion.cxx"; ifstream stream; stream.open(file.Data()); if(!stream){ kGCusePWG4PartCorr=kFALSE; } else{ kGCusePWG4PartCorr=kTRUE; } stream.close(); } AliAnalysisTaskGammaConversion* ConfigGammaConversion(TString arguments, AliAnalysisDataContainer *cin_esd=NULL){ if(!scanArguments(arguments)){ break; } SetVersionLibrary(); // checks if PWG4GammaConv or PWG4PartCorr is used if(cin_esd == NULL && kGCrunOnTrain == kTRUE){ cout<<"Error: kGCrunOnTrain flag is set to true but the input AliAnalysisDataContainer is NULL"<LoadMacro("$ALICE_ROOT/PWG0/CreateESDChain.C"); // load the CreateChain macro } if(!kGCrunOnTrain){ // for the train leave this to the steering macro AliLog::SetGlobalDebugLevel(0); AliLog::SetGlobalLogLevel(AliLog::kFatal); } // ------------------------------------------------------------------------ // for CF //Container def. const Double_t ptmin = kGCfirstXBinPt; const Double_t ptmax = kGClastXBinPt; const Double_t etamin = kGCfirstXBinEta; const Double_t etamax = kGClastXBinEta; const Double_t massmin = kGCfirstXBinPi0Mass; const Double_t massmax = kGClastXBinPi0Mass; // sensitive variables UInt_t ipt = 0; UInt_t ieta = 1; UInt_t imass = 2; //how many selection steps UInt_t nstep = 20; const Int_t nvar = 3; Int_t kGCnXBinsPtCF=40; Int_t kGCnXBinsEtaCF=8; Int_t kGCnXBinsPi0MassCF=10; if(!kGCrunCF){ nstep=0; kGCnXBinsPtCF=0; kGCnXBinsEtaCF=0; kGCnXBinsPi0MassCF=0; } const Int_t nbin0 = kGCnXBinsPtCF; // do not use same variable for CF than for histogram const Int_t nbin1 = kGCnXBinsEtaCF; // do not use same variable for CF than for histogram const Int_t nbin2 = kGCnXBinsPi0MassCF; // do not use same variable for CF than for histogram //arrays for the number of bins in each dimension Int_t iBin[nvar]; iBin[0] = nbin0; iBin[1] = nbin1; iBin[2] = nbin2; //arrays for lower bounds Double_t *binLim0 = new Double_t[nbin0+1]; Double_t *binLim1 = new Double_t[nbin1+1]; Double_t *binLim2 = new Double_t[nbin2+1]; // values for lower bounds for(Int_t i = 0; i <= nbin0; i++) binLim0[i] = ptmin + (ptmax - ptmin)/nbin0*i; for(Int_t i = 0; i <= nbin1; i++) binLim1[i] = etamin + (etamax - etamin)/nbin1*i; for(Int_t i = 0; i <= nbin2; i++) binLim2[i] = massmin + (massmax - massmin)/nbin2*i; // create container AliCFContainer *container = new AliCFContainer("container","container for gammaconversion", nstep,nvar,iBin); container->SetBinLimits(ipt,binLim0); container->SetBinLimits(ieta,binLim1); container->SetBinLimits(imass,binLim2); AliCFManager *man = new AliCFManager(); man->SetParticleContainer(container); // end --------------------------------------------------------------------------- AliGammaConversionHistograms* histograms = new AliGammaConversionHistograms(); AddHistograms(histograms); // Create the Analysis manager AliAnalysisManager *mgr =NULL; if(kGCrunOnTrain == kFALSE){ mgr = new AliAnalysisManager("My Manager", "My Analysis"); } else{ mgr = AliAnalysisManager::GetAnalysisManager(); } if (!mgr) { ::Error("ConfigGammaConversion", "No analysis manager to connect to."); return NULL; } if(kGCrunOnTrain == kTRUE){ if (!mgr->GetInputEventHandler()) { ::Error("ConfigGammaConversion", "This task requires an input event handler"); return NULL; } } AliESDInputHandler* inpHandler = NULL; if(kGCrunOnTrain == kFALSE){ // Define Input Event Handler inpHandler = new AliESDInputHandler(); } // Define MC Truth Event Handler AliMCEventHandler* mcHandler = NULL; if(kGCdoMCTruth){ if(kGCrunOnTrain == kFALSE){ mcHandler = new AliMCEventHandler(); } else{ mcHandler = (AliMCEventHandler*)mgr->GetMCtruthEventHandler(); } if (!mcHandler) { ::Error("", "No MC handler connected"); return NULL; } } // Define Output Event Handler and ad if(kGCrunOnTrain == kFALSE){ if(kGCWriteStandardAOD == kTRUE){ AliAODHandler* aodHandler = new AliAODHandler(); TString fileOutAOD = "AOD_"+ kGCoutputFileName + kGCoutputFileAppendix + ".root"; aodHandler->SetOutputFileName(fileOutAOD); mgr->SetOutputEventHandler (aodHandler); } } if(kGCrunOnTrain == kFALSE){ mgr->SetInputEventHandler (inpHandler); mgr->SetMCtruthEventHandler(mcHandler); } // Be sure you are told what you are doing // mgr->SetDebugLevel(10); // Declare Common Input Tchain AliAnalysisDataContainer *cinput1 = NULL; if(kGCusePWG4PartCorr){ if(kGCrunOnTrain == kFALSE){ cinput1 = mgr->CreateContainer("GammaConvChain",TChain::Class(),AliAnalysisManager::kInputContainer); } else{ cinput1 = cin_esd; } } else{ cinput1 = mgr->GetCommonInputContainer(); } // Common Output Tree in common ‘default’ output file // CKB kGCusePWG4PartCorr and writestandard are not mutually exclusive? AliAnalysisDataContainer *coutput1 = NULL; if(kGCusePWG4PartCorr){ // coutput1 = mgr->CreateContainer("GammaConvTree",TTree::Class(),AliAnalysisManager::kOutputContainer, "default"); coutput1 = mgr->CreateContainer("GammaConvTree",TTree::Class(),AliAnalysisManager::kOutputContainer, "default"); } else{ if(kGCWriteStandardAOD){ coutput1 = mgr->GetCommonOutputContainer(); } } // Private output objects if(kGCoutputFileName.Contains(".root")){ kGCoutputFileName.ReplaceAll(".root",""); } if(kGCoutputFileAppendix.Contains(".root")){ kGCoutputFileAppendix.ReplaceAll(".root",""); } //TString fileOut = kGCoutputFileName + kGCoutputFileAppendix + ".root"; TString outputfile = AliAnalysisManager::GetCommonFileName(); cout<<"Analyis cut selection ID is: "<CreateContainer(Form("histogramsAliGammaConversion_%s",kGCAnalysisCutSelectionId.Data()), TList::Class(),AliAnalysisManager::kOutputContainer, outputfile); // for CF AliAnalysisDataContainer *coutput3 = mgr->CreateContainer(Form("GammaConvccontainer0_%s",kGCAnalysisCutSelectionId.Data()),AliCFContainer::Class(),AliAnalysisManager::kOutputContainer,outputfile); //------------------------ END: Define input/output handlers --------------------------------------------------- //check for errors in the specified data if(kGCuseKFParticle == kTRUE && kGCuseESDTrack == kTRUE){ //Print warning, cannot use both ::Error("ConfigGammaConversion","Both kGCuseKFParticle and kGCuseESDTracks can be true at the same time") } if(kGCuseKFParticle == kFALSE && kGCuseESDTrack == kFALSE){ //Print warning, one have to be specified ::Error("ConfigGammaConversion","Both kGCuseKFParticle and kGCuseESDTracks can be false at the same time") } //Create the V0Reader AliV0Reader * v0Reader = new AliV0Reader(); if(kGCuseKFParticle){ v0Reader->UseKFParticle(); } else if(kGCuseESDTrack){ v0Reader->UseESDTrack(); } v0Reader->SetNegativeTrackPID(kGCpidOfNegativeTrack); v0Reader->SetPositiveTrackPID(kGCpidOfPositiveTrack); v0Reader->SetMaxRCut(kGCmaxRCut); v0Reader->SetEtaCut(kGCetaCut); v0Reader->SetPtCut(kGCptCut); v0Reader->SetSinglePtCut(kGCsingleptCut); v0Reader->SetLineCutZRSlope(kGCLineCutZRSlope); v0Reader->SetLineCutZValue(kGCLineCutZValue); v0Reader->SetMaxZCut(kGCmaxZCut); v0Reader->SetMinClsTPCCut(kGCminClsTPCCut); v0Reader->SetChi2CutConversion(kGCchi2CutConversion); v0Reader->SetChi2CutMeson(kGCchi2CutMeson); v0Reader->SetPIDProbability(kGCprobElectron); v0Reader->SetXVertexCut(kGCxVertexCut); v0Reader->SetYVertexCut(kGCyVertexCut); v0Reader->SetZVertexCut(kGCzVertexCut); v0Reader->SetSigmaMass(kGCsigmaCutGammaMass); v0Reader->SetUseImprovedVertex(kGCuseImprovedVertex); v0Reader->SetDoMCTruth(kGCdoMCTruth); v0Reader->SetUseOwnXYZCalculation(kGCdoOwnXYZCalculation); // for CF v0Reader->SetCFManager(man); // for dEdx N sigma Cut v0Reader->SetDodEdxSigmaCut(kGCdodEdxSigmaCut); v0Reader->SetPIDnSigmaAboveElectronLine(kGCPIDnSigmaAboveElectronLine); v0Reader->SetPIDnSigmaBelowElectronLine(kGCPIDnSigmaBelowElectronLine); v0Reader->SetPIDnSigmaAbovePionLine(kGCPIDnSigmaAbovePionLine); v0Reader->SetPIDMinPnSigmaAbovePionLine(kGCPIDMinPnSigmaAbovePionLine); v0Reader->SetOnFlyFlag(kGCUseOnFlyV0Finder); v0Reader->SetCalculateBackground(kGCcalculateBackground); if(!SetAnalysisCutSelection(kGCAnalysisCutSelectionId)){ return 0; } // Create the GammaConversionTask AliAnalysisTaskGammaConversion *gammaconversion = new AliAnalysisTaskGammaConversion(Form("GammaConversionTask_%s",kGCAnalysisCutSelectionId.Data())); cout<<"name of Task::"<< Form("GammaConversionTask_%s",kGCAnalysisCutSelectionId.Data())<< " "<GetName() <SetDebugLevel(0); gammaconversion->SetWriteNtuple(kGCwriteNtuple); gammaconversion->SetV0Reader(v0Reader); gammaconversion->SetCalculateBackground(kGCcalculateBackground); gammaconversion->Init(); gammaconversion->SetElectronMass(kGCelectronMass); gammaconversion->SetGammaMass(kGCgammaMass); gammaconversion->SetPi0Mass(kGCpi0Mass); gammaconversion->SetEtaMass(kGCetaMass); gammaconversion->SetGammaWidth(kGCgammaWidth); gammaconversion->SetPi0Width(kGCpi0Width); gammaconversion->SetEtaWidth(kGCetaWidth); gammaconversion->SetMinOpeningAngleGhostCut(kGCminOpeningAngleGhostCut); Double_t lowPtMapping=0.4; Double_t highPtMapping=1.5; gammaconversion->SetLowPtMapping(lowPtMapping); gammaconversion->SetHighPtMapping(highPtMapping); // define the width constraint used by KF particle. Double_t gammaWidth = 0.01; Double_t pi0Width = 0.01; Double_t etaWidth = 0.01; gammaconversion->SetHistograms(histograms); v0Reader->SetHistograms(histograms);// also give the pointer to the v0reader, for debugging cuts gammaconversion->SetTriggerCINT1B(kGCtriggerCINT1B); gammaconversion->SetDoMCTruth(kGCdoMCTruth); gammaconversion->SetDoNeutralMeson(kGCrunNeutralMeson); gammaconversion->SetDoNeutralMesonV0MCCheck(kGCdoNeutralMesonV0MCCheck); gammaconversion->SetDoJet(kGCrunJet); gammaconversion->SetDoChic(kGCrunChic); gammaconversion->SetDoOmegaMeson(kGCrunOmegaMeson); // for CF gammaconversion->SetCFManager(man); gammaconversion->SetDoCF(kGCrunCF); v0Reader->SetDoCF(kGCrunCF); // Add task to the manager mgr->AddTask(gammaconversion); // Connect I/O to the task mgr->ConnectInput (gammaconversion, 0, cinput1); // CKB Output slot 0 is NOT connected if WriteStandardAOD is false? if(kGCWriteStandardAOD){ mgr->ConnectOutput(gammaconversion, 0, coutput1); } mgr->ConnectOutput(gammaconversion, 1, coutput2); mgr->ConnectOutput(gammaconversion, 2, coutput3); if(kGCrunOnTrain == kFALSE){ if(kGCdataList.IsNull()){ cout<<"Data list is not set, aborting."<LoadMacro("$ALICE_ROOT/ANALYSIS/macros/AddTaskPhysicsSelection.C"); AliPhysicsSelectionTask* physSelTask = AddTaskPhysicsSelection(); if(kGCdoMCTruth)physSelTask->GetPhysicsSelection()->SetAnalyzeMC(); physSelTask->GetPhysicsSelection()->AddBackgroundIdentification(new AliBackgroundSelection()); gammaconversion->SelectCollisionCandidates(); */ gROOT->LoadMacro("$ALICE_ROOT/ANALYSIS/macros/AddTaskPhysicsSelection.C"); AliPhysicsSelectionTask* physSelTask = AddTaskPhysicsSelection(kGCdoMCTruth,kTRUE); gammaconversion->SelectCollisionCandidates(); // if(kGCrunOnTrain == kFALSE){ TChain* chain= CreateESDChain(kGCdataList,kGCnumberOfFilesToAnalyze); mgr->InitAnalysis(); mgr->PrintStatus(); mgr->StartAnalysis("local",chain); // } } return gammaconversion; } void build() { TStopwatch timer; timer.Start(); gSystem->Load("libTree.so"); gSystem->Load("libGeom"); //// //Setting up ESD.par// //// cout<<"compiling ESD"<Load("libVMC.so"); gSystem->Load("libESD.so"); //// //// //Setting up STEERBase.par// //// cout<<"compiling STEERBase"<Load("libSTEERBase.so"); //// //Setting up AOD.par// //// cout<<"compiling AOD"<Load("libAOD.so"); //// //Setting up ANALYSIS.par// //// cout<<"compiling ANALYSIS"<Load("libANALYSIS.so"); //// //Setting up ANALYSISalice.par// //// cout<<"compiling ANALYSISalice"<Load("libANALYSISalice.so"); //// //Setting up CORRFW.par// //// cout<<"compiling CORRFW"<Load("CORRFW.so"); //// //Setting up PWG4GammaConv.par// //// cout<<"compiling PWG4GammaConv"<Load("libPWG4GammaConv.so"); } Int_t setupPar(const char* pararchivename) { /////////////////// // Setup PAR File// /////////////////// if (pararchivename) { char processline[1024]; sprintf(processline,".! tar xvzf %s.par",pararchivename); gROOT->ProcessLine(processline); const char* ocwd = gSystem->WorkingDirectory(); gSystem->ChangeDirectory(pararchivename); // check for BUILD.sh and execute if (!gSystem->AccessPathName("PROOF-INF/BUILD.sh")) { printf("*******************************\n"); printf("*** Building PAR archive ***\n"); printf("*******************************\n"); if (gSystem->Exec("PROOF-INF/BUILD.sh")) { Error("runAnalysis","Cannot Build the PAR Archive! - Abort!"); return -1; } } // check for SETUP.C and execute if (!gSystem->AccessPathName("PROOF-INF/SETUP.C")) { printf("*******************************\n"); printf("*** Setup PAR archive ***\n"); printf("*******************************\n"); gROOT->Macro("PROOF-INF/SETUP.C"); } gSystem->ChangeDirectory("../"); } return 1; } void AddHistograms(AliGammaConversionHistograms *histograms){ //---------------------------------------------- Jets --------------------------------------------------------- if(kGCrunJet == kTRUE){ if (kGCplotdPhiHdrGam == kTRUE){ histograms->AddHistogram("ESD_dphiHdrGam","ESD_dphiHdrGam", kGCnXBinsdphiHdrGam,kGCfirstXBindphiHdrGam,kGClastXBindphiHdrGam,"dphiHdrGam (rad)","Counts"); } if (kGCplotdPhiHdrGamIsolated == kTRUE){ histograms->AddHistogram("ESD_dphiHdrGamIsolated","ESD_dphiHdrGamIsolated", kGCnXBinsdphiHdrGam,kGCfirstXBindphiHdrGam,kGClastXBindphiHdrGam,"dphiHdrGamIsolated (rad)","Counts"); } if (kGCplotMinimumIsoDistance == kTRUE){ histograms->AddHistogram("ESD_MinimumIsoDistance","ESD_MinimumIsoDistance", kGCnXBinsMinimumIsoDistance,kGCfirstXBinMinimumIsoDistance,kGClastXBinMinimumIsoDistance,"Minimum Iso Distance (rad)","Counts"); } if (kGCplotFFzHdrGam == kTRUE){ histograms->AddHistogram("ESD_FFzHdrGam","ESD_FFzHdrGam", kGCnXBinsFFzHdrGam, kGCfirstXBinFFzHdrGam,kGClastXBinFFzHdrGam,"FFz Hdr Gam","Counts"); } if (kGCplotImbalanceHdrGam == kTRUE){ histograms->AddHistogram("ESD_ImbalanceHdrGam","ESD_ImbalanceHdrGam", kGCnXBinsImbalanceHdrGam, kGCfirstXBinImbalanceHdrGam,kGClastXBinImbalanceHdrGam,"Imbalance Hdr Gam","Counts"); } }//end if(kGCrunJet) //---------------------------------------------- Chi_c --------------------------------------------------------- if(kGCrunChic){ if(kGCplotESDInvMassePluseMinus == kTRUE){histograms->AddHistogram("ESD_InvMass_ePluseMinus","",kGCnXBinsJPsiMass, kGCfirstXBinJPsiMass, kGClastXBinJPsiMass, "", "");} if(kGCplotESDInvMassePluseMinus == kTRUE){histograms->AddHistogram("ESD_InvMass_ePluseMinusTest","",kGCnXBinsJPsiMass, kGCfirstXBinJPsiMass, kGClastXBinJPsiMass, "","");} if(kGCplotESDInvMassePluseMinus == kTRUE){histograms->AddHistogram("ESD_InvMass_xPlusxMinus","",kGCnXBinsJPsiMass, kGCfirstXBinJPsiMass, kGClastXBinJPsiMass, "", "");} if(kGCplotESDElectronPosNegPt == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");} if(kGCplotESDElectronPosNegEta == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegEta","",kGCnXBinsEPosNegEta,kGCfirstXBinEPosNegEta,kGClastXBinEPosNegEta,""," ");} if(kGCplotESDElectronPosNegPt == kTRUE){histograms->AddHistogram("ESD_ElectronPosPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");} if(kGCplotESDElectronPosNegPt == kTRUE){histograms->AddHistogram("ESD_ElectronNegPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");} if(kGCplotESDElectronPosNegAngle == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegJPsiAngle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPo sNegAngle,"","");} if(kGCplotMCElectronPosNegPt == kTRUE){histograms->AddHistogram("MC_ElectronPosNegPt","",kGCnXBinsEPosNegPt,kGCfirstXBinEPosNegPt,kGClastXBinEPosNegPt,"","");} if(kGCplotMCElectronPosNegEta == kTRUE){histograms->AddHistogram("MC_ElectronPosNegEta","",kGCnXBinsEPosNegEta,kGCfirstXBinEPosNegEta,kGClastXBinEPosNegEta,"","") ;} if(kGCplotMCElectronPosNegJPsiAngle == kTRUE){histograms->AddHistogram("MC_ElectronPosNegJPsiAngle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinE PosNegAngle,"","");} if(kGCplotESDePoseNegAngle == kTRUE){histograms->AddHistogram("ESD_eNegePosAngleBeforeCut","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");} if(kGCplotESDePoseNegAngle == kTRUE){histograms->AddHistogram("ESD_eNegePosAngleAfterCut","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");} if(kGCplotESDInvMassGammaePluseMinusChiC == kTRUE) {histograms->AddHistogram("ESD_InvMass_GammaePluseMinusChiC","",kGCnXBinsChicMass,kGCfirstXBinChicMass,kGClastXBinChicMass,"","");} if(kGCplotESDInvMassGammaePluseMinusChiC == kTRUE) {histograms->AddHistogram("ESD_InvMass_GammaePluseMinusChiCDiff","",kGCnXBinsChicMass,kGCfirstXBinChicMass,kGClastXBinChicMass,"","");} if(kGCplotESDInvMassGammaePluseMinusPi0 == kTRUE) {histograms->AddHistogram("ESD_InvMass_GammaePluseMinusPi0","",kGCnXBinsPi0Mass,kGCfirstXBinPi0Mass,kGClastXBinPi0Mass,"","");} if(kGCplotESDElectronPosNegPi0Angle == kTRUE){histograms->AddHistogram("ESD_ElectronPosNegPi0Angle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");} if(kGCplotMCElectronPosNegPi0Angle == kTRUE){histograms->AddHistogram("MC_ElectronPosNegPi0Angle","",kGCnXBinsEPosNegAngle,kGCfirstXBinEPosNegAngle,kGClastXBinEPosNegAngle,"","");} if(kGCplotESDEPosBackground == kTRUE){histograms->AddHistogram("ESD_EPosBackground","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");} if(kGCplotESDEPosBackground == kTRUE){histograms->AddHistogram("ESD_EPosENegNoJPsiBG","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");} if(kGCplotESDENegBackground == kTRUE){histograms->AddHistogram("ESD_ENegBackground","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");} if(kGCplotESDEPosENegBackground == kTRUE){histograms->AddHistogram("ESD_EPosENegBackground","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");} if(kGCplotESDEPosENegBackgroundCut == kTRUE){histograms->AddHistogram("ESD_EPosENegBackgroundCut","",kGCnXBinsEBackgroundCut,kGCfirstXBinEBackgroundCut,kGClastXBinEBackgroundCut,"","");} if(kGCplotESDEPosENegGammaBackgroundMX == kTRUE){histograms->AddHistogram("ESD_EPosENegGammaBackgroundMX","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");} if(kGCplotESDEPosENegGammaBackgroundMX == kTRUE){histograms->AddHistogram("ESD_EPosENegGammaBackgroundMXDiff","",kGCnXBinsEBackground,kGCfirstXBinEBackground,kGClastXBinEBackground,"","");} if(kGCplotTableElectrons == kTRUE){ histograms->AddTable("Table_Electrons","",kGCnElementsElectronTable,kGCelectronTable);} }// end kGCrunChic //---------------------------------------------- Neutral Meson --------------------------------------------------------- if(kGCrunNeutralMeson){ if(kGCplotMCConversionR == kTRUE){ histograms->AddHistogram("MC_Conversion_R","Radius of gamma conversion points",kGCnXBinsR, kGCfirstXBinR, kGClastXBinR,"counts","cm");} if(kGCplotMCConversionZR == kTRUE){ histograms->AddHistogram("MC_Conversion_ZR","Radius of gamma conversion points vs Z",kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "cm", "cm");} if(kGCplotMCConversionXY == kTRUE){ histograms->AddHistogram("MC_Conversion_XY","Gamma XY converison point.",kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "cm", "cm");} if(kGCplotMCConversionOpeningAngle == kTRUE){ histograms->AddHistogram("MC_Conversion_OpeningAngle","Opening angle of e+e- pairs from gamma conversion",kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "counts", "cm");} if(kGCplotMCConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("MC_ConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");} if(kGCplotMCConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("MC_ConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");} if(kGCplotMCEEnergy == kTRUE){ histograms->AddHistogram("MC_E_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} if(kGCplotMCEPt == kTRUE){ histograms->AddHistogram("MC_E_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} if(kGCplotMCEEta == kTRUE){ histograms->AddHistogram("MC_E_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotMCEPhi == kTRUE){ histograms->AddHistogram("MC_E_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} if(kGCplotMCENTPCClusters == kTRUE){ histograms->AddHistogram("MC_E_nTPCClusters" ,"" , kGCnXBinsNTPCClusters, kGCfirstXBinNTPCClusters, kGClastXBinNTPCClusters, "", "");} if(kGCplotMCENITSClusters == kTRUE){ histograms->AddHistogram("MC_E_nITSClusters" ,"" , kGCnXBinsNITSClusters, kGCfirstXBinNITSClusters, kGClastXBinNITSClusters, "", "");} if(kGCplotMCPEnergy == kTRUE){ histograms->AddHistogram("MC_P_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} if(kGCplotMCPPt == kTRUE){ histograms->AddHistogram("MC_P_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} if(kGCplotMCPEta == kTRUE){ histograms->AddHistogram("MC_P_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotMCPPhi == kTRUE){ histograms->AddHistogram("MC_P_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} if(kGCplotMCPNTPCClusters == kTRUE){ histograms->AddHistogram("MC_P_nTPCClusters" ,"" , kGCnXBinsNTPCClusters, kGCfirstXBinNTPCClusters, kGClastXBinNTPCClusters, "", "");} if(kGCplotMCPNITSClusters == kTRUE){ histograms->AddHistogram("MC_P_nITSClusters" ,"" , kGCnXBinsNITSClusters, kGCfirstXBinNITSClusters, kGClastXBinNITSClusters, "", "");} if(kGCplotMCallGammaEnergy == kTRUE){ histograms->AddHistogram("MC_allGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} if(kGCplotMCallGammaPt == kTRUE){ histograms->AddHistogram("MC_allGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} if(kGCplotMCallGammaEta == kTRUE){ histograms->AddHistogram("MC_allGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotMCallGammaPhi == kTRUE){ histograms->AddHistogram("MC_allGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} if(kGCplotMCallGammaRapid == kTRUE){ histograms->AddHistogram("MC_allGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} if(kGCplotMCConvGammaEnergy == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} if(kGCplotMCConvGammaPt == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} if(kGCplotMCConvGammaEta == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotMCConvGammaPhi == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} if(kGCplotMCConvGammaRapid == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} if(kGCplotMCConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("MC_ConvGamma_Pt_Eta","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta,"","");} if(kGCplotMCallDirectGammaEnergy == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} if(kGCplotMCallDirectGammaPt == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} if(kGCplotMCallDirectGammaEta == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotMCallDirectGammaPhi == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} if(kGCplotMCallDirectGammaRapid == kTRUE){ histograms->AddHistogram("MC_allDirectGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} if(kGCplotMCConvDirectGammaEnergy == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} if(kGCplotMCConvDirectGammaPt == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} if(kGCplotMCConvDirectGammaEta == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotMCConvDirectGammaPhi == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} if(kGCplotMCConvDirectGammaRapid == kTRUE){ histograms->AddHistogram("MC_ConvDirectGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} if(kGCplotMCMotherEta == kTRUE){ histograms->AddHistogram("MC_Mother_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotMCMotherPhi == kTRUE){ histograms->AddHistogram("MC_Mother_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} if(kGCplotMCMotherRapid == kTRUE){ histograms->AddHistogram("MC_Mother_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} if(kGCplotMCMotherPt == kTRUE){ histograms->AddHistogram("MC_Mother_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} if(kGCplotMCMotherEnergy == kTRUE){ histograms->AddHistogram("MC_Mother_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} if(kGCplotMCMotherMass == kTRUE){ histograms->AddHistogram("MC_Mother_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");} if(kGCplotMCMotherOpeningAngle == kTRUE){ histograms->AddHistogram("MC_Mother_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");} if(kGCplotMCMotherR == kTRUE){ histograms->AddHistogram("MC_Mother_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");} if(kGCplotMCMotherZR == kTRUE){ histograms->AddHistogram("MC_Mother_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");} if(kGCplotMCMotherXY == kTRUE){ histograms->AddHistogram("MC_Mother_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");} if(kGCplotMCMotherPtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotMCMotherPtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} if(kGCplotMCMotherPtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotMCMotherPtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Mother_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} if(kGCplotMCMotherSpectra == kTRUE){ histograms->AddHistogram("MC_Mother_InvMass_vs_Pt" ,"" ,kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra, kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra, "", ""); histograms->AddHistogram("MC_Mother_InvMass_vs_Pt_withinAcceptance" ,"" ,kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra, kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra, "", ""); histograms->AddHistogram("MC_Mother_InvMass_vs_Pt_ConvGamma_withinAcceptance" ,"" ,kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra, kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra, "", ""); } if(kGCplotMCPi0Eta == kTRUE){ histograms->AddHistogram("MC_Pi0_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotMCPi0Rapid == kTRUE){ histograms->AddHistogram("MC_Pi0_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} if(kGCplotMCPi0Phi == kTRUE){ histograms->AddHistogram("MC_Pi0_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} if(kGCplotMCPi0Pt == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} if(kGCplotMCPi0PtFiducial == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Fiducial" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} if(kGCplotMCPi0PtWithinAcceptanceFiducial == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_withinAcceptance_Fiducial" ,"" , kGCnXBinsPt,kGCfirstXBinPt, kGClastXBinPt, "", "");} if(kGCplotMCPi0PtConvGammaWithinAcceptanceFiducial == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_ConvGamma_withinAcceptance_Fiducial","" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} if(kGCplotMCPi0Energy == kTRUE){ histograms->AddHistogram("MC_Pi0_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} if(kGCplotMCPi0Mass == kTRUE){ histograms->AddHistogram("MC_Pi0_Mass" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Mass, kGClastXBinPi0Mass, "", "");} if(kGCplotMCPi0Alpha == kTRUE){ histograms->AddHistogram("MC_Pi0_alpha" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Alpha, kGClastXBinPi0Alpha, "", "");} if(kGCplotMCPi0OpeningAngle == kTRUE){ histograms->AddHistogram("MC_Pi0_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");} if(kGCplotMCPi0R == kTRUE){ histograms->AddHistogram("MC_Pi0_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");} if(kGCplotMCPi0ZR == kTRUE){ histograms->AddHistogram("MC_Pi0_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");} if(kGCplotMCPi0XY == kTRUE){ histograms->AddHistogram("MC_Pi0_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");} if(kGCplotMCPi0PtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotMCPi0PtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} if(kGCplotMCPi0PtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotMCPi0PtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} if(kGCplotMCPi0ZRConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_ZR_ConvGamma_withinAcceptance" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");} if(kGCplotMCPi0SecondaryEta == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotMCPi0SecondaryRapid == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} if(kGCplotMCPi0SecondaryPhi == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} if(kGCplotMCPi0SecondaryPt == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} if(kGCplotMCPi0SecondaryEnergy == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} if(kGCplotMCPi0SecondaryMass == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Mass" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Mass, kGClastXBinPi0Mass, "", "");} if(kGCplotMCPi0SecondaryOpeningAngle == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");} if(kGCplotMCPi0SecondaryR == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");} if(kGCplotMCPi0SecondaryZR == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");} if(kGCplotMCPi0SecondaryXY == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");} if(kGCplotMCPi0SecondaryPtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotMCPi0SecondaryPtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} if(kGCplotMCPi0SecondaryPtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotMCPi0SecondaryPtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Pi0_Secondaries_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} if(kGCplotMCEtaEta == kTRUE){ histograms->AddHistogram("MC_Eta_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotMCEtaRapid == kTRUE){ histograms->AddHistogram("MC_Eta_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} if(kGCplotMCEtaPhi == kTRUE){ histograms->AddHistogram("MC_Eta_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} if(kGCplotMCEtaPt == kTRUE){ histograms->AddHistogram("MC_Eta_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} if(kGCplotMCEtaEnergy == kTRUE){ histograms->AddHistogram("MC_Eta_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} if(kGCplotMCEtaMass == kTRUE){ histograms->AddHistogram("MC_Eta_Mass" ,"" , kGCnXBinsEtaMass, kGCfirstXBinEtaMass, kGClastXBinEtaMass, "", "");} if(kGCplotMCEtaOpeningAngleGamma == kTRUE){ histograms->AddHistogram("MC_Eta_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");} if(kGCplotMCEtaR == kTRUE){ histograms->AddHistogram("MC_Eta_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");} if(kGCplotMCEtaZR == kTRUE){ histograms->AddHistogram("MC_Eta_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");} if(kGCplotMCEtaXY == kTRUE){ histograms->AddHistogram("MC_Eta_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");} if(kGCplotMCEtaPtvsEtaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Eta_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotMCEtaPtvsRapidWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Rapid_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} if(kGCplotMCEtaPtvsEtaConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Eta_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotMCEtaPtvsRapidConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_Pt_Rapid_ConvGamma_withinAcceptance" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} if(kGCplotMCEtaZRConvGammaWithinAcceptance == kTRUE){ histograms->AddHistogram("MC_Eta_ZR_ConvGamma_withinAcceptance" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");} // Histograms from esd tracks if(kGCplotESDEEnergy == kTRUE){ histograms->AddHistogram("ESD_E_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} if(kGCplotESDEPt == kTRUE){ histograms->AddHistogram("ESD_E_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} if(kGCplotESDEEta == kTRUE){ histograms->AddHistogram("ESD_E_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotESDEPhi == kTRUE){ histograms->AddHistogram("ESD_E_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} if(kGCplotESDENTPCClusters == kTRUE){ histograms->AddHistogram("ESD_E_nTPCClusters" ,"" , kGCnXBinsNTPCClusters, kGCfirstXBinNTPCClusters, kGClastXBinNTPCClusters, "", "");} if(kGCplotESDENITSClusters == kTRUE){ histograms->AddHistogram("ESD_E_nITSClusters" ,"" , kGCnXBinsNITSClusters, kGCfirstXBinNITSClusters, kGClastXBinNITSClusters, "", "");} if(kGCplotESDPEnergy == kTRUE){ histograms->AddHistogram("ESD_P_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} if(kGCplotESDPPt == kTRUE){ histograms->AddHistogram("ESD_P_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} if(kGCplotESDPEta == kTRUE){ histograms->AddHistogram("ESD_P_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotESDPPhi == kTRUE){ histograms->AddHistogram("ESD_P_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} if(kGCplotESDPNTPCClusters == kTRUE){ histograms->AddHistogram("ESD_P_nTPCClusters" ,"" , kGCnXBinsNTPCClusters, kGCfirstXBinNTPCClusters, kGClastXBinNTPCClusters, "", "");} if(kGCplotESDPNITSClusters == kTRUE){ histograms->AddHistogram("ESD_P_nITSClusters" ,"" , kGCnXBinsNITSClusters, kGCfirstXBinNITSClusters, kGClastXBinNITSClusters, "", "");} if(kGCplotESDConvGammaEnergy == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} if(kGCplotESDConvGammaPt == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} if(kGCplotESDConvGammaEta == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotESDConvGammaPhi == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} if(kGCplotESDConvGammaMass == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");} if(kGCplotESDConvGammaWidth == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Width" ,"" , kGCnXBinsGammaWidth, kGCfirstXBinGammaWidth, kGClastXBinGammaWidth, "", "");} if(kGCplotESDConvGammaChi2 == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Chi2" ,"" , kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");} if(kGCplotESDConvGammaNDF == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_NDF" ,"" , kGCnXBinsGammaNDF, kGCfirstXBinGammaNDF, kGClastXBinGammaNDF, "", "");} if(kGCplotESDConvGammaRapid == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} if(kGCplotESDConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Pt_Eta","", kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta,"","" );} if(kGCplotESDConvGammaPtvsChi2 == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Pt_Chi2" ,"" ,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");} if(kGCplotESDConvGammaEtavsChi2 == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_Eta_Chi2" ,"" ,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");} if(kGCplotESDConversionR == kTRUE){ histograms->AddHistogram("ESD_Conversion_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");} if(kGCplotESDConversionZR == kTRUE){ histograms->AddHistogram("ESD_Conversion_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");} if(kGCplotESDConversionXY == kTRUE){ histograms->AddHistogram("ESD_Conversion_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");} if(kGCplotESDConversionOpeningAngle == kTRUE){ histograms->AddHistogram("ESD_Conversion_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");} if(kGCplotESDConvGammaCosPointingAngle == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_CosPointingAngle" ,"" , kGCnXBinsCosPointingAngle, kGCfirstXBinCosPointingAngle, kGClastXBinCosPointingAngle, "", "");} if(kGCplotESDConvGammaDcaDaugthers == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_DcaDaughters" ,"" , kGCnXBinsDcaDaughters, kGCfirstXBinDcaDaughters, kGClastXBinDcaDaughters, "", "");} if(kGCplotESDConvGammaNormDcaDistDaugthers == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_NormDcaDistDaughters" ,"" , kGCnXBinsNormDcaDistDaughters, kGCfirstXBinNormDcaDistDaughters, kGClastXBinNormDcaDistDaughters, "", "");} if(kGCplotESDConvGammaLikelihoodAP == kTRUE){ histograms->AddHistogram("ESD_ConvGamma_LikelihoodAP" ,"" , kGCnXBinsLikelihoodAP, kGCfirstXBinLikelihoodAP, kGClastXBinLikelihoodAP, "", "");} if(kGCplotESDConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");} if(kGCplotESDConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");} if(kGCplotESDConvGammaEdEdxP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_E_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");} if(kGCplotESDConvGammaPdEdxP== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_P_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");} if(kGCplotESDConvGammaQtAlfa== kTRUE){ histograms->AddHistogram("ESD_ConvGamma_alfa_qt" ,"" ,kGCnXBinsP, kGCfirstXBinAlpha, kGClastXBinAlpha,kGCnYBinsQt, kGCfirstYBinQt, kGClastYBinQt,"", "");} if(kGCplotESDTrueDalitzContaminationR == kTRUE){ histograms->AddHistogram("ESD_TrueDalitzContamination_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");} if(kGCplotESDTrueConvGammaEnergy == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} if(kGCplotESDTrueConvGammaPt == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} if(kGCplotESDTrueConvGammaEta == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotESDTrueConvGammaPhi == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} if(kGCplotESDTrueConvGammaMass == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");} if(kGCplotESDTrueConvGammaWidth == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Width" ,"" , kGCnXBinsGammaWidth, kGCfirstXBinGammaWidth, kGClastXBinGammaWidth, "", "");} if(kGCplotESDTrueConvGammaChi2 == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Chi2" ,"" , kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");} if(kGCplotESDTrueConvGammaNDF == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_NDF" ,"" , kGCnXBinsGammaNDF, kGCfirstXBinGammaNDF, kGClastXBinGammaNDF, "", "");} if(kGCplotESDTrueConvGammaRapid == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} if(kGCplotESDTrueConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotESDTrueConvGammaPtvsChi2 == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Pt_Chi2" ,"" ,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");} if(kGCplotESDTrueConvGammaEtavsChi2 == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_Eta_Chi2" ,"" ,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");} if(kGCplotESDTrueConversionR == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");} if(kGCplotESDTrueConversionZR == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");} if(kGCplotESDTrueConversionXY == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");} if(kGCplotESDTrueConversionOpeningAngle == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");} if(kGCplotESDTrueConvGammaCosPointingAngle == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_CosPointingAngle" ,"" , kGCnXBinsCosPointingAngle, kGCfirstXBinCosPointingAngle, kGClastXBinCosPointingAngle, "", "");} if(kGCplotESDTrueConvGammaDcaDaugthers == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_DcaDaughters" ,"" , kGCnXBinsDcaDaughters, kGCfirstXBinDcaDaughters, kGClastXBinDcaDaughters, "", "");} if(kGCplotESDTrueConvGammaNormDcaDistDaugthers == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_NormDcaDistDaughters" ,"" , kGCnXBinsNormDcaDistDaughters, kGCfirstXBinNormDcaDistDaughters, kGClastXBinNormDcaDistDaughters, "", "");} if(kGCplotESDTrueConvGammaLikelihoodAP == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_LikelihoodAP" ,"" , kGCnXBinsLikelihoodAP, kGCfirstXBinLikelihoodAP, kGClastXBinLikelihoodAP, "", "");} if(kGCplotESDTrueConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");} if(kGCplotESDTrueConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");} if(kGCplotESDTrueConvGammaEdEdxP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_E_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");} if(kGCplotESDTrueConvGammaPdEdxP== kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_P_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");} if(kGCplotESDTrueConvGammaMCPtEta == kTRUE){ histograms->AddHistogram("ESD_TrueConvGamma_MC_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotESDTrueConversionMCZR == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_MC_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");} if(kGCplotESDTrueConversionMCXY == kTRUE){ histograms->AddHistogram("ESD_TrueConversion_MC_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");} if(kGCplotESDNoCutConvGammaEnergy == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} if(kGCplotESDNoCutConvGammaPt == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} if(kGCplotESDNoCutConvGammaEta == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotESDNoCutConvGammaPhi == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} if(kGCplotESDNoCutConvGammaMass == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Mass" ,"" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass, "", "");} if(kGCplotESDNoCutConvGammaWidth == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Width" ,"" , kGCnXBinsGammaWidth, kGCfirstXBinGammaWidth, kGClastXBinGammaWidth, "", "");} if(kGCplotESDNoCutConvGammaChi2 == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Chi2" ,"" , kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");} if(kGCplotESDNoCutConvGammaNDF == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_NDF" ,"" , kGCnXBinsGammaNDF, kGCfirstXBinGammaNDF, kGClastXBinGammaNDF, "", "");} if(kGCplotESDNoCutConvGammaRapid == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} if(kGCplotESDNoCutConvGammaPtvsEta == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotESDNoCutConvGammaPtvsChi2 == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Pt_Chi2" ,"" ,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");} if(kGCplotESDNoCutConvGammaEtavsChi2 == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_Eta_Chi2" ,"" ,kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, kGCnXBinsGammaChi2, kGCfirstXBinGammaChi2, kGClastXBinGammaChi2, "", "");} if(kGCplotESDNoCutConversionR == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");} if(kGCplotESDNoCutConversionZR == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");} if(kGCplotESDNoCutConversionXY == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");} if(kGCplotESDNoCutConversionOpeningAngle == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");} if(kGCplotESDNoCutConvGammaCosPointingAngle == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_CosPointingAngle" ,"" , kGCnXBinsCosPointingAngle, kGCfirstXBinCosPointingAngle, kGClastXBinCosPointingAngle, "", "");} if(kGCplotESDNoCutConvGammaDcaDaugthers == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_DcaDaughters" ,"" , kGCnXBinsDcaDaughters, kGCfirstXBinDcaDaughters, kGClastXBinDcaDaughters, "", "");} if(kGCplotESDNoCutConvGammaNormDcaDistDaugthers == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_NormDcaDistDaughters" ,"" , kGCnXBinsNormDcaDistDaughters, kGCfirstXBinNormDcaDistDaughters, kGClastXBinNormDcaDistDaughters, "", "");} if(kGCplotESDNoCutConvGammaLikelihoodAP == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_LikelihoodAP" ,"" , kGCnXBinsLikelihoodAP, kGCfirstXBinLikelihoodAP, kGClastXBinLikelihoodAP, "", "");} if(kGCplotESDNoCutConvGammaEAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_E_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");} if(kGCplotESDNoCutConvGammaPAsymmetryP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_P_AsymmetryP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsAsymmetry, kGCfirstYBinAsymmetry, kGClastYBinAsymmetry,"", "");} if(kGCplotESDNoCutConvGammaEdEdxP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_E_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");} if(kGCplotESDNoCutConvGammaPdEdxP== kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_P_dEdxP" ,"" ,kGCnXBinsP, kGCfirstXBinP, kGClastXBinP,kGCnYBinsdEdx, kGCfirstYBindEdx, kGClastYBindEdx,"", "");} if(kGCplotESDNoCutConvGammaMCPtEta == kTRUE){ histograms->AddHistogram("ESD_NoCutConvGamma_MC_Pt_Eta" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotESDNoCutConversionMCZR == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_MC_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");} if(kGCplotESDNoCutConversionMCXY == kTRUE){ histograms->AddHistogram("ESD_NoCutConversion_MC_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");} if(kGCplotESDMotherOpeningAngleGamma == kTRUE){ histograms->AddHistogram("ESD_Mother_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");} if(kGCplotESDMotherEnergy == kTRUE){ histograms->AddHistogram("ESD_Mother_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} if(kGCplotESDMotherPt == kTRUE){ histograms->AddHistogram("ESD_Mother_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} if(kGCplotESDMotherEta == kTRUE){ histograms->AddHistogram("ESD_Mother_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotESDMotherPhi == kTRUE){ histograms->AddHistogram("ESD_Mother_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} if(kGCplotESDMotherMass == kTRUE){ histograms->AddHistogram("ESD_Mother_Mass" ,"" , kGCnXBinsPi0Mass, kGCfirstXBinPi0Mass, kGClastXBinPi0Mass, "", "");} if(kGCplotESDMotherR == kTRUE){ histograms->AddHistogram("ESD_Mother_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");} if(kGCplotESDMotherZR == kTRUE){ histograms->AddHistogram("ESD_Mother_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");} if(kGCplotESDMotherXY == kTRUE){ histograms->AddHistogram("ESD_Mother_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");} if(kGCplotESDMotherRapid == kTRUE){ histograms->AddHistogram("ESD_Mother_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} for(Int_t z=0;z<8;z++){ for(Int_t m=0;m<4;m++){ if(kGCplotESDBackgroundOpeningAngleGamma == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_GammaDaughter_OpeningAngle",z,m) ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");} if(kGCplotESDBackgroundEnergy == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Energy",z,m) ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} if(kGCplotESDBackgroundPt == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Pt",z,m) ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} if(kGCplotESDBackgroundEta == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Eta",z,m) ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotESDBackgroundPhi == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Phi",z,m) ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} if(kGCplotESDBackgroundMass == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Mass",z,m) ,"" , kGCnXBinsEtaMass, kGCfirstXBinEtaMass, kGClastXBinEtaMass, "", "");} if(kGCplotESDBackgroundR == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_R",z,m) ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");} if(kGCplotESDBackgroundZR == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_ZR",z,m) ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");} if(kGCplotESDBackgroundXY == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_XY",z,m) ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");} if(kGCplotESDBackgroundRapid == kTRUE){ histograms->AddHistogram(Form("%d%dESD_Background_Rapid",z,m) ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} } } if(kGCplotESDBackgroundOpeningAngleGamma == kTRUE){ histograms->AddHistogram("ESD_Background_GammaDaughter_OpeningAngle" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", "");} if(kGCplotESDBackgroundEnergy == kTRUE){ histograms->AddHistogram("ESD_Background_Energy" ,"" , kGCnXBinsEnergy, kGCfirstXBinEnergy, kGClastXBinEnergy, "", "");} if(kGCplotESDBackgroundPt == kTRUE){ histograms->AddHistogram("ESD_Background_Pt" ,"" , kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt, "", "");} if(kGCplotESDBackgroundEta == kTRUE){ histograms->AddHistogram("ESD_Background_Eta" ,"" , kGCnXBinsEta, kGCfirstXBinEta, kGClastXBinEta, "", "");} if(kGCplotESDBackgroundPhi == kTRUE){ histograms->AddHistogram("ESD_Background_Phi" ,"" , kGCnXBinsPhi, kGCfirstXBinPhi, kGClastXBinPhi, "", "");} if(kGCplotESDBackgroundMass == kTRUE){ histograms->AddHistogram("ESD_Background_Mass" ,"" , kGCnXBinsEtaMass, kGCfirstXBinEtaMass, kGClastXBinEtaMass, "", "");} if(kGCplotESDBackgroundR == kTRUE){ histograms->AddHistogram("ESD_Background_R" ,"" , kGCnXBinsR, kGCfirstXBinR, kGClastXBinR, "", "");} if(kGCplotESDBackgroundZR == kTRUE){ histograms->AddHistogram("ESD_Background_ZR" ,"" , kGCnXBinsZR, kGCfirstXBinZR, kGClastXBinZR, kGCnYBinsZR, kGCfirstYBinZR, kGClastYBinZR, "", "");} if(kGCplotESDBackgroundXY == kTRUE){ histograms->AddHistogram("ESD_Background_XY" ,"" , kGCnXBinsXY, kGCfirstXBinXY, kGClastXBinXY, kGCnYBinsXY, kGCfirstYBinXY, kGClastYBinXY, "", "");} if(kGCplotESDBackgroundRapid == kTRUE){ histograms->AddHistogram("ESD_Background_Rapid" ,"" , kGCnXBinsRapid, kGCfirstXBinRapid, kGClastXBinRapid, "", "");} if(kGCplotMapping == kTRUE){ histograms->InitializeMappingValues(kGCnPhiIndex,kGCnRIndex,kGCnXBinsMapping,kGCminRadius,kGCmaxRadius,kGCnYBinsMapping,kGCminPhi,kGCmaxPhi); histograms->AddMappingHistograms(kGCnPhiIndex,kGCnRIndex,kGCnXBinsMapping,kGCfirstXBinMapping,kGClastXBinMapping,kGCnYBinsMapping,kGCfirstYBinMapping,kGClastYBinMapping); // histograms->AddMappingHistograms(kGCnPhiIndex,kGCnRIndex,kGCnXBinsMapping,kGCminRadius,kGCmaxRadius,kGCnYBinsMapping,kGCminPhi,kGCmaxPhi); } if(kGCplotResolutiondRAbs== kTRUE){histograms->AddHistogram("Resolution_dRAbs_VS_R","" ,kGCnXBinsResdR, kGCfirstXBinResdR, kGClastXBinResdR,kGCnYBinsResdR,kGCfirstYBinResdR, kGClastYBinResdR, "", "");} if(kGCplotResolutiondZAbs== kTRUE){histograms->AddHistogram("Resolution_dZAbs_VS_R","" ,kGCnXBinsResdR, kGCfirstXBinResdR, kGClastXBinResdR,kGCnYBinsResdR,kGCfirstYBinResdR, kGClastYBinResdR, "", "");} if(kGCplotResolutiondPhiAbs== kTRUE){histograms->AddHistogram("Resolution_dPhiAbs_VS_R","" ,kGCnXBinsResdR, kGCfirstXBinResdR, kGClastXBinResdR,kGCnYBinsResdR, -TMath::Pi()/30., TMath::Pi()/30., "", "");} if(kGCplotResolutiondPt == kTRUE){histograms->AddHistogram("Resolution_dPt" ,"" , kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", "");} if(kGCplotResolutiondR == kTRUE){histograms->AddHistogram("Resolution_dR" ,"" , kGCnXBinsResdR, kGCfirstXBinResdR, kGClastXBinResdR, kGCnYBinsResdR, kGCfirstYBinResdR, kGClastYBinResdR, "", "");} if(kGCplotResolutiondZ == kTRUE){histograms->AddHistogram("Resolution_dZ" ,"" , kGCnXBinsResdZ, kGCfirstXBinResdZ, kGClastXBinResdZ, kGCnYBinsResdZ, kGCfirstYBinResdZ, kGClastYBinResdZ, "", "");} if(kGCplotResolutiondRdPt == kTRUE){histograms->AddHistogram("Resolution_dR_dPt" ,"" , kGCnXBinsResdRdPt, kGCfirstXBinResdRdPt, kGClastXBinResdRdPt, kGCnYBinsResdRdPt, kGCfirstYBinResdRdPt, kGClastYBinResdRdPt, "", "");} if(kGCplotResolutionMCPt == kTRUE){histograms->AddHistogram("Resolution_MC_Pt" ,"" , kGCnXBinsResPt, kGCfirstXBinResPt, kGClastXBinResPt,"","");} if(kGCplotResolutionMCR == kTRUE){histograms->AddHistogram("Resolution_MC_R" ,"" , kGCnXBinsResR, kGCfirstXBinResR, kGClastXBinResR,"","");} if(kGCplotResolutionMCZ == kTRUE){histograms->AddHistogram("Resolution_MC_Z" ,"" , kGCnXBinsResZ, kGCfirstXBinResZ, kGClastXBinResZ,"","");} if(kGCplotResolutionESDPt == kTRUE){histograms->AddHistogram("Resolution_ESD_Pt" ,"" , kGCnXBinsResPt, kGCfirstXBinResPt, kGClastXBinResPt,"","");} if(kGCplotResolutionESDR == kTRUE){histograms->AddHistogram("Resolution_ESD_R" ,"" , kGCnXBinsResR, kGCfirstXBinResR, kGClastXBinResR,"","");} if(kGCplotResolutionESDZ == kTRUE){histograms->AddHistogram("Resolution_ESD_Z" ,"" , kGCnXBinsResZ, kGCfirstXBinResZ, kGClastXBinResZ,"","");} if(kGCplotResolutionPtdPt = kTRUE){ histograms->AddHistogram("Resolution_Gamma_dPt_Pt" ,"" , kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", ""); histograms->AddHistogram("Resolution_E_dPt_Pt" ,"" , kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", ""); histograms->AddHistogram("Resolution_P_dPt_Pt" ,"" , kGCnXBinsResdPt, kGCfirstXBinResdPt, kGClastXBinResdPt, kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", ""); histograms->AddHistogram("Resolution_Gamma_dPt_Phi" ,"" , kGCnYBinsResdR, -TMath::Pi(), TMath::Pi(), kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", ""); histograms->AddHistogram("Resolution_E_dPt_Pt" ,"" , kGCnYBinsResdR, -TMath::Pi(), TMath::Pi(), kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", ""); histograms->AddHistogram("Resolution_P_dPt_Phi" ,"" , kGCnYBinsResdR, -TMath::Pi(), TMath::Pi(), kGCnYBinsResdPt, kGCfirstYBinResdPt, kGClastYBinResdPt, "", ""); } if(kGCplotESDNumberOfV0s == kTRUE){histograms->AddHistogram("ESD_NumberOfV0s","Number of v0s",100, -0.5, 99.5,"","");} if(kGCplotESDNumberOfSurvivingV0s == kTRUE){histograms->AddHistogram("ESD_NumberOfSurvivingV0s","Number of surviving v0s",100, -0.5, 99.5,"","");} if(kGCplotESDNumberOfContributorsVtx == kTRUE){histograms->AddHistogram("ESD_NumberOfContributorsVtx","Number of contributors to vertex",100, -0.5, 99.5,"","");} if(kGCplotESDNumberOfGoodESDTracks == kTRUE){histograms->AddHistogram("ESD_NumberOfGoodESDTracks","Number of Good ESD tracks",100, -0.5, 99.5,"","");} // debug histograms if(kGCplotESDCutGetOnFly == kTRUE){histograms->AddHistogram("ESD_CutGetOnFly_InvMass" ,"Not GetOnFly" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} if(kGCplotESDCutNContributors == kTRUE){histograms->AddHistogram("ESD_CutNContributors_InvMass" ,"NContributors <= 0" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} if(kGCplotESDCutLikeSign == kTRUE){histograms->AddHistogram("ESD_CutLikeSign_InvMass" ,"LikeSign" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} if(kGCplotESDCutRefit == kTRUE){histograms->AddHistogram("ESD_CutRefit_InvMass" ,"No TPC refit" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} if(kGCplotESDCutKink == kTRUE){histograms->AddHistogram("ESD_CutKink_InvMass" ,"Kinks" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} if(kGCplotESDCutPIDProb == kTRUE){histograms->AddHistogram("ESD_CutPIDProb_InvMass" ,"wrong TPC PID" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} if(kGCplotESDCutdedxSigmaElectronLine == kTRUE){histograms->AddHistogram("ESD_CutdEdxSigmaElectronLine_InvMass" ,"dedx ElectronLine" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} if(kGCplotESDCutdedxSigmaPionLine == kTRUE){histograms->AddHistogram("ESD_CutdEdxSigmaPionLine_InvMass" ,"dedx PionLine" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} if(kGCplotESDCutR == kTRUE){histograms->AddHistogram("ESD_CutR_InvMass" ,"Above RMax" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} if(kGCplotESDCutNDF == kTRUE){histograms->AddHistogram("ESD_CutNDF_InvMass" ,"NDF <= 0" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} if(kGCplotESDCutChi2 == kTRUE){histograms->AddHistogram("ESD_CutChi2_InvMass" ,"#chi^{2} > Max" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} if(kGCplotESDCutEta == kTRUE){histograms->AddHistogram("ESD_CutEta_InvMass" ,"Above #eta max" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} if(kGCplotESDCutPt == kTRUE){histograms->AddHistogram("ESD_CutPt_InvMass" ,"Below p_{t} min" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} if(kGCplotESDCutLine == kTRUE){histograms->AddHistogram("ESD_CutLine_InvMass" ,"Out of reconstruction area" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} if(kGCplotESDCutZ == kTRUE){histograms->AddHistogram("ESD_CutZ_InvMass" ,"Out of reconstruction area" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} if(kGCplotESDCutMinClsTPC == kTRUE){histograms->AddHistogram("ESD_CutMinNClsTPC_InvMass" ,"Out of reconstruction area" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} if(kGCplotESDGoodV0s == kTRUE){histograms->AddHistogram("ESD_GoodV0s_InvMass" ,"Good V0s" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} if(kGCplotESDAllV0s == kTRUE){histograms->AddHistogram("ESD_AllV0s_InvMass" ,"All V0s" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} if(kGCplotESDAllV0sCurrentFinder == kTRUE){histograms->AddHistogram("ESD_AllV0sCurrentFinder_InvMass" ,"All V0s Current Finder" , kGCnXBinsGammaMass, kGCfirstXBinGammaMass, kGClastXBinGammaMass,"","");} if(kGCplotESDAllV0sCurrentFinderQtAlfa== kTRUE){ histograms->AddHistogram("ESD_AllV0sCurrentFinder_alfa_qt" ,"" ,kGCnXBinsP, kGCfirstXBinAlpha, kGClastXBinAlpha,kGCnYBinsQt, kGCfirstYBinQt, kGClastYBinQt,"", "");} if(kGCplotESDTrueConvGammaTrackLength == kTRUE){histograms->AddHistogram("ESD_TrueConvGamma_TrackLength","Track length of TrueConvGamma",kGCnXBinsTrackLength,kGCfirstXBinTrackLength,kGClastXBinTrackLength,"","");} if(kGCplotESDTrueConvGammaTrackLengthVSInvMass == kTRUE){histograms->AddHistogram("ESD_TrueConvGamma_TrackLengthVSInvMass","Track length of TrueConvGamma vs Inv mass",kGCnXBinsTrackLength,kGCfirstXBinTrackLength,kGClastXBinTrackLength,kGCnXBinsPt, kGCfirstXBinPt, kGClastXBinPt,"","");} if(kGCplotOmegaSpectra == kTRUE){ histograms->AddHistogram("ESD_Omega_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]"); histograms->AddHistogram("ESD_Omega_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts"); histograms->AddHistogram("ESD_Omega_Bck_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]"); histograms->AddHistogram("ESD_Omega_Bck_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts"); histograms->AddHistogram("ESD_OmegaPipPinPi0_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]"); histograms->AddHistogram("ESD_OmegaPipPinPi0_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts"); } if(kGCplotPi0Spectra == kTRUE){ histograms->AddHistogram("ESD_Mother_alfa","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinAlpha, kGClastXBinAlpha,"#alfa","Counts"); histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]"); histograms->AddHistogram("ESD_Mother_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts"); histograms->AddHistogram("ESD_Mother_InvMass_1212","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts"); histograms->AddHistogram("ESD_Mother_InvMass_0912","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts"); histograms->AddHistogram("ESD_Mother_InvMass_0909","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts"); histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt1212" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]"); histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt0912" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]"); histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt0909" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]"); histograms->AddHistogram("ESD_Mother_InvMass_GammaConvPHOS","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts"); histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt_GammaConvPHOS" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]"); histograms->AddHistogram("ESD_Mother_InvMass_GammaConvPHOS_OpanLow","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts"); histograms->AddHistogram("ESD_Mother_InvMass_GammaConvPHOS_OpanHigh","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts"); histograms->AddHistogram("ESD_Mother_InvMass_GammaConvEMCAL","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts"); histograms->AddHistogram("ESD_Mother_InvMass_GammaConvEMCAL_Bck","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts"); histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt_GammaConvEMCAL" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]"); histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt_GammaConvEMCAL_Bck" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]"); histograms->AddHistogram("ESD_Mother_InvMass_GammaConvEMCAL_OpanLow","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts"); histograms->AddHistogram("ESD_Mother_InvMass_GammaConvEMCAL_OpanHigh","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts"); // if(kGCdoNeutralMesonV0MCCheck == kTRUE){ histograms->AddHistogram("ESD_TruePi0_InvMass","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts"); histograms->AddHistogram("ESD_TruePi0_InvMass_1212","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts"); histograms->AddHistogram("ESD_TruePi0_InvMass_0912","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts"); histograms->AddHistogram("ESD_TruePi0_InvMass_0909","Invariant mass",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts"); histograms->AddHistogram("ESD_TruePi0_OpeningAngle_1212" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", ""); histograms->AddHistogram("ESD_TruePi0_OpeningAngle_0912" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", ""); histograms->AddHistogram("ESD_TruePi0_OpeningAngle_0909" ,"" , kGCnXBinsOpeningAngle, kGCfirstXBinOpeningAngle, kGClastXBinOpeningAngle, "", ""); histograms->AddHistogram("ESD_TruePi0_InvMass_vs_Pt" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]"); histograms->AddHistogram("ESD_TruePi0_InvMass_vs_Pt1212" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]"); histograms->AddHistogram("ESD_TruePi0_InvMass_vs_Pt0912" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]"); histograms->AddHistogram("ESD_TruePi0_InvMass_vs_Pt0909" ,"Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]"); //} histograms->AddHistogram("ESD_Mother_InvMass_vs_Pt_Fiducial" ,"Invariant Mass vs Pt |eta|<0.9" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]"); histograms->AddHistogram("ESD_Mother_InvMass_Fiducial","Invariant mass |eta|<0.9",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass [GeV]","Counts"); } if(kGCplotPi0Spectra == kTRUE && kGCcalculateBackground == kTRUE){ for(Int_t z=0;z<8;z++){ for(Int_t m=0;m<4;m++){ histograms->AddHistogram(Form("%d%dESD_Background_InvMass_vs_Pt",z,m) ,"Background Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]"); histograms->AddHistogram(Form("%d%dESD_Background_InvMass",z,m),"Invariant mass background",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts"); histograms->AddHistogram(Form("%d%dESD_Background_InvMassvsPtFid",z,m) ,"Background Invariant Mass vs Pt |eta|<0.9" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]"); histograms->AddHistogram(Form("%d%dESD_Background_InvMass_Fiducial",z,m),"Invariant mass background |eta|<0.9",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts"); } } histograms->AddHistogram("ESD_Background_InvMass_vs_Pt" ,"Background Invariant Mass vs Pt" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]"); histograms->AddHistogram("ESD_Background_InvMass","Invariant mass background",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts"); histograms->AddHistogram("ESD_Background_InvMass_vs_Pt_Fiducial" ,"Background Invariant Mass vs Pt |eta|<0.9" , kGCnXBinsSpectra, kGCfirstXBinSpectra, kGClastXBinSpectra,kGCnYBinsSpectra, kGCfirstYBinSpectra, kGClastYBinSpectra,"InvMass [GeV]","Pt [GeV]"); histograms->AddHistogram("ESD_Background_InvMass_Fiducial","Invariant mass background |eta|<0.9",kGCnXBinsSpectra,kGCfirstXBinSpectra, kGClastXBinSpectra,"InvMass BG [GeV]","Counts"); } }// end kGCrunNeutralMeson //--------------------------------------------------- 2 gamma Background ------------------------------------------------------- if(kGCcalculateBackground==kTRUE){ histograms->AddHistogram("ESD_Z_distribution" ,"Z primary vertex" , 2000, -30, 30,"Z[cm]","counts"); histograms->AddHistogram("ESD_multiplicity_distribution" ,"multiplicity distribution" , 300, 0, 300,"counts","Multiplicity"); histograms->AddHistogram("ESD_ZvsMultiplicity" ,"Z vs Multiplicity" , 1000, -10, 10,300,0,300,"Z[cm]","Multiplicity"); } } Int_t SetAnalysisCutSelection(TString analysisCutSelection){ Int_t iResult=0; // set the cuts depending on the Cut Selection Id // first number is dummy always set to 9 const char* cutSelection = analysisCutSelection.Data(); cout<<"cutSelection is: "<