ZMQ part of Event Display suppresed in offline mode
[u/mrichter/AliRoot.git] / PWGGA / GammaConv / macros / AddTask_GammaConvV1_pp.C
CommitLineData
4b771b12 1void AddTask_GammaConvV1_pp( Int_t trainConfig = 1, // change different set of cuts
2 Bool_t isMC = kFALSE, // run MC
3 Int_t enableQAMesonTask = 0, // enable meson QA in AliAnalysisTaskGammaConvV1
4 Int_t enableQAPhotonTask = 0, // enable photon QA in AliAnalysisTaskGammaConvV1
5 TString fileNameInputForWeighting = "MCSpectraInput.root", // path to file for weigting input
6 TString cutnumberAODBranch = "0000000060084001001500000", // cutnumber for AOD branch
7 TString periodname = "LHC12f1x" // period name
33bbd991 8 ) {
9
344100c4 10 // ================= Load Librariers =================================
11 gSystem->Load("libCore.so");
12 gSystem->Load("libTree.so");
13 gSystem->Load("libGeom.so");
14 gSystem->Load("libVMC.so");
15 gSystem->Load("libPhysics.so");
16 gSystem->Load("libMinuit");
17 gSystem->Load("libSTEERBase");
18 gSystem->Load("libESD");
19 gSystem->Load("libAOD");
20 gSystem->Load("libANALYSIS");
21 gSystem->Load("libANALYSISalice");
344100c4 22 gSystem->Load("libCDB.so");
23 gSystem->Load("libSTEER.so");
24 gSystem->Load("libSTEERBase.so");
25 gSystem->Load("libTENDER.so");
26 gSystem->Load("libTENDERSupplies.so");
4e1b9acf 27 gSystem->Load("libPWGflowBase.so");
28 gSystem->Load("libPWGflowTasks.so");
29 gSystem->Load("libPWGGAGammaConv.so");
30
344100c4 31 Int_t isHeavyIon = 0;
32 // ================== GetAnalysisManager ===============================
33 AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
34 if (!mgr) {
35 Error(Form("AddTask_GammaConvV1_%i",trainConfig), "No analysis manager found.");
36 return ;
37 }
33bbd991 38
344100c4 39 // ================== GetInputEventHandler =============================
40 AliVEventHandler *inputHandler=mgr->GetInputEventHandler();
41
42 //========= Add PID Reponse to ANALYSIS manager ====
43 if(!(AliPIDResponse*)mgr->GetTask("PIDResponseTask")){
44 gROOT->LoadMacro("$ALICE_ROOT/ANALYSIS/macros/AddTaskPIDResponse.C");
45 AddTaskPIDResponse(isMC);
46 }
47
48 //========= Set Cutnumber for V0Reader ================================
48a2b226 49 TString cutnumberPhoton = "002000084000002200000000";
344100c4 50 TString cutnumberEvent = "0000000";
51 AliAnalysisDataContainer *cinput = mgr->GetCommonInputContainer();
52
53 //========= Add V0 Reader to ANALYSIS manager if not yet existent =====
54 if( !(AliV0ReaderV1*)mgr->GetTask("V0ReaderV1") ){
55 AliV0ReaderV1 *fV0ReaderV1 = new AliV0ReaderV1("V0ReaderV1");
56
57 fV0ReaderV1->SetUseOwnXYZCalculation(kTRUE);
58 fV0ReaderV1->SetCreateAODs(kFALSE);// AOD Output
59 fV0ReaderV1->SetUseAODConversionPhoton(kTRUE);
33bbd991 60
344100c4 61 if (!mgr) {
62 Error("AddTask_V0ReaderV1", "No analysis manager found.");
63 return;
64 }
33bbd991 65
344100c4 66 AliConvEventCuts *fEventCuts=NULL;
67 if(cutnumberEvent!=""){
68 fEventCuts= new AliConvEventCuts(cutnumberEvent.Data(),cutnumberEvent.Data());
69 fEventCuts->SetPreSelectionCutFlag(kTRUE);
70 if(fEventCuts->InitializeCutsFromCutString(cutnumberEvent.Data())){
71 fV0ReaderV1->SetEventCuts(fEventCuts);
72 fEventCuts->SetFillCutHistograms("",kTRUE);
73 }
74 }
33bbd991 75
344100c4 76 // Set AnalysisCut Number
77 AliConversionPhotonCuts *fCuts=NULL;
78 if(cutnumberPhoton!=""){
79 fCuts= new AliConversionPhotonCuts(cutnumberPhoton.Data(),cutnumberPhoton.Data());
80 fCuts->SetPreSelectionCutFlag(kTRUE);
81 fCuts->SetIsHeavyIon(isHeavyIon);
82 if(fCuts->InitializeCutsFromCutString(cutnumberPhoton.Data())){
83 fV0ReaderV1->SetConversionCuts(fCuts);
84 fCuts->SetFillCutHistograms("",kTRUE);
85 }
86 }
87 if(inputHandler->IsA()==AliAODInputHandler::Class()){
88 // AOD mode
89 fV0ReaderV1->SetDeltaAODBranchName(Form("GammaConv_%s_gamma",cutnumberAODBranch.Data()));
90 }
91 fV0ReaderV1->Init();
33bbd991 92
344100c4 93 AliLog::SetGlobalLogLevel(AliLog::kInfo);
33bbd991 94
344100c4 95 //connect input V0Reader
96 mgr->AddTask(fV0ReaderV1);
97 mgr->ConnectInput(fV0ReaderV1,0,cinput);
98
99 }
33bbd991 100
344100c4 101 //================================================
102 //========= Add task to the ANALYSIS manager =====
103 // find input container
104 AliAnalysisTaskGammaConvV1 *task=NULL;
105 task= new AliAnalysisTaskGammaConvV1(Form("GammaConvV1_%i",trainConfig));
106 task->SetIsHeavyIon(isHeavyIon);
107 task->SetIsMC(isMC);
108 // Cut Numbers to use in Analysis
109 Int_t numberOfCuts = 4;
33bbd991 110
344100c4 111 TString *eventCutArray = new TString[numberOfCuts];
112 TString *photonCutArray = new TString[numberOfCuts];
113 TString *mesonCutArray = new TString[numberOfCuts];
d404157c 114
344100c4 115 if(trainConfig == 1){
48a2b226 116 eventCutArray[ 0] = "0000011"; photonCutArray[ 0] = "002000093663003800000000"; mesonCutArray[0] = "01631031009000"; //standard cut Pi0 pp 2.76TeV without SDD , only Minbias MC
117 eventCutArray[ 1] = "0001211"; photonCutArray[ 1] = "002000093663003800000000"; mesonCutArray[1] = "01631031009000"; //standard cut Pi0 pp 2.76TeV without SDD, V0AND
118 eventCutArray[ 2] = "0000011"; photonCutArray[ 2] = "002000093260003800000000"; mesonCutArray[2] = "01631031009000"; //standard cut Gamma pp 2-76TeV
119 eventCutArray[ 3] = "0000011"; photonCutArray[ 3] = "002000093660003800000000"; mesonCutArray[3] = "01631031009000"; //standard cut Gamma pp 2-76TeV
d404157c 120 } else if (trainConfig == 2) {
48a2b226 121 eventCutArray[ 0] = "0000012"; photonCutArray[ 0] = "002000093663003800000000"; mesonCutArray[0] = "01631031009000"; //standard cut Pi0 pp 2.76TeV without SDD , only boxes
122 eventCutArray[ 1] = "0001212"; photonCutArray[ 1] = "002000093663003800000000"; mesonCutArray[1] = "01631031009000"; //standard cut Pi0 pp 2.76TeV without SDD, V0AND , only boxes
123 eventCutArray[ 2] = "0000012"; photonCutArray[ 2] = "002000093260003800000000"; mesonCutArray[2] = "01631031009000"; //standard cut Gamma pp 2-76TeV , only boxes
124 eventCutArray[ 3] = "0000012"; photonCutArray[ 3] = "002000093660003800000000"; mesonCutArray[3] = "01631031009000"; //standard cut Gamma pp 2-76TeV
344100c4 125 } else if (trainConfig == 3) {
48a2b226 126 eventCutArray[ 0] = "0000311"; photonCutArray[ 0] = "002000093663003800000000"; mesonCutArray[0] = "01631031009000"; //standard cut Pi0 pp 2.76TeV with SDD , only Minbias MC
127 eventCutArray[ 1] = "0001311"; photonCutArray[ 1] = "002000093663003800000000"; mesonCutArray[1] = "01631031009000"; //standard cut Pi0 pp 2.76TeV with SDD, V0AND , only Minbias MC
128 eventCutArray[ 2] = "0000312"; photonCutArray[ 2] = "002000093663003800000000"; mesonCutArray[2] = "01631031009000"; //standard cut Pi0 pp 2.76TeV with SDD , only Boxes MC
129 eventCutArray[ 3] = "0001312"; photonCutArray[ 3] = "002000093663003800000000"; mesonCutArray[3] = "01631031009000"; //standard cut Pi0 pp 2.76TeV with SDD, V0AND, only Boxes MC
344100c4 130 } else if (trainConfig == 4) {
48a2b226 131 eventCutArray[ 0] = "0000011"; photonCutArray[ 0] = "002000093663003800000000"; mesonCutArray[0] = "01631031009000"; //standard cut Pi0 pp 2.76TeV without SDD , all photon qualities
132 eventCutArray[ 1] = "0000011"; photonCutArray[ 1] = "002000093663003800020000"; mesonCutArray[1] = "01631031009000"; //standard cut Pi0 pp 2.76TeV without SDD , photon quality 1
133 eventCutArray[ 2] = "0000011"; photonCutArray[ 2] = "002000093663003800030000"; mesonCutArray[2] = "01631031009000"; //standard cut Pi0 pp 2.76TeV without SDD , photon quality 2
134 eventCutArray[ 3] = "0000011"; photonCutArray[ 3] = "002000093663003800040000"; mesonCutArray[3] = "01631031009000"; //standard cut Pi0 pp 2.76TeV without SDD , photon quality 3
344100c4 135 } else if (trainConfig == 5) {
48a2b226 136 eventCutArray[ 0] = "0000011"; photonCutArray[ 0] = "007000093663003800000000"; mesonCutArray[0] = "01631031009000"; //standard cut Pi0 pp 2.76TeV without SDD , all photon qualities, min R = 35 cm
137 eventCutArray[ 1] = "0000011"; photonCutArray[ 1] = "007000093663003800020000"; mesonCutArray[1] = "01631031009000"; //standard cut Pi0 pp 2.76TeV without SDD , photon quality 1, min R = 35 cm
138 eventCutArray[ 2] = "0000011"; photonCutArray[ 2] = "007000093663003800030000"; mesonCutArray[2] = "01631031009000"; //standard cut Pi0 pp 2.76TeV without SDD , photon quality 2, min R = 35 cm
139 eventCutArray[ 3] = "0000011"; photonCutArray[ 3] = "007000093663003800040000"; mesonCutArray[3] = "01631031009000"; //standard cut Pi0 pp 2.76TeV without SDD , photon quality 3, min R = 35 cm
344100c4 140 } else if (trainConfig == 6) {
48a2b226 141 eventCutArray[ 0] = "0000011"; photonCutArray[ 0] = "002000083663003200000000"; mesonCutArray[0] = "01631031009000"; //standard cut Pi0 pp 7TeV, with qt cut 0.05, all photon qualities
142 eventCutArray[ 1] = "0000011"; photonCutArray[ 1] = "002000083663003200020000"; mesonCutArray[1] = "01631031009000"; //standard cut Pi0 pp 7TeV, with qt cut 0.05, photon quality 1
143 eventCutArray[ 2] = "0000011"; photonCutArray[ 2] = "002000083663003200030000"; mesonCutArray[2] = "01631031009000"; //standard cut Pi0 pp 7TeV, with qt cut 0.05, photon quality 2
144 eventCutArray[ 3] = "0000011"; photonCutArray[ 3] = "002000083663003200040000"; mesonCutArray[3] = "01631031009000"; //standard cut Pi0 pp 7TeV, with qt cut 0.05, photon quality 3
344100c4 145 } else if (trainConfig == 7) {
48a2b226 146 eventCutArray[ 0] = "0000011"; photonCutArray[ 0] = "007000083663003200000000"; mesonCutArray[0] = "01631031009000"; //standard cut Pi0 pp 7TeV, with qt cut 0.05, all photon qualities, min R = 35 cm
147 eventCutArray[ 1] = "0000011"; photonCutArray[ 1] = "007000083663003200020000"; mesonCutArray[1] = "01631031009000"; //standard cut Pi0 pp 7TeV, with qt cut 0.05, photon quality 1, min R = 35 cm
148 eventCutArray[ 2] = "0000011"; photonCutArray[ 2] = "007000083663003200030000"; mesonCutArray[2] = "01631031009000"; //standard cut Pi0 pp 7TeV, with qt cut 0.05, photon quality 2, min R = 35 cm
149 eventCutArray[ 3] = "0000011"; photonCutArray[ 3] = "007000083663003200040000"; mesonCutArray[3] = "01631031009000"; //standard cut Pi0 pp 7TeV, with qt cut 0.05, photon quality 3, min R = 35 cm
344100c4 150 } else if (trainConfig == 8) {
48a2b226 151 eventCutArray[ 0] = "0000011"; photonCutArray[ 0] = "002000083663000200000000"; mesonCutArray[0] = "01631031009000"; //standard cut Pi0 pp 7TeV, all photon qualities
152 eventCutArray[ 1] = "0000011"; photonCutArray[ 1] = "002000083663000200020000"; mesonCutArray[1] = "01631031009000"; //standard cut Pi0 pp 7TeV, photon quality 1
153 eventCutArray[ 2] = "0000011"; photonCutArray[ 2] = "002000083663000200030000"; mesonCutArray[2] = "01631031009000"; //standard cut Pi0 pp 7TeV, photon quality 2
154 eventCutArray[ 3] = "0000011"; photonCutArray[ 3] = "002000083663000200040000"; mesonCutArray[3] = "01631031009000"; //standard cut Pi0 pp 7TeV, photon quality 3
344100c4 155 } else if (trainConfig == 9) {
48a2b226 156 eventCutArray[ 0] = "0000011"; photonCutArray[ 0] = "007000083663000200000000"; mesonCutArray[0] = "01631031009000"; //standard cut Pi0 pp 7TeV, all photon qualities, min R = 35 cm
157 eventCutArray[ 1] = "0000011"; photonCutArray[ 1] = "007000083663000200020000"; mesonCutArray[1] = "01631031009000"; //standard cut Pi0 pp 7TeV, photon quality 1, min R = 35 cm
158 eventCutArray[ 2] = "0000011"; photonCutArray[ 2] = "007000083663000200030000"; mesonCutArray[2] = "01631031009000"; //standard cut Pi0 pp 7TeV, photon quality 2, min R = 35 cm
159 eventCutArray[ 3] = "0000011"; photonCutArray[ 3] = "007000083663000200040000"; mesonCutArray[3] = "01631031009000"; //standard cut Pi0 pp 7TeV, photon quality 3, min R = 35 cm
344100c4 160 } else if (trainConfig == 10) {
48a2b226 161 eventCutArray[ 0] = "0000311"; photonCutArray[ 0] = "002000093663003800000000"; mesonCutArray[0] = "01631031009000"; //standard cut Pi0 pp 2.76TeV with SDD , all photon qualities
162 eventCutArray[ 1] = "0000311"; photonCutArray[ 1] = "002000093663003800020000"; mesonCutArray[1] = "01631031009000"; //standard cut Pi0 pp 2.76TeV with SDD , photon quality 1
163 eventCutArray[ 2] = "0000311"; photonCutArray[ 2] = "002000093663003800030000"; mesonCutArray[2] = "01631031009000"; //standard cut Pi0 pp 2.76TeV with SDD , photon quality 2
164 eventCutArray[ 3] = "0000311"; photonCutArray[ 3] = "002000093663003800040000"; mesonCutArray[3] = "01631031009000"; //standard cut Pi0 pp 2.76TeV with SDD , photon quality 3
344100c4 165 } else if (trainConfig == 11) {
48a2b226 166 eventCutArray[ 0] = "0000311"; photonCutArray[ 0] = "007000093663003800000000"; mesonCutArray[0] = "01631031009000"; //standard cut Pi0 pp 2.76TeV with SDD , all photon qualities, min R = 35 cm
167 eventCutArray[ 1] = "0000311"; photonCutArray[ 1] = "007000093663003800020000"; mesonCutArray[1] = "01631031009000"; //standard cut Pi0 pp 2.76TeV with SDD , photon quality 1, min R = 35 cm
168 eventCutArray[ 2] = "0000311"; photonCutArray[ 2] = "007000093663003800030000"; mesonCutArray[2] = "01631031009000"; //standard cut Pi0 pp 2.76TeV with SDD , photon quality 2, min R = 35 cm
169 eventCutArray[ 3] = "0000311"; photonCutArray[ 3] = "007000093663003800040000"; mesonCutArray[3] = "01631031009000"; //standard cut Pi0 pp 2.76TeV with SDD , photon quality 3, min R = 35 cm
344100c4 170 } else if (trainConfig == 12) {
48a2b226 171 eventCutArray[ 0] = "0000011"; photonCutArray[ 0] = "002000092970028250400000"; mesonCutArray[0] = "01525065000000"; //standard cut LHC11h pp 2.76TeV
172 eventCutArray[ 1] = "0000011"; photonCutArray[ 1] = "032000092970028250400000"; mesonCutArray[1] = "01525065000000"; //variation eta 0.65
173 eventCutArray[ 2] = "0000011"; photonCutArray[ 2] = "042000092970028250400000"; mesonCutArray[2] = "01525065000000"; //variation eta 0.75
174 eventCutArray[ 3] = "0000011"; photonCutArray[ 3] = "002000092950028250400000"; mesonCutArray[3] = "01525065000000"; //variation pion p dEdx 0.3-5.
344100c4 175 } else if (trainConfig == 13) { //added signals
48a2b226 176 eventCutArray[ 0] = "0000012"; photonCutArray[ 0] = "002000092970028250400000"; mesonCutArray[0] = "01525065000000"; //standard cut LHC11h pp 2.76TeV
177 eventCutArray[ 1] = "0000012"; photonCutArray[ 1] = "032000092970028250400000"; mesonCutArray[1] = "01525065000000"; //variation eta 0.65
178 eventCutArray[ 2] = "0000012"; photonCutArray[ 2] = "042000092970028250400000"; mesonCutArray[2] = "01525065000000"; //variation eta 0.75
179 eventCutArray[ 3] = "0000012"; photonCutArray[ 3] = "002000092950028250400000"; mesonCutArray[3] = "01525065000000"; //variation pion p dEdx 0.3-5.
8ce39d2b 180 } else if (trainConfig == 14) {
48a2b226 181 eventCutArray[ 0] = "0000011"; photonCutArray[ 0] = "002000492970028250400000"; mesonCutArray[0] = "01525065000000"; //variation pt 0.075
182 eventCutArray[ 1] = "0000011"; photonCutArray[ 1] = "002000192970028250400000"; mesonCutArray[1] = "01525065000000"; //variation pt 0.1
183 eventCutArray[ 2] = "0000011"; photonCutArray[ 2] = "002000062970028250400000"; mesonCutArray[2] = "01525065000000"; //variation TPC cls 0.7
184 eventCutArray[ 3] = "0000011"; photonCutArray[ 3] = "002000082970028250400000"; mesonCutArray[3] = "01525065000000"; //variation TPC cls 0.35
8ce39d2b 185 } else if (trainConfig == 15) { //added signals
48a2b226 186 eventCutArray[ 0] = "0000012"; photonCutArray[ 0] = "002000492970028250400000"; mesonCutArray[0] = "01525065000000"; //variation pt 0.075
187 eventCutArray[ 1] = "0000012"; photonCutArray[ 1] = "002000192970028250400000"; mesonCutArray[1] = "01525065000000"; //variation pt 0.1
188 eventCutArray[ 2] = "0000012"; photonCutArray[ 2] = "002000062970028250400000"; mesonCutArray[2] = "01525065000000"; //variation TPC cls 0.7
189 eventCutArray[ 3] = "0000012"; photonCutArray[ 3] = "002000082970028250400000"; mesonCutArray[3] = "01525065000000"; //variation TPC cls 0.35
8ce39d2b 190 } else if (trainConfig == 16) {
48a2b226 191 eventCutArray[ 0] = "0000011"; photonCutArray[ 0] = "002000093970028250400000"; mesonCutArray[0] = "01525065000000"; //variation edEdx -4,5
192 eventCutArray[ 1] = "0000011"; photonCutArray[ 1] = "002000096970028250400000"; mesonCutArray[1] = "01525065000000"; //variation edEdx -2.5,4
193 eventCutArray[ 2] = "0000011"; photonCutArray[ 2] = "002000092970038250400000"; mesonCutArray[2] = "01525065000000"; //variation TOF el. PID -3,5
194 eventCutArray[ 3] = "0000011"; photonCutArray[ 3] = "002000092970048250400000"; mesonCutArray[3] = "01525065000000"; //variation TOF el. PID -2,3
8ce39d2b 195 } else if (trainConfig == 17) { //added signals
48a2b226 196 eventCutArray[ 0] = "0000012"; photonCutArray[ 0] = "002000093970028250400000"; mesonCutArray[0] = "01525065000000"; //variation edEdx -4,5
197 eventCutArray[ 1] = "0000012"; photonCutArray[ 1] = "002000096970028250400000"; mesonCutArray[1] = "01525065000000"; //variation edEdx -2.5,4
198 eventCutArray[ 2] = "0000012"; photonCutArray[ 2] = "002000092970038250400000"; mesonCutArray[2] = "01525065000000"; //variation TOF el. PID -3,5
199 eventCutArray[ 3] = "0000012"; photonCutArray[ 3] = "002000092970048250400000"; mesonCutArray[3] = "01525065000000"; //variation TOF el. PID -2,3
8ce39d2b 200 } else if (trainConfig == 18) {
48a2b226 201 eventCutArray[ 0] = "0000011"; photonCutArray[ 0] = "002000092970029250400000"; mesonCutArray[0] = "01525065000000"; //variation qt 0.03
202 eventCutArray[ 1] = "0000011"; photonCutArray[ 1] = "002000092970022250400000"; mesonCutArray[1] = "01525065000000"; //variation qt 0.07 no2D
203 eventCutArray[ 2] = "0000011"; photonCutArray[ 2] = "002000092970028150400000"; mesonCutArray[2] = "01525065000000"; //variation chi2 50.
204 eventCutArray[ 3] = "0000011"; photonCutArray[ 3] = "002000092970028850400000"; mesonCutArray[3] = "01525065000000"; //variation chi2 20.
8ce39d2b 205 } else if (trainConfig == 19) { //added signals
48a2b226 206 eventCutArray[ 0] = "0000012"; photonCutArray[ 0] = "002000092970029250400000"; mesonCutArray[0] = "01525065000000"; //variation qt 0.03
207 eventCutArray[ 1] = "0000012"; photonCutArray[ 1] = "002000092970022250400000"; mesonCutArray[1] = "01525065000000"; //variation qt 0.07 no2D
208 eventCutArray[ 2] = "0000012"; photonCutArray[ 2] = "002000092970028150400000"; mesonCutArray[2] = "01525065000000"; //variation chi2 50.
209 eventCutArray[ 3] = "0000012"; photonCutArray[ 3] = "002000092970028850400000"; mesonCutArray[3] = "01525065000000"; //variation chi2 20.
8ce39d2b 210 } else if (trainConfig == 20) {
48a2b226 211 eventCutArray[ 0] = "0000011"; photonCutArray[ 0] = "002000092970028260400000"; mesonCutArray[0] = "01525065000000"; //variation psi pair 0.05
212 eventCutArray[ 1] = "0000011"; photonCutArray[ 1] = "002000092970028280400000"; mesonCutArray[1] = "01525065000000"; //variation psi pair 0.2
213 eventCutArray[ 2] = "0000011"; photonCutArray[ 2] = "002000092970028250000000"; mesonCutArray[2] = "01525065000000"; //variation cosPA -1
214 eventCutArray[ 3] = "0000011"; photonCutArray[ 3] = "002000092970028250400000"; mesonCutArray[3] = "01525055000000"; //variation alpha 0.75
8ce39d2b 215 } else if (trainConfig == 21) { //added signals
48a2b226 216 eventCutArray[ 0] = "0000012"; photonCutArray[ 0] = "002000092970028260400000"; mesonCutArray[0] = "01525065000000"; //variation psi pair 0.05
217 eventCutArray[ 1] = "0000012"; photonCutArray[ 1] = "002000092970028280400000"; mesonCutArray[1] = "01525065000000"; //variation psi pair 0.2
218 eventCutArray[ 2] = "0000012"; photonCutArray[ 2] = "002000092970028250000000"; mesonCutArray[2] = "01525065000000"; //variation cosPA -1
219 eventCutArray[ 3] = "0000012"; photonCutArray[ 3] = "002000092970028250400000"; mesonCutArray[3] = "01525055000000"; //variation alpha 0.75
a28cef74 220 } else if (trainConfig == 22) {
48a2b226 221 eventCutArray[ 0] = "0004011"; photonCutArray[ 0] = "002000092970028250400000"; mesonCutArray[0] = "01525065000000"; // trigger kTRD
222 eventCutArray[ 1] = "0005011"; photonCutArray[ 1] = "002000092970028250400000"; mesonCutArray[1] = "01525065000000"; // trigger kEMC
223 eventCutArray[ 2] = "0006011"; photonCutArray[ 2] = "002000092970028250400000"; mesonCutArray[2] = "01525065000000"; // trigger kPHI
224 eventCutArray[ 3] = "0007011"; photonCutArray[ 3] = "002000092970028250400000"; mesonCutArray[3] = "01525065000000"; // trigger kHighMult
a28cef74 225 } else if (trainConfig == 23) {
48a2b226 226 eventCutArray[ 0] = "0008011"; photonCutArray[ 0] = "002000092970028250400000"; mesonCutArray[0] = "01525065000000"; // trigger kEMCEGA
227 eventCutArray[ 1] = "0009011"; photonCutArray[ 1] = "002000092970028250400000"; mesonCutArray[1] = "01525065000000"; // trigger kEMCEJE
228 eventCutArray[ 2] = "0000011"; photonCutArray[ 2] = "002000092970028250400000"; mesonCutArray[2] = "01525065000000"; // minimum bias
229 eventCutArray[ 3] = "0001111"; photonCutArray[ 3] = "002000092970028250400000"; mesonCutArray[3] = "01525065000000"; // trigger kINT8
2f9f4b34 230 } else if (trainConfig == 24) {
48a2b226 231 eventCutArray[ 0] = "0004211"; photonCutArray[ 0] = "002000092970028250400000"; mesonCutArray[0] = "01525065000000"; // trigger kTRD CINT8 HEE
232 eventCutArray[ 1] = "0004411"; photonCutArray[ 1] = "002000092970028250400000"; mesonCutArray[1] = "01525065000000"; // trigger kTRD CINT8 HSE
233 eventCutArray[ 2] = "0004611"; photonCutArray[ 2] = "002000092970028250400000"; mesonCutArray[2] = "01525065000000"; // trigger kTRD CINT8 HJE
234 eventCutArray[ 3] = "0004811"; photonCutArray[ 3] = "002000092970028250400000"; mesonCutArray[3] = "01525065000000"; // trigger kTRD CINT8 HQU
2f9f4b34 235 } else if (trainConfig == 25) {
48a2b226 236 eventCutArray[ 0] = "0004111"; photonCutArray[ 0] = "002000092970028250400000"; mesonCutArray[0] = "01525065000000"; // trigger kTRD CINT7 HEE
237 eventCutArray[ 1] = "0004311"; photonCutArray[ 1] = "002000092970028250400000"; mesonCutArray[1] = "01525065000000"; // trigger kTRD CINT7 HSE
238 eventCutArray[ 2] = "0004511"; photonCutArray[ 2] = "002000092970028250400000"; mesonCutArray[2] = "01525065000000"; // trigger kTRD CINT7 HJE
239 eventCutArray[ 3] = "0004711"; photonCutArray[ 3] = "002000092970028250400000"; mesonCutArray[3] = "01525065000000"; // trigger kTRD CINT7 HQU
2f9f4b34 240 } else if (trainConfig == 26) {
48a2b226 241 eventCutArray[ 0] = "0005211"; photonCutArray[ 0] = "002000092970028250400000"; mesonCutArray[0] = "01525065000000"; // trigger kEMC7
242 eventCutArray[ 1] = "0005311"; photonCutArray[ 1] = "002000092970028250400000"; mesonCutArray[1] = "01525065000000"; // trigger kEMC8
243 eventCutArray[ 2] = "0006211"; photonCutArray[ 2] = "002000092970028250400000"; mesonCutArray[2] = "01525065000000"; // trigger kPHI7
244 eventCutArray[ 3] = "0006311"; photonCutArray[ 3] = "002000092970028250400000"; mesonCutArray[3] = "01525065000000"; // trigger kPHI8
2f9f4b34 245 } else if (trainConfig == 27) {
48a2b226 246 eventCutArray[ 0] = "0005111"; photonCutArray[ 0] = "002000092970028250400000"; mesonCutArray[0] = "01525065000000"; // trigger kEMC1
247 eventCutArray[ 1] = "0007111"; photonCutArray[ 1] = "002000092970028250400000"; mesonCutArray[1] = "01525065000000"; // trigger kSHM1
248 eventCutArray[ 2] = "0007211"; photonCutArray[ 2] = "002000092970028250400000"; mesonCutArray[2] = "01525065000000"; // trigger kSHM7
249 eventCutArray[ 3] = "0007311"; photonCutArray[ 3] = "002000092970028250400000"; mesonCutArray[3] = "01525065000000"; // trigger kSHM8
2f9f4b34 250 } else if (trainConfig == 28) {
48a2b226 251 eventCutArray[ 0] = "0008111"; photonCutArray[ 0] = "002000092970028250400000"; mesonCutArray[0] = "01525065000000"; // trigger kEMCEGA + CINT7
252 eventCutArray[ 1] = "0008211"; photonCutArray[ 1] = "002000092970028250400000"; mesonCutArray[1] = "01525065000000"; // trigger kEMCEGA + CINT8
253 eventCutArray[ 2] = "0008311"; photonCutArray[ 2] = "002000092970028250400000"; mesonCutArray[2] = "01525065000000"; // trigger kEMCEG1 + CINT7
254 eventCutArray[ 3] = "0008411"; photonCutArray[ 3] = "002000092970028250400000"; mesonCutArray[3] = "01525065000000"; // trigger kEMCEG1 + CINT8
2f9f4b34 255 } else if (trainConfig == 29) {
48a2b226 256 eventCutArray[ 0] = "0008511"; photonCutArray[ 0] = "002000092970028250400000"; mesonCutArray[0] = "01525065000000"; // trigger kEMCEG2 + CINT7
257 eventCutArray[ 1] = "0008611"; photonCutArray[ 1] = "002000092970028250400000"; mesonCutArray[1] = "01525065000000"; // trigger kEMCEG2 + CINT8
258 eventCutArray[ 2] = "0009111"; photonCutArray[ 2] = "002000092970028250400000"; mesonCutArray[2] = "01525065000000"; // trigger kEMCEJE + CINT7
259 eventCutArray[ 3] = "0009211"; photonCutArray[ 3] = "002000092970028250400000"; mesonCutArray[3] = "01525065000000"; // trigger kEMCEJE + CINT8
2f9f4b34 260 } else if (trainConfig == 30) {
48a2b226 261 eventCutArray[ 0] = "0009311"; photonCutArray[ 0] = "002000092970028250400000"; mesonCutArray[0] = "01525065000000"; // trigger kEMCEJ1 + CINT7
262 eventCutArray[ 1] = "0009411"; photonCutArray[ 1] = "002000092970028250400000"; mesonCutArray[1] = "01525065000000"; // trigger kEMCEJ1 + CINT8
263 eventCutArray[ 2] = "0009511"; photonCutArray[ 2] = "002000092970028250400000"; mesonCutArray[2] = "01525065000000"; // trigger kEMCEJ2 + CINT7
264 eventCutArray[ 3] = "0009611"; photonCutArray[ 3] = "002000092970028250400000"; mesonCutArray[3] = "01525065000000"; // trigger kEMCEJ2 + CINT8
4b771b12 265 } else if (trainConfig == 31) {
48a2b226 266 eventCutArray[ 0] = "0000011"; photonCutArray[ 0] = "002000092570028250400000"; mesonCutArray[0] = "01521065000000"; //new standard cut for pp 8 TeV
267 eventCutArray[ 1] = "0000011"; photonCutArray[ 1] = "002000093570028250400000"; mesonCutArray[1] = "01521065000000"; //variation edEdx -4,5
268 eventCutArray[ 2] = "0000011"; photonCutArray[ 2] = "002000096570028250400000"; mesonCutArray[2] = "01521065000000"; //variation edEdx -2.5,4
269 eventCutArray[ 3] = "0000011"; photonCutArray[ 3] = "002000092550028250400000"; mesonCutArray[3] = "01521065000000"; //variation pion p dEdx 0.3-5.
4b771b12 270 } else if (trainConfig == 32) { //added signals
48a2b226 271 eventCutArray[ 0] = "0000012"; photonCutArray[ 0] = "002000092570028250400000"; mesonCutArray[0] = "01521065000000"; //new standard cut for pp 8 TeV
272 eventCutArray[ 1] = "0000012"; photonCutArray[ 1] = "002000093570028250400000"; mesonCutArray[1] = "01521065000000"; //variation edEdx -4,5
273 eventCutArray[ 2] = "0000012"; photonCutArray[ 2] = "002000096570028250400000"; mesonCutArray[2] = "01521065000000"; //variation edEdx -2.5,4
274 eventCutArray[ 3] = "0000012"; photonCutArray[ 3] = "002000092550028250400000"; mesonCutArray[3] = "01521065000000"; //variation pion p dEdx 0.3-5.
4b771b12 275 } else if (trainConfig == 33) {
48a2b226 276 eventCutArray[ 0] = "0000011"; photonCutArray[ 0] = "002000492570028250400000"; mesonCutArray[0] = "01521065000000"; //variation pt 0.075
277 eventCutArray[ 1] = "0000011"; photonCutArray[ 1] = "002000192570028250400000"; mesonCutArray[1] = "01521065000000"; //variation pt 0.1
278 eventCutArray[ 2] = "0000011"; photonCutArray[ 2] = "002000062570028250400000"; mesonCutArray[2] = "01521065000000"; //variation TPC cls 0.7
279 eventCutArray[ 3] = "0000011"; photonCutArray[ 3] = "002000082570028250400000"; mesonCutArray[3] = "01521065000000"; //variation TPC cls 0.35
4b771b12 280 } else if (trainConfig == 34) { //added signals
48a2b226 281 eventCutArray[ 0] = "0000012"; photonCutArray[ 0] = "002000492570028250400000"; mesonCutArray[0] = "01521065000000"; //variation pt 0.075
282 eventCutArray[ 1] = "0000012"; photonCutArray[ 1] = "002000192570028250400000"; mesonCutArray[1] = "01521065000000"; //variation pt 0.1
283 eventCutArray[ 2] = "0000012"; photonCutArray[ 2] = "002000062570028250400000"; mesonCutArray[2] = "01521065000000"; //variation TPC cls 0.7
284 eventCutArray[ 3] = "0000012"; photonCutArray[ 3] = "002000082570028250400000"; mesonCutArray[3] = "01521065000000"; //variation TPC cls 0.35
4b771b12 285 } else if (trainConfig == 35) {
48a2b226 286 eventCutArray[ 0] = "0000011"; photonCutArray[ 0] = "002000092270028250400000"; mesonCutArray[0] = "01521065000000"; //variation pidEdx 1,-10
287 eventCutArray[ 1] = "0000011"; photonCutArray[ 1] = "002000092370028250400000"; mesonCutArray[1] = "01521065000000"; //variation pidEdx 2.5,-10
288 eventCutArray[ 2] = "0000011"; photonCutArray[ 2] = "002000092970028250400000"; mesonCutArray[2] = "01521065000000"; //variation pidEdx 3,-10
289 eventCutArray[ 3] = "0000011"; photonCutArray[ 3] = "002000092500028250400000"; mesonCutArray[3] = "01521065000000"; //variation pion p dEdx 0.5-5
4b771b12 290 } else if (trainConfig == 36) { //added signals
48a2b226 291 eventCutArray[ 0] = "0000012"; photonCutArray[ 0] = "002000092270028250400000"; mesonCutArray[0] = "01521065000000"; //variation pidEdx 1,-10
292 eventCutArray[ 1] = "0000012"; photonCutArray[ 1] = "002000092370028250400000"; mesonCutArray[1] = "01521065000000"; //variation pidEdx 2.5,-10
293 eventCutArray[ 2] = "0000012"; photonCutArray[ 2] = "002000092970028250400000"; mesonCutArray[2] = "01521065000000"; //variation pidEdx 3,-10
294 eventCutArray[ 3] = "0000012"; photonCutArray[ 3] = "002000092500028250400000"; mesonCutArray[3] = "01521065000000"; //variation pion p dEdx 0.5-5
4b771b12 295 } else if (trainConfig == 37) {
48a2b226 296 eventCutArray[ 0] = "0000011"; photonCutArray[ 0] = "002000092570029250400000"; mesonCutArray[0] = "01521065000000"; //variation qt 0.03
297 eventCutArray[ 1] = "0000011"; photonCutArray[ 1] = "002000092570022250400000"; mesonCutArray[1] = "01521065000000"; //variation qt 0.07 no2D
298 eventCutArray[ 2] = "0000011"; photonCutArray[ 2] = "002000092570028150400000"; mesonCutArray[2] = "01521065000000"; //variation chi2 50.
299 eventCutArray[ 3] = "0000011"; photonCutArray[ 3] = "002000092570028850400000"; mesonCutArray[3] = "01521065000000"; //variation chi2 20.
4b771b12 300 } else if (trainConfig == 38) { //added signals
48a2b226 301 eventCutArray[ 0] = "0000012"; photonCutArray[ 0] = "002000092570029250400000"; mesonCutArray[0] = "01521065000000"; //variation qt 0.03
302 eventCutArray[ 1] = "0000012"; photonCutArray[ 1] = "002000092570022250400000"; mesonCutArray[1] = "01521065000000"; //variation qt 0.07 no2D
303 eventCutArray[ 2] = "0000012"; photonCutArray[ 2] = "002000092570028150400000"; mesonCutArray[2] = "01521065000000"; //variation chi2 50.
304 eventCutArray[ 3] = "0000012"; photonCutArray[ 3] = "002000092570028850400000"; mesonCutArray[3] = "01521065000000"; //variation chi2 20.
4b771b12 305 } else if (trainConfig == 39) {
48a2b226 306 eventCutArray[ 0] = "0000011"; photonCutArray[ 0] = "002000092570028260400000"; mesonCutArray[0] = "01521065000000"; //variation psi pair 0.05
307 eventCutArray[ 1] = "0000011"; photonCutArray[ 1] = "002000092570028280400000"; mesonCutArray[1] = "01521065000000"; //variation psi pair 0.2
308 eventCutArray[ 2] = "0000011"; photonCutArray[ 2] = "002000092570028250000000"; mesonCutArray[2] = "01521065000000"; //variation cosPA -1
309 eventCutArray[ 3] = "0000011"; photonCutArray[ 3] = "002000092570028250600000"; mesonCutArray[3] = "01521065000000"; //variation cosPA 0.9
4b771b12 310 } else if (trainConfig == 40) { //added signals
48a2b226 311 eventCutArray[ 0] = "0000012"; photonCutArray[ 0] = "002000092570028260400000"; mesonCutArray[0] = "01521065000000"; //variation psi pair 0.05
312 eventCutArray[ 1] = "0000012"; photonCutArray[ 1] = "002000092570028280400000"; mesonCutArray[1] = "01521065000000"; //variation psi pair 0.2
313 eventCutArray[ 2] = "0000012"; photonCutArray[ 2] = "002000092570028250000000"; mesonCutArray[2] = "01521065000000"; //variation cosPA -1
314 eventCutArray[ 3] = "0000012"; photonCutArray[ 3] = "002000092570028250600000"; mesonCutArray[3] = "01521065000000"; //variation cosPA 0.9
4b771b12 315 } else if (trainConfig == 41) {
48a2b226 316 eventCutArray[ 0] = "0000011"; photonCutArray[ 0] = "002000092570028950400000"; mesonCutArray[0] = "01521065000000"; //variation chi2 15
317 eventCutArray[ 1] = "0000011"; photonCutArray[ 1] = "002000092570028230400000"; mesonCutArray[1] = "01521065000000"; //variation psi pair 0.035
318 eventCutArray[ 2] = "0000011"; photonCutArray[ 2] = "002000092570028250400000"; mesonCutArray[2] = "01521055000000"; //variation alpha 0.75
319 eventCutArray[ 3] = "0000011"; photonCutArray[ 3] = "002000092570028250400000"; mesonCutArray[3] = "01521075000000"; //variation alpha 0.85
4b771b12 320 } else if (trainConfig == 42) { //added signals
48a2b226 321 eventCutArray[ 0] = "0000012"; photonCutArray[ 0] = "002000092570028950400000"; mesonCutArray[0] = "01521065000000"; //variation chi2 15
322 eventCutArray[ 1] = "0000012"; photonCutArray[ 1] = "002000092570028230400000"; mesonCutArray[1] = "01521065000000"; //variation psi pair 0.035
323 eventCutArray[ 2] = "0000012"; photonCutArray[ 2] = "002000092570028250400000"; mesonCutArray[2] = "01521055000000"; //variation alpha 0.75
324 eventCutArray[ 3] = "0000012"; photonCutArray[ 3] = "002000092570028250400000"; mesonCutArray[3] = "01521075000000"; //variation alpha 0.85
4b771b12 325 } else if (trainConfig == 43) {
48a2b226 326 eventCutArray[ 0] = "0004011"; photonCutArray[ 0] = "002000092570028250400000"; mesonCutArray[0] = "01521065000000"; // trigger kTRD with y 0.8
327 eventCutArray[ 1] = "0005011"; photonCutArray[ 1] = "002000092570028250400000"; mesonCutArray[1] = "01521065000000"; // trigger kEMC with y 0.8
328 eventCutArray[ 2] = "0006011"; photonCutArray[ 2] = "002000092570028250400000"; mesonCutArray[2] = "01521065000000"; // trigger kPHI with y 0.8
329 eventCutArray[ 3] = "0007011"; photonCutArray[ 3] = "002000092570028250400000"; mesonCutArray[3] = "01521065000000"; // trigger kHighMult with y 0.8
4b771b12 330 } else if (trainConfig == 44) {
48a2b226 331 eventCutArray[ 0] = "0008011"; photonCutArray[ 0] = "002000092570028250400000"; mesonCutArray[0] = "01521065000000"; // trigger kEMCEGA with y 0.8
332 eventCutArray[ 1] = "0009011"; photonCutArray[ 1] = "002000092570028250400000"; mesonCutArray[1] = "01521065000000"; // trigger kEMCEJE with y 0.8
333 eventCutArray[ 2] = "0000011"; photonCutArray[ 2] = "002000092570028250400000"; mesonCutArray[2] = "01521065000000"; // minimum bias with y 0.8
334 eventCutArray[ 3] = "0001111"; photonCutArray[ 3] = "002000092570028250400000"; mesonCutArray[3] = "01521065000000"; // trigger kINT8 with y 0.8
ed8bc1ca 335 } else if (trainConfig == 45) {
48a2b226 336 eventCutArray[ 0] = "0004211"; photonCutArray[ 0] = "002000092570028250400000"; mesonCutArray[0] = "01521065000000"; // trigger kTRD CINT8 HEE
337 eventCutArray[ 1] = "0004411"; photonCutArray[ 1] = "002000092570028250400000"; mesonCutArray[1] = "01521065000000"; // trigger kTRD CINT8 HSE
338 eventCutArray[ 2] = "0004611"; photonCutArray[ 2] = "002000092570028250400000"; mesonCutArray[2] = "01521065000000"; // trigger kTRD CINT8 HJE
339 eventCutArray[ 3] = "0004811"; photonCutArray[ 3] = "002000092570028250400000"; mesonCutArray[3] = "01521065000000"; // trigger kTRD CINT8 HQU
ed8bc1ca 340 } else if (trainConfig == 46) {
48a2b226 341 eventCutArray[ 0] = "0004111"; photonCutArray[ 0] = "002000092570028250400000"; mesonCutArray[0] = "01521065000000"; // trigger kTRD CINT7 HEE
342 eventCutArray[ 1] = "0004311"; photonCutArray[ 1] = "002000092570028250400000"; mesonCutArray[1] = "01521065000000"; // trigger kTRD CINT7 HSE
343 eventCutArray[ 2] = "0004511"; photonCutArray[ 2] = "002000092570028250400000"; mesonCutArray[2] = "01521065000000"; // trigger kTRD CINT7 HJE
344 eventCutArray[ 3] = "0004711"; photonCutArray[ 3] = "002000092570028250400000"; mesonCutArray[3] = "01521065000000"; // trigger kTRD CINT7 HQU
ed8bc1ca 345 } else if (trainConfig == 47) {
48a2b226 346 eventCutArray[ 0] = "0005211"; photonCutArray[ 0] = "002000092570028250400000"; mesonCutArray[0] = "01521065000000"; // trigger kEMC7
347 eventCutArray[ 1] = "0005311"; photonCutArray[ 1] = "002000092570028250400000"; mesonCutArray[1] = "01521065000000"; // trigger kEMC8
348 eventCutArray[ 2] = "0006211"; photonCutArray[ 2] = "002000092570028250400000"; mesonCutArray[2] = "01521065000000"; // trigger kPHI7
349 eventCutArray[ 3] = "0006311"; photonCutArray[ 3] = "002000092570028250400000"; mesonCutArray[3] = "01521065000000"; // trigger kPHI8
ed8bc1ca 350 } else if (trainConfig == 48) {
48a2b226 351 eventCutArray[ 0] = "0005111"; photonCutArray[ 0] = "002000092570028250400000"; mesonCutArray[0] = "01521065000000"; // trigger kEMC1
352 eventCutArray[ 1] = "0007111"; photonCutArray[ 1] = "002000092570028250400000"; mesonCutArray[1] = "01521065000000"; // trigger kSHM1
353 eventCutArray[ 2] = "0007211"; photonCutArray[ 2] = "002000092570028250400000"; mesonCutArray[2] = "01521065000000"; // trigger kSHM7
354 eventCutArray[ 3] = "0007311"; photonCutArray[ 3] = "002000092570028250400000"; mesonCutArray[3] = "01521065000000"; // trigger kSHM8
ed8bc1ca 355 } else if (trainConfig == 49) {
48a2b226 356 eventCutArray[ 0] = "0008111"; photonCutArray[ 0] = "002000092570028250400000"; mesonCutArray[0] = "01521065000000"; // trigger kEMCEGA + CINT7
357 eventCutArray[ 1] = "0008211"; photonCutArray[ 1] = "002000092570028250400000"; mesonCutArray[1] = "01521065000000"; // trigger kEMCEGA + CINT8
358 eventCutArray[ 2] = "0008311"; photonCutArray[ 2] = "002000092570028250400000"; mesonCutArray[2] = "01521065000000"; // trigger kEMCEG1 + CINT7
359 eventCutArray[ 3] = "0008411"; photonCutArray[ 3] = "002000092570028250400000"; mesonCutArray[3] = "01521065000000"; // trigger kEMCEG1 + CINT8
ed8bc1ca 360 } else if (trainConfig == 50) {
48a2b226 361 eventCutArray[ 0] = "0008511"; photonCutArray[ 0] = "002000092570028250400000"; mesonCutArray[0] = "01521065000000"; // trigger kEMCEG2 + CINT7
362 eventCutArray[ 1] = "0008611"; photonCutArray[ 1] = "002000092570028250400000"; mesonCutArray[1] = "01521065000000"; // trigger kEMCEG2 + CINT8
363 eventCutArray[ 2] = "0009111"; photonCutArray[ 2] = "002000092570028250400000"; mesonCutArray[2] = "01521065000000"; // trigger kEMCEJE + CINT7
364 eventCutArray[ 3] = "0009211"; photonCutArray[ 3] = "002000092570028250400000"; mesonCutArray[3] = "01521065000000"; // trigger kEMCEJE + CINT8
ed8bc1ca 365 } else if (trainConfig == 51) {
48a2b226 366 eventCutArray[ 0] = "0009311"; photonCutArray[ 0] = "002000092570028250400000"; mesonCutArray[0] = "01521065000000"; // trigger kEMCEJ1 + CINT7
367 eventCutArray[ 1] = "0009411"; photonCutArray[ 1] = "002000092570028250400000"; mesonCutArray[1] = "01521065000000"; // trigger kEMCEJ1 + CINT8
368 eventCutArray[ 2] = "0009511"; photonCutArray[ 2] = "002000092570028250400000"; mesonCutArray[2] = "01521065000000"; // trigger kEMCEJ2 + CINT7
369 eventCutArray[ 3] = "0009611"; photonCutArray[ 3] = "002000092570028250400000"; mesonCutArray[3] = "01521065000000"; // trigger kEMCEJ2 + CINT8
de752898 370 } else if (trainConfig == 52) { //pp 2.76TeV cuts
48a2b226 371 eventCutArray[ 0] = "0004211"; photonCutArray[ 0] = "002000093663003800000000"; mesonCutArray[0] = "01631031009000"; // trigger kTRD CINT8 HEE
372 eventCutArray[ 1] = "0004411"; photonCutArray[ 1] = "002000093663003800000000"; mesonCutArray[1] = "01631031009000"; // trigger kTRD CINT8 HSE
373 eventCutArray[ 2] = "0004611"; photonCutArray[ 2] = "002000093663003800000000"; mesonCutArray[2] = "01631031009000"; // trigger kTRD CINT8 HJE
374 eventCutArray[ 3] = "0004811"; photonCutArray[ 3] = "002000093663003800000000"; mesonCutArray[3] = "01631031009000"; // trigger kTRD CINT8 HQU
de752898 375 } else if (trainConfig == 53) { //pp 2.76TeV cuts
48a2b226 376 eventCutArray[ 0] = "0004111"; photonCutArray[ 0] = "002000093663003800000000"; mesonCutArray[0] = "01631031009000"; // trigger kTRD CINT7 HEE
377 eventCutArray[ 1] = "0004311"; photonCutArray[ 1] = "002000093663003800000000"; mesonCutArray[1] = "01631031009000"; // trigger kTRD CINT7 HSE
378 eventCutArray[ 2] = "0004511"; photonCutArray[ 2] = "002000093663003800000000"; mesonCutArray[2] = "01631031009000"; // trigger kTRD CINT7 HJE
379 eventCutArray[ 3] = "0004711"; photonCutArray[ 3] = "002000093663003800000000"; mesonCutArray[3] = "01631031009000"; // trigger kTRD CINT7 HQU
de752898 380 } else if (trainConfig == 54) { //pp 2.76TeV cuts
48a2b226 381 eventCutArray[ 0] = "0005211"; photonCutArray[ 0] = "002000093663003800000000"; mesonCutArray[0] = "01631031009000"; // trigger kEMC7
382 eventCutArray[ 1] = "0005311"; photonCutArray[ 1] = "002000093663003800000000"; mesonCutArray[1] = "01631031009000"; // trigger kEMC8
383 eventCutArray[ 2] = "0006211"; photonCutArray[ 2] = "002000093663003800000000"; mesonCutArray[2] = "01631031009000"; // trigger kPHI7
384 eventCutArray[ 3] = "0006311"; photonCutArray[ 3] = "002000093663003800000000"; mesonCutArray[3] = "01631031009000"; // trigger kPHI8
de752898 385 } else if (trainConfig == 55) { //pp 2.76TeV cuts
48a2b226 386 eventCutArray[ 0] = "0005111"; photonCutArray[ 0] = "002000093663003800000000"; mesonCutArray[0] = "01631031009000"; // trigger kEMC1
387 eventCutArray[ 1] = "0007111"; photonCutArray[ 1] = "002000093663003800000000"; mesonCutArray[1] = "01631031009000"; // trigger kSHM1
388 eventCutArray[ 2] = "0007211"; photonCutArray[ 2] = "002000093663003800000000"; mesonCutArray[2] = "01631031009000"; // trigger kSHM7
389 eventCutArray[ 3] = "0007311"; photonCutArray[ 3] = "002000093663003800000000"; mesonCutArray[3] = "01631031009000"; // trigger kSHM8
de752898 390 } else if (trainConfig == 56) { //pp 2.76TeV cuts
48a2b226 391 eventCutArray[ 0] = "0008111"; photonCutArray[ 0] = "002000093663003800000000"; mesonCutArray[0] = "01631031009000"; // trigger kEMCEGA + CINT7
392 eventCutArray[ 1] = "0008211"; photonCutArray[ 1] = "002000093663003800000000"; mesonCutArray[1] = "01631031009000"; // trigger kEMCEGA + CINT8
393 eventCutArray[ 2] = "0008311"; photonCutArray[ 2] = "002000093663003800000000"; mesonCutArray[2] = "01631031009000"; // trigger kEMCEG1 + CINT7
394 eventCutArray[ 3] = "0008411"; photonCutArray[ 3] = "002000093663003800000000"; mesonCutArray[3] = "01631031009000"; // trigger kEMCEG1 + CINT8
de752898 395 } else if (trainConfig == 57) { //pp 2.76TeV cuts
48a2b226 396 eventCutArray[ 0] = "0008511"; photonCutArray[ 0] = "002000093663003800000000"; mesonCutArray[0] = "01631031009000"; // trigger kEMCEG2 + CINT7
397 eventCutArray[ 1] = "0008611"; photonCutArray[ 1] = "002000093663003800000000"; mesonCutArray[1] = "01631031009000"; // trigger kEMCEG2 + CINT8
398 eventCutArray[ 2] = "0009111"; photonCutArray[ 2] = "002000093663003800000000"; mesonCutArray[2] = "01631031009000"; // trigger kEMCEJE + CINT7
399 eventCutArray[ 3] = "0009211"; photonCutArray[ 3] = "002000093663003800000000"; mesonCutArray[3] = "01631031009000"; // trigger kEMCEJE + CINT8
de752898 400 } else if (trainConfig == 58) { //pp 2.76TeV cuts
48a2b226 401 eventCutArray[ 0] = "0009311"; photonCutArray[ 0] = "002000093663003800000000"; mesonCutArray[0] = "01631031009000"; // trigger kEMCEJ1 + CINT7
402 eventCutArray[ 1] = "0009411"; photonCutArray[ 1] = "002000093663003800000000"; mesonCutArray[1] = "01631031009000"; // trigger kEMCEJ1 + CINT8
403 eventCutArray[ 2] = "0009511"; photonCutArray[ 2] = "002000093663003800000000"; mesonCutArray[2] = "01631031009000"; // trigger kEMCEJ2 + CINT7
404 eventCutArray[ 3] = "0009611"; photonCutArray[ 3] = "002000093663003800000000"; mesonCutArray[3] = "01631031009000"; // trigger kEMCEJ2 + CINT8
de752898 405
406
ed8bc1ca 407 } else {
344100c4 408 Error(Form("GammaConvV1_%i",trainConfig), "wrong trainConfig variable no cuts have been specified for the configuration");
409 return;
410 }
33bbd991 411
344100c4 412 TList *EventCutList = new TList();
a28cef74 413 TList *ConvCutList = new TList();
414 TList *MesonCutList = new TList();
33bbd991 415
a28cef74 416 TList *HeaderList = new TList();
4b771b12 417 if (periodname.CompareTo("LHC12i3") == 0){
418 TObjString *Header2 = new TObjString("BOX");
419 HeaderList->Add(Header2);
198c66f7 420 } else if (periodname.CompareTo("LHC14e2b")==0){
4b771b12 421 TObjString *Header2 = new TObjString("pi0_1");
422 HeaderList->Add(Header2);
423 TObjString *Header3 = new TObjString("eta_2");
424 HeaderList->Add(Header3);
425 }
426
344100c4 427 EventCutList->SetOwner(kTRUE);
428 AliConvEventCuts **analysisEventCuts = new AliConvEventCuts*[numberOfCuts];
a28cef74 429 ConvCutList->SetOwner(kTRUE);
344100c4 430 AliConversionPhotonCuts **analysisCuts = new AliConversionPhotonCuts*[numberOfCuts];
a28cef74 431 MesonCutList->SetOwner(kTRUE);
432 AliConversionMesonCuts **analysisMesonCuts = new AliConversionMesonCuts*[numberOfCuts];
33bbd991 433
434
a28cef74 435 for(Int_t i = 0; i<numberOfCuts; i++){
344100c4 436 analysisEventCuts[i] = new AliConvEventCuts();
437 analysisEventCuts[i]->InitializeCutsFromCutString(eventCutArray[i].Data());
438 EventCutList->Add(analysisEventCuts[i]);
439 analysisEventCuts[i]->SetFillCutHistograms("",kFALSE);
a28cef74 440
344100c4 441 analysisCuts[i] = new AliConversionPhotonCuts();
442 analysisCuts[i]->InitializeCutsFromCutString(photonCutArray[i].Data());
443 ConvCutList->Add(analysisCuts[i]);
a28cef74 444 analysisCuts[i]->SetFillCutHistograms("",kFALSE);
344100c4 445
a28cef74 446 analysisMesonCuts[i] = new AliConversionMesonCuts();
447 analysisMesonCuts[i]->InitializeCutsFromCutString(mesonCutArray[i].Data());
448 MesonCutList->Add(analysisMesonCuts[i]);
4b771b12 449 analysisMesonCuts[i]->SetFillCutHistograms("");
344100c4 450 analysisEventCuts[i]->SetAcceptedHeader(HeaderList);
a28cef74 451 }
33bbd991 452
344100c4 453 task->SetEventCutList(numberOfCuts,EventCutList);
a28cef74 454 task->SetConversionCutList(numberOfCuts,ConvCutList);
455 task->SetMesonCutList(numberOfCuts,MesonCutList);
456 task->SetMoveParticleAccordingToVertex(kTRUE);
457 task->SetDoMesonAnalysis(kTRUE);
458 task->SetDoMesonQA(enableQAMesonTask); //Attention new switch for Pi0 QA
459 task->SetDoPhotonQA(enableQAPhotonTask); //Attention new switch small for Photon QA
33bbd991 460
a28cef74 461 //connect containers
462 AliAnalysisDataContainer *coutput =
463 mgr->CreateContainer(Form("GammaConvV1_%i",trainConfig), TList::Class(),
464 AliAnalysisManager::kOutputContainer,Form("GammaConvV1_%i.root",trainConfig));
33bbd991 465
a28cef74 466 mgr->AddTask(task);
467 mgr->ConnectInput(task,0,cinput);
468 mgr->ConnectOutput(task,1,coutput);
33bbd991 469
a28cef74 470 return;
33bbd991 471
472}