<commit_before>/***************************************************************************
              <NAME> - last modified on 26 March 2016

*** Configuration script for phi analysis of 2015 pp 13-TeV data ***
****************************************************************************/

Bool_t ConfigPhiPP13TeV_PID
(  
 AliRsnMiniAnalysisTask *task, 
 Bool_t                 isMC, 
 Bool_t                 isPP,
 const char             *suffix,
 AliRsnCutSet           *cutsPair,
 Int_t                  aodFilterBit=5,
 Int_t                  customQualityCutsID=AliRsnCutSetDaughterParticle::kDisableCustom,
 AliRsnCutSetDaughterParticle::ERsnDaughterCutSet cutKaCandidate=AliRsnCutSetDaughterParticle::kQualityStd2010,
 Float_t                nsigmaKa=2.,
 Bool_t                 enableMonitor=kTRUE,
 Bool_t                 IsMcTrueOnly=kFALSE,
 TString                monitorOpt="",
 Bool_t                 useMixLS=0,
 Bool_t                 checkReflex=0,
 AliRsnMiniValue::EType yaxisVar=AliRsnMiniValue::kPt,
 TString                polarizationOpt="" /* J - Jackson,T - Transversity */
)
{
  // manage suffix
  if(strlen(suffix)>0) suffix=Form("_%s",suffix);

  Bool_t CheckDecay=false;

  // set daughter cuts
  AliRsnCutSetDaughterParticle* cutSetQ;
  AliRsnCutSetDaughterParticle* cutSetK;

  Int_t MultBins=aodFilterBit/100;
  aodFilterBit=aodFilterBit%100;

  Float_t nsigmaKaTPC=fmod(nsigmaKa,1000.);
  Float_t nsigmaKaTOF=(nsigmaKa-fmod(nsigmaKa,1000.))/1000.;
  if(nsigmaKaTOF<1.e-10) nsigmaKaTOF=-1.;

  AliRsnCutTrackQuality* trkQualityCut= new AliRsnCutTrackQuality("myQualityCut");
  if(SetCustomQualityCut(trkQualityCut,customQualityCutsID,aodFilterBit)){
    //Set custom quality cuts for systematic checks<commit_msg>Turn on decay check for phi analysis in pp at 13 TeV<commit_after>/***************************************************************************
              <NAME> - last modified on 26 March 2016

*** Configuration script for phi analysis of 2015 pp 13-TeV data ***
****************************************************************************/

Bool_t ConfigPhiPP13TeV_PID
(  
 AliRsnMiniAnalysisTask *task, 
 Bool_t                 isMC, 
 Bool_t                 isPP,
 const char             *suffix,
 AliRsnCutSet           *cutsPair,
 Int_t                  aodFilterBit=5,
 Int_t                  customQualityCutsID=AliRsnCutSetDaughterParticle::kDisableCustom,
 AliRsnCutSetDaughterParticle::ERsnDaughterCutSet cutKaCandidate=AliRsnCutSetDaughterParticle::kQualityStd2010,
 Float_t                nsigmaKa=2.,
 Bool_t                 enableMonitor=kTRUE,
 Bool_t                 IsMcTrueOnly=kFALSE,
 TString                monitorOpt="",
 Bool_t                 useMixLS=0,
 Bool_t                 checkReflex=0,
 AliRsnMiniValue::EType yaxisVar=AliRsnMiniValue::kPt,
 TString                polarizationOpt="" /* J - Jackson,T - Transversity */
)
{
  // manage suffix
  if(strlen(suffix)>0) suffix=Form("_%s",suffix);

  Bool_t CheckDecay=true;
  if(customQualityCutsID==99){customQualityCutsID=1; CheckDecay=false;}

  // set daughter cuts
  AliRsnCutSetDaughterParticle* cutSetQ;
  AliRsnCutSetDaughterParticle* cutSetK;

  Int_t MultBins=aodFilterBit/100;
  aodFilterBit=aodFilterBit%100;

  Float_t nsigmaKaTPC=fmod(nsigmaKa,1000.);
  Float_t nsigmaKaTOF=(nsigmaKa-fmod(nsigmaKa,1000.))/1000.;
  if(nsigmaKaTOF<1.e-10) nsigmaKaTOF=-1.;

  AliRsnCutTrackQuality* trkQualityCut= new AliRsnCutTrackQuality("myQualityCut");
  if(SetCustomQualityCut(trkQualityCut,customQualityCutsID,aodFilterBit)){
    //Set custom quality cuts for systematic checks
{'fraction_non_alphanumeric': 0.16398891966759002, 'fraction_numerical': 0.02631578947368421, 'mean_word_length': 3.4801488833746896, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5520921', 'n_tokens_mistral': 1261, 'n_tokens_neox': 1086, 'n_words': 192}