1212R__ADD_INCLUDE_PATH ($ALICE_ROOT )
1313R__ADD_INCLUDE_PATH ($ALICE_PHYSICS )
1414
15+ #include <iostream>
16+
1517#include "ANALYSIS/macros/train/AddESDHandler.C" // NOLINT
1618#include "ANALYSIS/macros/train/AddAODHandler.C" // NOLINT
1719#include "ANALYSIS/macros/train/AddMCHandler.C" // NOLINT
1820#include "OADB/COMMON/MULTIPLICITY/macros/AddTaskMultSelection.C" // NOLINT
1921#include "OADB/macros/AddTaskPhysicsSelection.C" // NOLINT
2022#include "ANALYSIS/macros/AddTaskPIDResponse.C" // NOLINT
2123#include "RUN3/AddTaskAO2Dconverter.C" // NOLINT
24+ #include "PWGGA/GammaConv/macros/AddTask_V0Reader.C" // NOLINT
2225
2326#include "utilitiesAli.h"
2427
@@ -40,8 +43,8 @@ Long64_t convertAO2D(TString listoffiles, bool isMC = 1, bool useAliEvCuts = fal
4043 ULong64_t nentries = chain -> GetEntries ();
4144 if (nmaxevents != -1 )
4245 nentries = nmaxevents ;
43- cout << nentries << " entries in the chain." << endl ;
44- cout << nentries << " converted" << endl ;
46+ std :: cout << nentries << " entries in the chain." << endl ;
47+ std :: cout << nentries << " converted" << endl ;
4548 AliAnalysisManager * mgr = new AliAnalysisManager ("AOD converter" );
4649 if (isESD ) {
4750 AddESDHandler ();
@@ -52,9 +55,29 @@ Long64_t convertAO2D(TString listoffiles, bool isMC = 1, bool useAliEvCuts = fal
5255 AddTaskMultSelection ();
5356 AddTaskPhysicsSelection (isMC );
5457 AddTaskPIDResponse ();
58+
59+ // V0Reader related stuff
60+ Int_t isHeavyIon = 0 ;
61+ TString periodNameV0Reader = "LHC17p" ;
62+ TString cutnumberEvent = "00000003" ;
63+ if (isHeavyIon == 1 )
64+ cutnumberEvent = "10000003" ;
65+ else if (isHeavyIon == 2 )
66+ cutnumberEvent = "80000003" ;
67+ else if (isHeavyIon == 29 ) // UPC
68+ cutnumberEvent = "100c0003" ;
69+ TString conversionPhotonCutnumber = "00000008400000001100000000" ;
70+ AddTask_V0Reader (periodNameV0Reader , kFALSE , 0 , kTRUE , isHeavyIon , cutnumberEvent + "_" + conversionPhotonCutnumber , conversionPhotonCutnumber );
71+
5572 if (isMC && isESD )
5673 AliMCEventHandler * handlerMC = AddMCHandler ();
5774 AliAnalysisTaskAO2Dconverter * converter = AddTaskAO2Dconverter ("" );
75+ converter -> SetTruncation (true);
76+ converter -> SetCompression (501 );
77+ converter -> SetMaxBytes (250000000 );
78+ converter -> SetEMCALAmplitudeThreshold (0.075 );
79+ converter -> SetConversionCut (conversionPhotonCutnumber );
80+ converter -> SetDeltaAODBranchName (Form ("GammaConv_%s_%s_gamma" , cutnumberEvent .Data (), conversionPhotonCutnumber .Data ()));
5881 // converter->SelectCollisionCandidates(AliVEvent::kAny);
5982 if (useAliEvCuts )
6083 converter -> SetUseEventCuts (kTRUE );
0 commit comments