<commit_before>//  Macro designed for use with the AliAnalysisTaskPIDBFDptDpt task.
//  Author: Jinjin(Au-Au) Pan, <NAME> & <NAME>, Wayne State University
//
//   PbPb               10:     centralityMethod = 4 (V0),        trigger = kFALSE (AliVEvent::kMB).
//   PbPb_2015_kTRUE    15:     centralityMethod = 4 (V0),        trigger = kTRUE (AliVEvent::kINT7).
//   PbPb_2015_kFALSE   15:     centralityMethod = 4 (V0),        trigger = kTRUE (AliVEvent::kINT7).
//   pPb                13:     centralityMethod = 7 (V0A),       trigger = kTRUE (AliVEvent::kINT7).     
//   pp                 10:     centralityMethod = 3 (nTracks),   trigger = kFALSE (AliVEvent::kMB).
//   pp_V0A_kMB_kTRUE   10:     centralityMethod = 7 (V0A),       trigger = kFALSE (AliVEvent::kMB).
//   pp_V0A_kMB_kFALSE  10:     centralityMethod = 7 (V0A),       trigger = kFALSE (AliVEvent::kMB).
//   pp_V0_kMB_kTRUE    10:     centralityMethod = 4 (V0),        trigger = kFALSE (AliVEvent::kMB).
//   pp_V0_kMB_kFALSE   10:     centralityMethod = 4 (V0),        trigger = kFALSE (AliVEvent::kMB).
//   pp_V0C_kMB_kTRUE   10:     centralityMethod = 8 (V0C),       trigger = kFALSE (AliVEvent::kMB).
//   pp_V0C_kMB_kFALSE  10:     centralityMethod = 8 (V0C),       trigger = kFALSE (AliVEvent::kMB).
//   pp_V0A_kMB_Utils   10:     centralityMethod = 7 (V0A),       trigger = kFALSE (AliVEvent::kMB).
//   pp_V0C_kMB_Utils   10:     centralityMethod = 8 (V0C),       trigger = kFALSE (AliVEvent::kMB).
//   pp_V0_kMB_Utils    10:     centralityMethod = 4 (V0),        trigger = kFALSE (AliVEvent::kMB).
/////////////////////////////////////////////////////////////////////////////////

AliAnalysisTaskPIDBFDptDpt * AddTaskPIDBFDptDpt
(
 TString AnalysisDataType       = "RealData", // "RealData"; "MCAOD" for MC AOD truth; "MCAODreco"
 TString System                 = "PbPb_2015_kTRUE",
 bool    pidparticle            =  1,   // 0: All Charged Particles;       1: PID particles
 bool    Use_PT_Cut             =  0,   // 0: Use_P_Cut ( TOF lower & higher boundary );       1: Use_PT_Cut
 int    useRapidity             =  1,   // 0: pseudo-rapadity      1: rapidity
 int    CentralityGroup         =  9,   // Diff Cent Groups dealing w/ memory limit & weight file 100M Alien limit
 int    singlesOnly             =  1,   // 0: full correlations    1: singles only
 int    useWeights              =  0,   // 0: no                   1: yes  
 int    chargeSet               =  1,   // 0: ++    1: +-    2: -+    3: --
 double zMin                    = -6.,  // |zMin| should = zMax due to the design of the code
 double zMax                    =  6.,  // set vertexZ cut   
 double vZwidth                 =  0.5, // zMin, zMax & vZwidth determine _nBins_vertexZ.
 int    trackFilterBit          =  1,   // PbPb10(Global=1;TPConly=128;Hybrid=272); pPb13(Global=?;TPConly=?;Hybrid=768); pp10(Global=1;TPConly=?; Hybrid=?)
 int    nClusterMin             =  70,
 double eta1Min                 = -0.8, // set y1min acturally if useRapidity==1
 double eta1Max                 =  0.8, // set y1max acturally if useRapidity==1
 double eta2Min                 = -0.8, // set y2min acturally if useRapidity==1
 double eta2Max                 =  0.8, // set y2max acturally if useRapidity==1
 double etaBinWidth             =  0.1, // set yBinWidth acturally if useRapidity==1
 double dcaZMin                 = -3.2,
 double dcaZMax                 =  3.2,
 double dcaXYMin                = -2.4,
 double dcaXYMax                =  2.4,
 int nCentrality                =  4,
 int particleID                 =  1,   // Pion=0, Kaon=1, Proton=2
 bool Use_AliHelperPID          =  1,  // 0: Not Use_AliHelperPID       1: Use_AliHelperPID
 int pidType                    =  2,  // kNSigmaTPC,kNSigmaTOF, kNSigmaTPCTOF
 Bool_t requestTOFPID           =  1,
 Bool_t isMC                    =  0,
 double nSigmaCut               =  2.0,
 double ElectronVetoCut         =  1.0,
 double ptMin                   =  0.2, // pt range lower limit cut ( also for pt histos )
 double ptCUTupperMax           =  2.0, // pt range upper limit cut
 double ptMax                   =  3.0, // pt range upper limit for histos; NOT pt cut!!!
 double ptWidthBin              =  0.1, // pt bin width in histos
 double ptTOFlowerMin           =  0.6, // boundary between TPC & TOF region
 int nBinsPhi                   =  36,  // 36 is default value
 const char* taskname           = "ChPM",
 char *inputHistogramFileName   = "alien:///alice/cern.ch/user/j/jipan/TUNE_rHJ_2eCut_8vZ32_G162_4C4_NOwCut_08y16_36phi_02pt2_pi_Pos_S1S2/TUNE_rHJ_2eCut_8vZ32_G162_4C4_NOwCut_08y16_36phi_02pt2_pi_Pos_S1S2.root" )

{
  // Set Default Configuration of this analysis
  // ==========================================
  Bool_t NoResonances           = kTRUE; // only for MCAOD
  Bool_t NoElectron             = kTRUE; // only for MCAOD
  int    debugLevel             = 0;
  int    rejectPileup           = 1;
  int    rejectPairConversion   = 1;
  int    sameFilter             = 1;
  int    centralityMethod       = 4; 
  Bool_t trigger                = kFALSE;
  Bool_t remove_Tracks_T0       = 1;<commit_msg>Update AddTaskPIDBFDptDpt.C<commit_after>//  Macro designed for use with the AliAnalysisTaskPIDBFDptDpt task.
//  Author: Jinjin(Au-Au) Pan, <NAME> & <NAME>, Wayne State University
//
//   PbPb               10:     centralityMethod = 4 (V0),        trigger = kFALSE (AliVEvent::kMB).
//   PbPb_2015_kTRUE    15:     centralityMethod = 4 (V0),        trigger = kTRUE (AliVEvent::kINT7).
//   PbPb_2015_kFALSE   15:     centralityMethod = 4 (V0),        trigger = kTRUE (AliVEvent::kINT7).
//   pPb                13:     centralityMethod = 7 (V0A),       trigger = kTRUE (AliVEvent::kINT7).     
//   pp                 10:     centralityMethod = 3 (nTracks),   trigger = kFALSE (AliVEvent::kMB).
//   pp_V0A_kMB_kTRUE   10:     centralityMethod = 7 (V0A),       trigger = kFALSE (AliVEvent::kMB).
//   pp_V0A_kMB_kFALSE  10:     centralityMethod = 7 (V0A),       trigger = kFALSE (AliVEvent::kMB).
//   pp_V0_kMB_kTRUE    10:     centralityMethod = 4 (V0),        trigger = kFALSE (AliVEvent::kMB).
//   pp_V0_kMB_kFALSE   10:     centralityMethod = 4 (V0),        trigger = kFALSE (AliVEvent::kMB).
//   pp_V0C_kMB_kTRUE   10:     centralityMethod = 8 (V0C),       trigger = kFALSE (AliVEvent::kMB).
//   pp_V0C_kMB_kFALSE  10:     centralityMethod = 8 (V0C),       trigger = kFALSE (AliVEvent::kMB).
//   pp_V0A_kMB_Utils   10:     centralityMethod = 7 (V0A),       trigger = kFALSE (AliVEvent::kMB).
//   pp_V0C_kMB_Utils   10:     centralityMethod = 8 (V0C),       trigger = kFALSE (AliVEvent::kMB).
//   pp_V0_kMB_Utils    10:     centralityMethod = 4 (V0),        trigger = kFALSE (AliVEvent::kMB).
/////////////////////////////////////////////////////////////////////////////////

AliAnalysisTaskPIDBFDptDpt * AddTaskPIDBFDptDpt
(
 TString AnalysisDataType       = "RealData", // "RealData"; "MCAOD" for MC AOD truth; "MCAODreco"
 TString System                 = "PbPb",
 bool    pidparticle            =  1,   // 0: All Charged Particles;       1: PID particles
 bool    Use_PT_Cut             =  1,   // 0: Use_P_Cut ( TOF lower & higher boundary );       1: Use_PT_Cut
 int    useRapidity             =  1,   // 0: pseudo-rapadity      1: rapidity
 int    CentralityGroup         =  1,   // Diff Cent Groups dealing w/ memory limit & weight file 100M Alien limit
 int    singlesOnly             =  1,   // 0: full correlations    1: singles only
 int    useWeights              =  0,   // 0: no                   1: yes  
 int    chargeSet               =  1,   // 0: ++    1: +-    2: -+    3: --
 double zMin                    = -6.,  // |zMin| should = zMax due to the design of the code
 double zMax                    =  6.,  // set vertexZ cut   
 double vZwidth                 =  0.5, // zMin, zMax & vZwidth determine _nBins_vertexZ.
 int    trackFilterBit          =  1,   // PbPb10(Global=1;TPConly=128;Hybrid=272); pPb13(Global=?;TPConly=?;Hybrid=768); pp10(Global=1;TPConly=?; Hybrid=?)
 int    nClusterMin             =  70,
 double eta1Min                 = -0.8, // set y1min acturally if useRapidity==1
 double eta1Max                 =  0.8, // set y1max acturally if useRapidity==1
 double eta2Min                 = -0.8, // set y2min acturally if useRapidity==1
 double eta2Max                 =  0.8, // set y2max acturally if useRapidity==1
 double etaBinWidth             =  0.1, // set yBinWidth acturally if useRapidity==1
 double dcaZMin                 = -3.2,
 double dcaZMax                 =  3.2,
 double dcaXYMin                = -2.4,
 double dcaXYMax                =  2.4,
 int nCentrality                =  8,
 int particleID                 =  1,   // Pion=0, Kaon=1, Proton=2
 bool Use_AliHelperPID          =  1,  // 0: Not Use_AliHelperPID       1: Use_AliHelperPID
 int pidType                    =  2,  // kNSigmaTPC,kNSigmaTOF, kNSigmaTPCTOF
 Bool_t requestTOFPID           =  1,
 Bool_t isMC                    =  0,
 double nSigmaCut               =  2.0,
 double ElectronVetoCut         =  1.0,
 double ptMin                   =  0.2, // pt range lower limit cut ( also for pt histos )
 double ptCUTupperMax           =  2.0, // pt range upper limit cut
 double ptMax                   =  3.0, // pt range upper limit for histos; NOT pt cut!!!
 double ptWidthBin              =  0.1, // pt bin width in histos
 double ptTOFlowerMin           =  0.6, // boundary between TPC & TOF region
 int nBinsPhi                   =  72,  // 36 is default value
 const char* taskname           = "ChPM",
 char *inputHistogramFileName   = "alien:///alice/cern.ch/user/j/jipan/TUNE_rHJ_2eCut_8vZ32_G162_4C4_NOwCut_08y16_36phi_02pt2_pi_Pos_S1S2/TUNE_rHJ_2eCut_8vZ32_G162_4C4_NOwCut_08y16_36phi_02pt2_pi_Pos_S1S2.root" )

{
  // Set Default Configuration of this analysis
  // ==========================================
  Bool_t NoResonances           = kTRUE; // only for MCAOD
  Bool_t NoElectron             = kTRUE; // only for MCAOD
  int    debugLevel             = 0;
  int    rejectPileup           = 1;
  int    rejectPairConversion   = 1;
  int    sameFilter             = 1;
  int    centralityMethod       = 4; 
  Bool_t trigger                = kFALSE;
  Bool_t remove_Tracks_T0       = 1;
{'fraction_non_alphanumeric': 0.12219305920093322, 'fraction_numerical': 0.04510547292699524, 'mean_word_length': 1.7325365205843293, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5322745', 'n_tokens_mistral': 3742, 'n_tokens_neox': 3502, 'n_words': 868}