<commit_before>//void AddFMDTask(); //is this actually necessary???

//__________________________________________________________________________________________
AliAnalysisTask *AddTask_oton_TTree(Int_t reducedEventType=-1, Bool_t writeTree=kTRUE){

  // Get the current analysis manager
  //---------------------------------
  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
  if (!mgr) {
    Error("AddTaskTree", "No analysis manager found.");
    return 0;
  }

  // Do we have an MC handler?
  //--------------------------
  Bool_t hasMC=(AliAnalysisManager::GetAnalysisManager()->GetMCtruthEventHandler()!=0x0);
  Bool_t isAOD=mgr->GetInputEventHandler()->IsA()==AliAODInputHandler::Class();
  
  //create task and add it to the manager
  //-------------------------------------
  AliAnalysisTaskReducedTreeMaker *task=new AliAnalysisTaskReducedTreeMaker("DSTTreeMaker", kTRUE);
  task->SetTriggerMask(AliVEvent::kINT7);
  
  // Pile up, Physics Selection, Analysis Utils
  //-------------------------------------------
  //if(trainConfig=="pp") task->SetRejectPileup();
  //task->UsePhysicsSelection(kFALSE); // No phys sel // is this necessary???
  task->SetUseAnalysisUtils(kFALSE); // moved to false 16/10/2016 // ???
  
  // Toggle on/off information branches
  //----------------------------------------
  task->SetFillV0Info(kFALSE);
  task->SetFillGammaConversions(kFALSE);
  task->SetFillK0s(kFALSE);
  task->SetFillLambda(kFALSE);
  task->SetFillALambda(kFALSE);
  task->SetFillCaloClusterInfo(kFALSE);
  //task->SetFillDielectronInfo(kFALSE);
  //task->SetFillFriendInfo(kFALSE);
  //task->SetFillBayesianPIDInfo(kFALSE);
  
  // Event and track selection
  //--------------------------
  task->SetEventFilter(CreateEventFilter(isAOD));
  task->SetTrackFilter(CreateGlobalTrackFilter(isAOD));
  //  task->SetFlowTrackFilter(CreateFlowTrackFilter(isAOD));
  //task->SetK0sPionCuts(CreateK0sPionCuts(isAOD));
  //task->SetLambdaProtonCuts(CreateLambdaProtonCuts(isAOD));
  //task->SetLambdaPionCuts(CreateLambdaPionCuts(isAOD));
  //task->SetGammaElectronCuts(CreateGammaConvElectronCuts(isAOD));
  //task->SetK0sMassRange(0.44,0.55);
  //task->SetLambdaMassRange(1.090,1.14);
  //task->SetGammaConvMassRange(0.0,0.1);
  //task->SetV0OpenCuts(CreateV0OpenCuts(AliESDv0KineCuts::kPurity, AliESDv0KineCuts::kPbPb));
  //task->SetV0StrongCuts(CreateV0StrongCuts(AliESDv0KineCuts::kPurity, AliESDv0KineCuts::kPbPb));
  task->SetFillFMDInfo(kFALSE);
  //AddFMDTask();
  //NEW: for Reaction plane:
  task->SetFillEventPlaneInfo(kFALSE);

  // Set Writting options
  //---------------------
  //task->SetTreeWritingOption(AliAnalysisTaskReducedTreeMaker::kFullEventsWithFullTracks);
  //task->SetTreeWritingOption(AliAnalysisTaskReducedTreeMaker::kBaseEventsWithBaseTracks);
  if(reducedEventType!=-1)
    task->SetTreeWritingOption(reducedEventType);
  task->SetWriteTree(writeTree);

  // For MC:
  //--------
  task->SetFillMCInfo(kTRUE);

  // You can define the active branches of the tree, all other branches will be set to inactive
  //-------------------------------------------------------------------------------------------
  //task->SetTreeActiveBranch("Event");
  //task->SetTreeActiveBranch("fRunNo");
  // Alternatively, you can define the inactive branches of the tree, all other branches will be set to active
  task->SetTreeInactiveBranch("fUniqueID");
  task->SetTreeInactiveBranch("fBits");
  task->SetTreeInactiveBranch("fEventTag");
  task->SetTreeInactiveBranch("fNVtxContributors");
  task->SetTreeInactiveBranch("fCentQuality");
  task->SetTreeInactiveBranch("fNtracks*");
  task->SetTreeInactiveBranch("fNV0candidates*");
  task->SetTreeInactiveBranch("fTracks.fUniqueID");
  task->SetTreeInactiveBranch("fTracks.fBits");
  task->SetTreeInactiveBranch("fTracks.fIsCartesian");
  task->SetTreeInactiveBranch("fTracks.fFlags");
  task->SetTreeInactiveBranch("fTracks.fQualityFlags");
  task->SetTreeInactiveBranch("fTracks.fTrackId");
  task->SetTreeInactiveBranch("fTracks.fStatus");
  task->SetTreeInactiveBranch("fTracks.fTPCPhi");
  task->SetTreeInactiveBranch("fTracks.fTPCPt");
  task->SetTreeInactiveBranch("fTracks.fTPCEta");
  task->SetTreeInactiveBranch("fTracks.fMomentumInner");
  //task->SetTreeInactiveBranch("fTracks.fDCA*");
  task->SetTreeInactiveBranch("fTracks.fTPCDCA*");
  task->SetTreeInactiveBranch("fTracks.fTrackLength");
  task->SetTreeInactiveBranch("fTracks.fMassForTracking");
  //task->SetTreeInactiveBranch("fTracks.fITSclusterMap");
  task->SetTreeInactiveBranch("fTracks.fITSSharedclusterMap");
  task->SetTreeInactiveBranch("fTracks.fITSsignal");
  task->SetTreeInactiveBranch("fTracks.fITSchi2");
  task->SetTreeInactiveBranch("fTracks.fTPCNcls");
  task->SetTreeInactiveBranch("fTracks.fTPCCrossedRows");
  task->SetTreeInactiveBranch("fTracks.fTPCNclsF");
  task->SetTreeInactiveBranch("fTracks.fTPCNclsShared");
  task->SetTreeInactiveBranch("fTracks.fTPCClusterMap");
  task->SetTreeInactiveBranch("fTracks.fTPCsignal");
  task->SetTreeInactiveBranch("fTracks.fTPCsignalN");
  task->SetTreeInactiveBranch("fTracks.fTPCchi2");
  task->SetTreeInactiveBranch("fTracks.fTPCActiveLength");
  task->SetTreeInactiveBranch("fTracks.fTPCGeomLength");
  task->SetTreeInactiveBranch("fTracks.fTOFbeta");
  task->SetTreeInactiveBranch("fTracks.fTOFmismatchProbab");
  task->SetTreeInactiveBranch("fTracks.fTRDntracklets*");
  task->SetTreeInactiveBranch("fTracks.fMCMom*");
  task->SetTreeInactiveBranch("fTracks.fMCFreezeout*");
  task->SetTreeInactiveBranch("fTracks.fMCLabels*");
  task->SetTreeInactiveBranch("fTracks.fMCPdg*");
  task->SetTreeInactiveBranch("fTracks.fMCGeneratorIndex");
  task->SetTreeInactiveBranch("fTracks.fTOFtime");
  task->SetTreeInactiveBranch("fTracks.fTOFdx");
  task->SetTreeInactiveBranch("fTracks.fTOFdz");
  task->SetTreeInactiveBranch("fTracks.fTOFchi2");
  task->SetTreeInactiveBranch("fTracks.fTOFdeltaBC");
  task->SetTreeInactiveBranch("fTracks.fTRDpid*");
  task->SetTreeInactiveBranch("fTracks.fTRDpidLQ2D*");
  task->SetTreeInactiveBranch("fTracks.fCaloClusterId");
  task->SetTreeInactiveBranch("fCandidates.*");
  task->SetTreeInactiveBranch("fEventNumberInFile");<commit_msg>Minor changes to reduce output TTree size<commit_after>//void AddFMDTask(); //is this actually necessary???

//__________________________________________________________________________________________
AliAnalysisTask *AddTask_oton_TTree(Int_t reducedEventType=-1, Bool_t writeTree=kTRUE){

  // Get the current analysis manager
  //---------------------------------
  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
  if (!mgr) {
    Error("AddTaskTree", "No analysis manager found.");
    return 0;
  }

  // Do we have an MC handler?
  //--------------------------
  Bool_t hasMC=(AliAnalysisManager::GetAnalysisManager()->GetMCtruthEventHandler()!=0x0);
  Bool_t isAOD=mgr->GetInputEventHandler()->IsA()==AliAODInputHandler::Class();
  
  //create task and add it to the manager
  //-------------------------------------
  AliAnalysisTaskReducedTreeMaker *task=new AliAnalysisTaskReducedTreeMaker("DSTTreeMaker", kTRUE);
  task->SetTriggerMask(AliVEvent::kINT7);
  
  // Pile up, Physics Selection, Analysis Utils
  //-------------------------------------------
  //if(trainConfig=="pp") task->SetRejectPileup();
  //task->UsePhysicsSelection(kFALSE); // No phys sel // is this necessary???
  task->SetUseAnalysisUtils(kFALSE); // moved to false 16/10/2016 // ???
  
  // Toggle on/off information branches
  //----------------------------------------
  task->SetFillV0Info(kFALSE);
  task->SetFillGammaConversions(kFALSE);
  task->SetFillK0s(kFALSE);
  task->SetFillLambda(kFALSE);
  task->SetFillALambda(kFALSE);
  task->SetFillCaloClusterInfo(kFALSE);
  //task->SetFillDielectronInfo(kFALSE);
  //task->SetFillFriendInfo(kFALSE);
  //task->SetFillBayesianPIDInfo(kFALSE);
  
  // Event and track selection
  //--------------------------
  task->SetEventFilter(CreateEventFilter(isAOD));
  task->SetTrackFilter(CreateGlobalTrackFilter(isAOD));
  //  task->SetFlowTrackFilter(CreateFlowTrackFilter(isAOD));
  //task->SetK0sPionCuts(CreateK0sPionCuts(isAOD));
  //task->SetLambdaProtonCuts(CreateLambdaProtonCuts(isAOD));
  //task->SetLambdaPionCuts(CreateLambdaPionCuts(isAOD));
  //task->SetGammaElectronCuts(CreateGammaConvElectronCuts(isAOD));
  //task->SetK0sMassRange(0.44,0.55);
  //task->SetLambdaMassRange(1.090,1.14);
  //task->SetGammaConvMassRange(0.0,0.1);
  //task->SetV0OpenCuts(CreateV0OpenCuts(AliESDv0KineCuts::kPurity, AliESDv0KineCuts::kPbPb));
  //task->SetV0StrongCuts(CreateV0StrongCuts(AliESDv0KineCuts::kPurity, AliESDv0KineCuts::kPbPb));
  task->SetFillFMDInfo(kFALSE);
  //AddFMDTask();
  //NEW: for Reaction plane:
  task->SetFillEventPlaneInfo(kFALSE);

  // Set Writting options
  //---------------------
  //task->SetTreeWritingOption(AliAnalysisTaskReducedTreeMaker::kFullEventsWithFullTracks);
  //task->SetTreeWritingOption(AliAnalysisTaskReducedTreeMaker::kBaseEventsWithBaseTracks);
  if(reducedEventType!=-1)
    task->SetTreeWritingOption(reducedEventType);
  task->SetWriteTree(writeTree);

  // For MC:
  //--------
  task->SetFillMCInfo(kTRUE);

  // You can define the active branches of the tree, all other branches will be set to inactive
  //-------------------------------------------------------------------------------------------
  //task->SetTreeActiveBranch("Event");
  //task->SetTreeActiveBranch("fRunNo");
  // Alternatively, you can define the inactive branches of the tree, all other branches will be set to active
  task->SetTreeInactiveBranch("fUniqueID");
  task->SetTreeInactiveBranch("fBits");
  task->SetTreeInactiveBranch("fEventTag");
  task->SetTreeInactiveBranch("fNVtxContributors");
  task->SetTreeInactiveBranch("fCentQuality");
  task->SetTreeInactiveBranch("fNtracks*");
  task->SetTreeInactiveBranch("fNV0candidates*");
  task->SetTreeInactiveBranch("fTracks.fUniqueID");
  task->SetTreeInactiveBranch("fTracks.fBits");
  task->SetTreeInactiveBranch("fTracks.fIsCartesian");
  task->SetTreeInactiveBranch("fTracks.fFlags");
  task->SetTreeInactiveBranch("fTracks.fQualityFlags");
  task->SetTreeInactiveBranch("fTracks.fTrackId");
  task->SetTreeInactiveBranch("fTracks.fStatus");
  task->SetTreeInactiveBranch("fTracks.fTPCPhi");
  task->SetTreeInactiveBranch("fTracks.fTPCPt");
  task->SetTreeInactiveBranch("fTracks.fTPCEta");
  task->SetTreeInactiveBranch("fTracks.fMomentumInner");
  //task->SetTreeInactiveBranch("fTracks.fDCA*");
  task->SetTreeInactiveBranch("fTracks.fTPCDCA*");
  task->SetTreeInactiveBranch("fTracks.fTrackLength");
  task->SetTreeInactiveBranch("fTracks.fMassForTracking");
  task->SetTreeInactiveBranch("fTracks.fChi2TPCConstrainedVsGlobal");
  //task->SetTreeInactiveBranch("fTracks.fITSclusterMap");
  task->SetTreeInactiveBranch("fTracks.fITSSharedclusterMap");
  task->SetTreeInactiveBranch("fTracks.fITSsignal");
  task->SetTreeInactiveBranch("fTracks.fITSchi2");
  task->SetTreeInactiveBranch("fTracks.fTPCNcls");
  task->SetTreeInactiveBranch("fTracks.fTPCCrossedRows");
  task->SetTreeInactiveBranch("fTracks.fTPCNclsF");
  task->SetTreeInactiveBranch("fTracks.fTPCNclsShared");
  task->SetTreeInactiveBranch("fTracks.fTPCClusterMap");
  task->SetTreeInactiveBranch("fTracks.fTPCsignal");
  task->SetTreeInactiveBranch("fTracks.fTPCsignalN");
  task->SetTreeInactiveBranch("fTracks.fTPCnSig*");
  task->SetTreeInactiveBranch("fTracks.fTPCchi2");
  task->SetTreeInactiveBranch("fTracks.fTPCActiveLength");
  task->SetTreeInactiveBranch("fTracks.fTPCGeomLength");
  task->SetTreeInactiveBranch("fTracks.fTOFbeta");
  task->SetTreeInactiveBranch("fTracks.fTOFmismatchProbab");
  task->SetTreeInactiveBranch("fTracks.fTRDntracklets*");
  task->SetTreeInactiveBranch("fTracks.fMCMom*");
  task->SetTreeInactiveBranch("fTracks.fMCFreezeout*");
  task->SetTreeInactiveBranch("fTracks.fMCLabels*");
  task->SetTreeInactiveBranch("fTracks.fMCPdg*");
  task->SetTreeInactiveBranch("fTracks.fMCGeneratorIndex");
  task->SetTreeInactiveBranch("fTracks.fTOFtime");
  task->SetTreeInactiveBranch("fTracks.fTOFdx");
  task->SetTreeInactiveBranch("fTracks.fTOFdz");
  task->SetTreeInactiveBranch("fTracks.fTOFchi2");
  task->SetTreeInactiveBranch("fTracks.fTOFnSig*");
  task->SetTreeInactiveBranch("fTracks.fTOFdeltaBC");
  task->SetTreeInactiveBranch("fTracks.fTRDpid*");
  task->SetTreeInactiveBranch("fTracks.fTRDpidLQ2D*");
  task->SetTreeInactiveBranch("fTracks.fCaloClusterId");
  task->SetTreeInactiveBranch("fCandidates.*");
  task->SetTreeInactiveBranch("fEventNumberInFile");
{'fraction_non_alphanumeric': 0.1900983814662012, 'fraction_numerical': 0.007854649317676928, 'mean_word_length': 4.824861367837339, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 188, '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': '1779846', 'n_tokens_mistral': 4261, 'n_tokens_neox': 4263, 'n_words': 430}