Skip to content

Commit a3d9b7d

Browse files
committed
Update Run 2 conversion
1 parent bd47334 commit a3d9b7d

File tree

3 files changed

+29
-6
lines changed

3 files changed

+29
-6
lines changed

codeHF/config_input.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Input specification for runtest.sh
55
# (Modifies input parameters.)
66

7-
INPUT_CASE=2 # Input case
7+
INPUT_CASE=16 # Input case
88

99
NFILESMAX=1 # Maximum number of processed input files. (Set to -0 to process all; to -N to process all but the last N files.)
1010

codeHF/config_tasks.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ DOO2_SEL_DSTAR=0 # hf-candidate-selector-dstar
6868
DOO2_SEL_TOXIPI=0 # hf-candidate-selector-to-xi-pi
6969
DOO2_SEL_XIC_XIPIPI=0 # hf-candidate-selector-xic-to-xi-pi-pi
7070
# Analysis tasks
71-
DOO2_TASK_D0=1 # hf-task-d0
71+
DOO2_TASK_D0=0 # hf-task-d0
7272
DOO2_TASK_DS=0 # hf-task-ds
7373
DOO2_TASK_DPLUS=0 # hf-task-dplus
74-
DOO2_TASK_LC=1 # hf-task-lc
74+
DOO2_TASK_LC=0 # hf-task-lc
7575
DOO2_TASK_LB=0 # hf-task-lb
7676
DOO2_TASK_XIC=0 # hf-task-xic
7777
DOO2_TASK_JPSI=0 # hf-task-jpsi
@@ -95,7 +95,7 @@ DOO2_TREE_LCK0SP=0 # hf-tree-creator-lc-to-k0s-p
9595
DOO2_TREE_TOXIPI=0 # hf-tree-creator-to-xi-pi
9696
DOO2_TREE_XIC_XIPIPI=0 # hf-tree-creator-xic-to-xi-pi-pi
9797
# Derived-data creators
98-
DOO2_DATA_D0=0 # hf-derived-data-creator-d0-to-k-pi
98+
DOO2_DATA_D0=1 # hf-derived-data-creator-d0-to-k-pi
9999
DOO2_DATA_LC=0 # hf-derived-data-creator-lc-to-p-k-pi
100100
DOO2_DATA_BPLUS=0 # hf-derived-data-creator-bplus-to-d0-pi
101101
# Correlations

exec/convertAO2D.C

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@
1212
R__ADD_INCLUDE_PATH($ALICE_ROOT)
1313
R__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

Comments
 (0)