@@ -19,6 +19,7 @@ R__ADD_INCLUDE_PATH($ALICE_PHYSICS)
1919#include "OADB/macros/AddTaskPhysicsSelection.C" // NOLINT
2020#include "ANALYSIS/macros/AddTaskPIDResponse.C" // NOLINT
2121#include "RUN3/AddTaskAO2Dconverter.C" // NOLINT
22+ #include "PWGGA/GammaConv/macros/AddTask_V0Reader.C" // NOLINT
2223
2324#include "utilitiesAli.h"
2425
@@ -52,9 +53,29 @@ Long64_t convertAO2D(TString listoffiles, bool isMC = 1, bool useAliEvCuts = fal
5253 AddTaskMultSelection ();
5354 AddTaskPhysicsSelection (isMC );
5455 AddTaskPIDResponse ();
56+
57+ // V0Reader related stuff
58+ Int_t isHeavyIon = 0 ;
59+ TString periodNameV0Reader = "LHC17p" ;
60+ TString cutnumberEvent = "00000003" ;
61+ if (isHeavyIon == 1 )
62+ cutnumberEvent = "10000003" ;
63+ else if (isHeavyIon == 2 )
64+ cutnumberEvent = "80000003" ;
65+ else if (isHeavyIon == 29 )//UPC
66+ cutnumberEvent = "100c0003" ;
67+ TString conversionPhotonCutnumber = "00000008400000001100000000" ;
68+ AddTask_V0Reader (periodNameV0Reader , kFALSE , 0 , kTRUE , isHeavyIon , cutnumberEvent + "_" + conversionPhotonCutnumber , conversionPhotonCutnumber );
69+
5570 if (isMC && isESD )
5671 AliMCEventHandler * handlerMC = AddMCHandler ();
5772 AliAnalysisTaskAO2Dconverter * converter = AddTaskAO2Dconverter ("" );
73+ converter -> SetTruncation (true);
74+ converter -> SetCompression (501 );
75+ converter -> SetMaxBytes (250000000 );
76+ converter -> SetEMCALAmplitudeThreshold (0.075 );
77+ converter -> SetConversionCut (conversionPhotonCutnumber );
78+ converter -> SetDeltaAODBranchName (Form ("GammaConv_%s_%s_gamma" ,cutnumberEvent .Data (), conversionPhotonCutnumber .Data ()));
5879 // converter->SelectCollisionCandidates(AliVEvent::kAny);
5980 if (useAliEvCuts )
6081 converter -> SetUseEventCuts (kTRUE );
0 commit comments