<commit_before>///*******************************************************
///Config Description
//configIndex = 0 ---> Default cuts and PID
//configIndex = 1 ---> TPC Ncls = 100
//configIndex = 2 ---> TPC Ncls = 60
//configIndex = 3 ---> SPD kBoth + 3 ITS cls
//configIndex = 4 ---> SPD kBoth + 4 ITS cls
//configIndex = 5 ---> SPD kAny + 3 ITS cls
//configIndex = 6 ---> Mass < 0.05
//configIndex = 7 ---> Mass < 0.15
//configIndex = 8 ---> Op Angle < 0.1
//configIndex = 9 ---> TPC PID: -0.5 to 3.0
//configIndex = 10 ---> V0A -> other
//configIndex = 11 ---> Associated hadron with SPD::kAny cut
//Configurations for the Assoated pT Cut
//configIndex = 20 ---> Default (same as 0)
//configIndex = 21 ---> pT>0.3
//configIndex = 22 ---> pT>0.5
//configIndex = 23 ---> pT>0.7 (Do not use it - removed)
//Configurations for the hadron cut:
//0 (no Sum) = Only the cut from AODFilterBit
//+1000 ---> Associated hadron DCA cut z = 1 cm, xy = 0.25cm
//+2000 ---> Associated hadron DCA cut z = 1 cm, xy = 0.1cm
//+3000 ---> Associated hadron DCA cut z = 1 cm, xy = 0.5cm
//+4000 ---> Associated hadron DCA cut z = 1 cm, xy = 1 cm

//To change the electron the test electron binning: just sum +100 to the configuration you are working. For example: config 1 with alternative binning-> 101

///*******************************************************

AliAnalysisTaskHFEpACorrelation* ConfigHFEpACorrelation(
                                                       Bool_t isMC=kFALSE,
                                                       Int_t triggerIndex=0,
                                                       Int_t configIndex=0,
                                                       Int_t centralityIndex=0,
                                                       Bool_t isAOD = kFALSE,
                                                       Bool_t isEMCal = kFALSE,
                                                       Int_t EMCalThreshould = 0, //0 == EG1, 1 == EG2
                                                       Bool_t ispp = kFALSE
                                                       )

{
    ///_______________________________________________________________________________________________________________
    ///Track selection: Cuts used to ensure a minimum quality level of the tracks selected to perform the analysis
    AliHFEcuts *hfecuts = new AliHFEcuts("hfeCutsMinBias","HFE Cuts");
    hfecuts->CreateStandardCuts();
    
    Bool_t SetFinepTBinning;
    Int_t HadronCutType = 0;
    //To be able to vary the other configurations alongside with the new Hadrons Cuts
    if(configIndex>999)
    {
        HadronCutType = (Int_t) configIndex/1000;
        configIndex = (Int_t) (configIndex - HadronCutType*1000);
    }
    //Test Diferent pT Binning
    if(configIndex>99)
    {
        SetFinepTBinning = kTRUE;
        configIndex = configIndex - 100;
    }
    //TPC Cuts

    hfecuts->SetTPCmodes(AliHFEextraCuts::kFound, AliHFEextraCuts::kFoundOverFindable);
    if(configIndex==1) 	hfecuts->SetMinNClustersTPC(100);			                //Minimum number of clusters on TPC = 100
    else if(configIndex==2) hfecuts->SetMinNClustersTPC(60);			        	//Minimum number of clusters on TPC = 60
    else hfecuts->SetMinNClustersTPC(80);							                //Minimum number of clusters on TPC = 80
    
    hfecuts->SetMinNClustersTPCPID(80); 						                    //Minimum number of clusters for dE/dx
    hfecuts->SetMinRatioTPCclusters(0.6);						                    //Number of clusters (Found/Findable)
    
    //ITS
    if(configIndex==3)
    {
        hfecuts->SetCutITSpixel(AliHFEextraCuts::kBoth);							//Require 2 cluster on SPD
        hfecuts->SetMinNClustersITS(3);												//Minimum number of clusters on ITS
    }
    else if(configIndex==4)
    {
        hfecuts->SetCutITSpixel(AliHFEextraCuts::kBoth);							//Require 2 cluster on SPD
        hfecuts->SetMinNClustersITS(4);												//Minimum number of clusters on ITS
    }
    else if(configIndex==5)
    {
        hfecuts->SetCutITSpixel(AliHFEextraCuts::kAny);				            	//Require at least one cluster on SPD
        hfecuts->SetMinNClustersITS(3);												//Minimum number of clusters on ITS
    }
    else
    {
        hfecuts->SetCutITSpixel(AliHFEextraCuts::kAny);				            	//Require at least one cluster on SPD
        hfecuts->SetMinNClustersITS(2);												//Minimum number of clusters on ITS
    }
    
    hfecuts->SetCheckITSLayerStatus(kFALSE);
    
    //Additional Cuts
    hfecuts->SetPtRange(0.5, 1e6);								                    //Transversal momentum range in GeV/c
    //hfecuts->SetMaxImpactParam(1,2); 							                    //DCA to vertex
    
    //Event Selection
    hfecuts->SetVertexRange(10.);													//
    //hfecuts->SetProductionVertex(0,0.3,0,0.3);									//
    ///_______________________________________________________________________________________________________________
    
    ///_________________________________________________________________________________________________________________________
    ///Task config
    AliAnalysisTaskHFEpACorrelation *task = new AliAnalysisTaskHFEpACorrelation(Form("HFECuts%d_%d_%d_%d",triggerIndex,configIndex,centralityIndex,EMCalThreshould));
    printf("task ------------------------ %p\n ", task);
    
    task->SetHFECuts(hfecuts);
    task->SetCorrelationAnalysis();
    task->SetAODanalysis(isAOD);<commit_msg>updated config. of e-h in pPb<commit_after>///*******************************************************
///Config Description
//configIndex = 0 ---> Default cuts and PID
//configIndex = 1 ---> TPC Ncls = 100
//configIndex = 2 ---> TPC Ncls = 60
//configIndex = 3 ---> SPD kBoth + 3 ITS cls
//configIndex = 4 ---> SPD kBoth + 4 ITS cls
//configIndex = 5 ---> SPD kAny + 3 ITS cls
//configIndex = 6 ---> Mass < 0.05
//configIndex = 7 ---> Mass < 0.15
//configIndex = 8 ---> Op Angle < 0.1
//configIndex = 9 ---> TPC PID: -0.5 to 3.0
//configIndex = 10 ---> V0A -> other
//configIndex = 11 ---> Associated hadron with SPD::kAny cut
//configIndex = 11 ---> SPD kFirst + 3 ITS cls
//Configurations for the Assoated pT Cut
//configIndex = 20 ---> Default (same as 0)
//configIndex = 21 ---> pT>0.3
//configIndex = 22 ---> pT>0.5
//configIndex = 23 ---> pT>0.7 (Do not use it - removed)
//Configurations for the hadron cut:
//0 (no Sum) = Only the cut from AODFilterBit
//+1000 ---> Associated hadron DCA cut z = 1 cm, xy = 0.25cm
//+2000 ---> Associated hadron DCA cut z = 1 cm, xy = 0.1cm
//+3000 ---> Associated hadron DCA cut z = 1 cm, xy = 0.5cm
//+4000 ---> Associated hadron DCA cut z = 1 cm, xy = 1 cm

//To change the electron the test electron binning: just sum +100 to the configuration you are working. For example: config 1 with alternative binning-> 101

///*******************************************************

AliAnalysisTaskHFEpACorrelation* ConfigHFEpACorrelation(
                                                       Bool_t isMC=kFALSE,
                                                       Int_t triggerIndex=0,
                                                       Int_t configIndex=0,
                                                       Int_t centralityIndex=0,
                                                       Bool_t isAOD = kFALSE,
                                                       Bool_t isEMCal = kFALSE,
                                                       Int_t EMCalThreshould = 0, //0 == EG1, 1 == EG2
                                                       Bool_t ispp = kFALSE
                                                       )

{
    ///_______________________________________________________________________________________________________________
    ///Track selection: Cuts used to ensure a minimum quality level of the tracks selected to perform the analysis
    AliHFEcuts *hfecuts = new AliHFEcuts("hfeCutsMinBias","HFE Cuts");
    hfecuts->CreateStandardCuts();
    
    Bool_t SetFinepTBinning;
    Int_t HadronCutType = 0;
    //To be able to vary the other configurations alongside with the new Hadrons Cuts
    if(configIndex>999)
    {
        HadronCutType = (Int_t) configIndex/1000;
        configIndex = (Int_t) (configIndex - HadronCutType*1000);
    }
    //Test Diferent pT Binning
    if(configIndex>99)
    {
        SetFinepTBinning = kTRUE;
        configIndex = configIndex - 100;
    }
    //TPC Cuts

    hfecuts->SetTPCmodes(AliHFEextraCuts::kFound, AliHFEextraCuts::kFoundOverFindable);
    if(configIndex==1) 	hfecuts->SetMinNClustersTPC(100);			                //Minimum number of clusters on TPC = 100
    else if(configIndex==2) hfecuts->SetMinNClustersTPC(60);			        	//Minimum number of clusters on TPC = 60
    else hfecuts->SetMinNClustersTPC(80);							                //Minimum number of clusters on TPC = 80
    
    hfecuts->SetMinNClustersTPCPID(80); 						                    //Minimum number of clusters for dE/dx
    hfecuts->SetMinRatioTPCclusters(0.6);						                    //Number of clusters (Found/Findable)
    
    //ITS
    if(configIndex==3)
    {
        hfecuts->SetCutITSpixel(AliHFEextraCuts::kBoth);							//Require 2 cluster on SPD
        hfecuts->SetMinNClustersITS(3);												//Minimum number of clusters on ITS
    }
    else if(configIndex==4)
    {
        hfecuts->SetCutITSpixel(AliHFEextraCuts::kBoth);							//Require 2 cluster on SPD
        hfecuts->SetMinNClustersITS(4);												//Minimum number of clusters on ITS
    }
    else if(configIndex==5)
    {
        hfecuts->SetCutITSpixel(AliHFEextraCuts::kAny);				            	//Require at least one cluster on SPD
        hfecuts->SetMinNClustersITS(3);												//Minimum number of clusters on ITS
    }
    else if (configIndex == 12)
    {
        hfecuts->SetCutITSpixel(AliHFEextraCuts::kFirst);
        hfecuts->SetMinNClustersITS(2);
    }
    else
    {
        hfecuts->SetCutITSpixel(AliHFEextraCuts::kAny);				            	//Require at least one cluster on SPD
        hfecuts->SetMinNClustersITS(2);												//Minimum number of clusters on ITS
    }
    
    hfecuts->SetCheckITSLayerStatus(kFALSE);
    
    //Additional Cuts
    hfecuts->SetPtRange(0.5, 1e6);								                    //Transversal momentum range in GeV/c
    //hfecuts->SetMaxImpactParam(1,2); 							                    //DCA to vertex
    
    //Event Selection
    hfecuts->SetVertexRange(10.);													//
    //hfecuts->SetProductionVertex(0,0.3,0,0.3);									//
    ///_______________________________________________________________________________________________________________
    
    ///_________________________________________________________________________________________________________________________
    ///Task config
    AliAnalysisTaskHFEpACorrelation *task = new AliAnalysisTaskHFEpACorrelation(Form("HFECuts%d_%d_%d_%d",triggerIndex,configIndex,centralityIndex,EMCalThreshould));
    printf("task ------------------------ %p\n ", task);
    
    task->SetHFECuts(hfecuts);
    task->SetCorrelationAnalysis();
    task->SetAODanalysis(isAOD);
{'fraction_non_alphanumeric': 0.1251913897144916, 'fraction_numerical': 0.028280644870755652, 'mean_word_length': 1.9516214779372674, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 106, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 36, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '250811', 'n_tokens_mistral': 3603, 'n_tokens_neox': 3100, 'n_words': 817}