From 1c661aa332a37590d23ecaa4f9e81cf2681fa5bd Mon Sep 17 00:00:00 2001 From: Abhishek Nath Date: Sat, 14 Sep 2024 02:52:20 +0200 Subject: [PATCH 1/2] ML4PCM: different configs for Added Signal --- .../GammaConv/AliAnalysisTaskGammaConvV1.cxx | 2 +- PWGGA/GammaConv/AliAnalysisTaskGammaConvV1.h | 2 +- .../macros/AddTask_GammaConvV1_PbPb.C | 30 +++++++++---------- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/PWGGA/GammaConv/AliAnalysisTaskGammaConvV1.cxx b/PWGGA/GammaConv/AliAnalysisTaskGammaConvV1.cxx index c157c938138..9e6d9af1f10 100644 --- a/PWGGA/GammaConv/AliAnalysisTaskGammaConvV1.cxx +++ b/PWGGA/GammaConv/AliAnalysisTaskGammaConvV1.cxx @@ -4004,7 +4004,7 @@ void AliAnalysisTaskGammaConvV1::CalculatePi0Candidates(){ if((fiMesonCut->MesonIsSelected(pi0cand,kTRUE,fiEventCut->GetEtaShift()))){ - if (fDoTreeForMesonML){ + if (fDoTreeForMesonML){ // MesonML fill AliPIDResponse* pidResonse = ((AliConversionPhotonCuts*)fV0Reader->GetConversionCuts())->GetPIDResponse(); diff --git a/PWGGA/GammaConv/AliAnalysisTaskGammaConvV1.h b/PWGGA/GammaConv/AliAnalysisTaskGammaConvV1.h index 25f3764ce8b..a6b3f5ba2e5 100644 --- a/PWGGA/GammaConv/AliAnalysisTaskGammaConvV1.h +++ b/PWGGA/GammaConv/AliAnalysisTaskGammaConvV1.h @@ -513,7 +513,7 @@ class AliAnalysisTaskGammaConvV1 : public AliAnalysisTaskSE { AliAnalysisTaskGammaConvV1(const AliAnalysisTaskGammaConvV1&); // Prevent copy-construction AliAnalysisTaskGammaConvV1 &operator=(const AliAnalysisTaskGammaConvV1&); // Prevent assignment - ClassDef(AliAnalysisTaskGammaConvV1, 64); + ClassDef(AliAnalysisTaskGammaConvV1, 65); }; #endif diff --git a/PWGGA/GammaConv/macros/AddTask_GammaConvV1_PbPb.C b/PWGGA/GammaConv/macros/AddTask_GammaConvV1_PbPb.C index 9152f96282a..c371e8d8223 100644 --- a/PWGGA/GammaConv/macros/AddTask_GammaConvV1_PbPb.C +++ b/PWGGA/GammaConv/macros/AddTask_GammaConvV1_PbPb.C @@ -4137,27 +4137,27 @@ void AddTask_GammaConvV1_PbPb( } else if (trainConfig == 3005){ // Open cuts with BG + Added Sig cuts.AddCutPCM("10130e23", "00200008100000001100400000", "0152103500000000"); // 0-10% - cuts.AddCutPCM("11310023", "00200008100000001100400000", "0152103500000000"); // 10-30% - cuts.AddCutPCM("13530023", "00200008100000001100400000", "0152103500000000"); // 30-50% - cuts.AddCutPCM("15910023", "00200008100000001100400000", "0152103500000000"); // 50-90% - - } else if (trainConfig == 3006){ // Open cuts with BG + Added Sig copy of a3005 - cuts.AddCutPCM("10130e23", "00200008100000001100400000", "0152103500000000"); // 0-10% - cuts.AddCutPCM("11310023", "00200008100000001100400000", "0152103500000000"); // 10-30% - cuts.AddCutPCM("13530023", "00200008100000001100400000", "0152103500000000"); // 30-50% - cuts.AddCutPCM("15910023", "00200008100000001100400000", "0152103500000000"); // 50-90% + cuts.AddCutPCM("11310e23", "00200008100000001100400000", "0152103500000000"); // 10-30% + cuts.AddCutPCM("13530e23", "00200008100000001100400000", "0152103500000000"); // 30-50% + cuts.AddCutPCM("15910e23", "00200008100000001100400000", "0152103500000000"); // 50-90% - } else if (trainConfig == 3007){ // Open cuts with BG + Added Sig copy a1 + } else if (trainConfig == 3006){ // Open cuts with BG + Added Sig cuts.AddCutPCM("10130023", "00200008100000001100400000", "0152103500000000"); // 0-10% cuts.AddCutPCM("11310023", "00200008100000001100400000", "0152103500000000"); // 10-30% cuts.AddCutPCM("13530023", "00200008100000001100400000", "0152103500000000"); // 30-50% cuts.AddCutPCM("15910023", "00200008100000001100400000", "0152103500000000"); // 50-90% - } else if (trainConfig == 3008){ // Open cuts with BG + Added Sig copy a3007 - cuts.AddCutPCM("10130023", "00200008100000001100400000", "0152103500000000"); // 0-10% - cuts.AddCutPCM("11310023", "00200008100000001100400000", "0152103500000000"); // 10-30% - cuts.AddCutPCM("13530023", "00200008100000001100400000", "0152103500000000"); // 30-50% - cuts.AddCutPCM("15910023", "00200008100000001100400000", "0152103500000000"); // 50-90% + } else if (trainConfig == 3007){ // Open cuts with BG + Addeed Sig + cuts.AddCutPCM("10130e53", "00200008100000001100400000", "0152103500000000"); // 0-10% + cuts.AddCutPCM("11310e53", "00200008100000001100400000", "0152103500000000"); // 10-30% + cuts.AddCutPCM("13530e53", "00200008100000001100400000", "0152103500000000"); // 30-50% + cuts.AddCutPCM("15910e53", "00200008100000001100400000", "0152103500000000"); // 50-90% + // + } else if (trainConfig == 3008){ // Open cuts with BG + Added Sig + cuts.AddCutPCM("10130053", "00200008100000001100400000", "0152103500000000"); // 0-10% + cuts.AddCutPCM("11310053", "00200008100000001100400000", "0152103500000000"); // 10-30% + cuts.AddCutPCM("13530053", "00200008100000001100400000", "0152103500000000"); // 30-50% + cuts.AddCutPCM("15910053", "00200008100000001100400000", "0152103500000000"); // 50-90% } else { Error(Form("GammaConvV1_%i",trainConfig), "wrong trainConfig variable no cuts have been specified for the configuration"); From 37a17e31d684befd0b56845e0c14943086fc47f6 Mon Sep 17 00:00:00 2001 From: Abhishek Nath Date: Wed, 25 Sep 2024 20:07:45 +0200 Subject: [PATCH 2/2] ML4PCM: Train config with Pion cut --- PWGGA/GammaConv/macros/AddTask_GammaConvV1_PbPb.C | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/PWGGA/GammaConv/macros/AddTask_GammaConvV1_PbPb.C b/PWGGA/GammaConv/macros/AddTask_GammaConvV1_PbPb.C index c371e8d8223..7545f9dd73f 100644 --- a/PWGGA/GammaConv/macros/AddTask_GammaConvV1_PbPb.C +++ b/PWGGA/GammaConv/macros/AddTask_GammaConvV1_PbPb.C @@ -4129,11 +4129,11 @@ void AddTask_GammaConvV1_PbPb( cuts.AddCutPCM("13530e03", "00200008100000001100400000", "0152103500000000"); // 30-50% cuts.AddCutPCM("15910e03", "00200008100000001100400000", "0152103500000000"); // 50-90% - } else if (trainConfig == 3004){ // Open cuts with BG copy a3003 - cuts.AddCutPCM("10130e03", "00200008100000001100400000", "0152103500000000"); // 0-10% - cuts.AddCutPCM("11310e03", "00200008100000001100400000", "0152103500000000"); // 10-30% - cuts.AddCutPCM("13530e03", "00200008100000001100400000", "0152103500000000"); // 30-50% - cuts.AddCutPCM("15910e03", "00200008100000001100400000", "0152103500000000"); // 50-90% + } else if (trainConfig == 3004){ // Open cuts with BG and Pion cut + cuts.AddCutPCM("10130e03", "002000081b7700001100400000", "0152103500000000"); // 0-10% + cuts.AddCutPCM("11310e03", "002000081b7700001100400000", "0152103500000000"); // 10-30% + cuts.AddCutPCM("13530e03", "002000081b7700001100400000", "0152103500000000"); // 30-50% + cuts.AddCutPCM("15910e03", "002000081b7700001100400000", "0152103500000000"); // 50-90% } else if (trainConfig == 3005){ // Open cuts with BG + Added Sig cuts.AddCutPCM("10130e23", "00200008100000001100400000", "0152103500000000"); // 0-10%