message: Include variations of geometrical length cut in AlidNdPtTools
  Add documentation to AlidNdPtTools
diff: @@ -467,6 +467,15 @@ TH1D* AlidNdPtTools::CreateLogHist(const char* name)
  /// "Eta08"
  /// "Eta10"
  ///
  +/// For variation of geometrical length cut put one of the follow options in addition:
  +/// "GeoCutVar1"
  +/// "GeoCutVar2"
  +/// "GeoCutVar3"
  +/// "GeoCutVar4"
  +/// "GeoCutVar5"
  +/// "GeoCutVar6"
  +/// see https://alice-notes.web.cern.ch/system/files/notes/analysis/472/2018-Mar-29-analysis_note-Charged_particle_spectra_pp5TeV_v4.pdf for futher information
  +///
  /// \param option string to select the type of track cuts to be created
  ///
  /// \return the newly created AliESDtrackCuts or 0 in case of error
  @@ -490,6 +499,27 @@ AliESDtrackCuts* AlidNdPtTools::CreateESDtrackCuts(const char* option)
  o.ReplaceAll("eta10","");
  }
  + TString GeoCutVariation;
  + if(o.Contains("GeoCutVar1")){
  + GeoCutVariation = "Var1";
  + o.ReplaceAll("GeoCutVar1","");
  + } else if(o.Contains("GeoCutVar2")){
  + GeoCutVariation = "Var2";
  + o.ReplaceAll("GeoCutVar2","");
  + } else if(o.Contains("GeoCutVar3")){
  + GeoCutVariation = "Var3";
  + o.ReplaceAll("GeoCutVar3","");
  + } else if(o.Contains("GeoCutVar4")){
  + GeoCutVariation = "Var4";
  + o.ReplaceAll("GeoCutVar4","");
  + } else if(o.Contains("GeoCutVar5")){
  + GeoCutVariation = "Var5";
  + o.ReplaceAll("GeoCutVar5","");
  + } else if(o.Contains("GeoCutVar6")){
  + GeoCutVariation = "Var6";
  + o.ReplaceAll("GeoCutVar6","");
  + }
  +
  // as default use the cuts with geometric length cut
  if ( (o.EqualTo("")) || (o.EqualTo("default")) ) { o = "tpcitsgeo"; }
  @@ -653,6 +683,21 @@ AliESDtrackCuts* AlidNdPtTools::CreateESDtrackCuts(const char* option)
  cuts = 0;
  }
  + if(GeoCutVariation.EqualTo("Var1")){
  + cuts->SetCutGeoNcrNcl(3,130,1.5,0.8,0.65);
  + } else if(GeoCutVariation.EqualTo("Var2")){
  + cuts->SetCutGeoNcrNcl(3,130,1.5,0.9,0.75);
  + } else if(GeoCutVariation.EqualTo("Var3")){
  + cuts->SetCutGeoNcrNcl(4,130,1.5,0.85,0.7);
  + } else if(GeoCutVariation.EqualTo("Var4")){
  + cuts->SetCutGeoNcrNcl(2,130,1.5,0.85,0.7);
  + } else if(GeoCutVariation.EqualTo("Var5")){
  + cuts->SetCutGeoNcrNcl(3,140,1.5,0.85,0.7);
  + } else if(GeoCutVariation.EqualTo("Var6")){
  + cuts->SetCutGeoNcrNcl(3,120,1.5,0.85,0.7);
  + }
  +
  +
  return cuts;
  }
  