<commit_before>void SubmitFMDCorrections(const Char_t* filename, Bool_t store, Float_t energy, Int_t trigger, Float_t mag, Int_t collsystem,Bool_t inelGtZero=kFALSE) {
  
  gSystem->Load("libANALYSIS");
  gSystem->Load("libANALYSISalice");
  gSystem->Load("libPWG0base");
  gSystem->Load("libPWG2forward");
  
  AliFMDAnaParameters* pars = AliFMDAnaParameters::Instance();
  
  if(energy == 900)
    pars->SetEnergy(AliFMDAnaParameters::k900);
  else if(energy == 7000)
    pars->SetEnergy(AliFMDAnaParameters::k7000);
  else if(energy == 10000)
    pars->SetEnergy(AliFMDAnaParameters::k10000);
  else if(energy == 14000)
    pars->SetEnergy(AliFMDAnaParameters::k14000);
  else if(energy == 5500)
    pars->SetEnergy(AliFMDAnaParameters::k5500);
  
  if(trigger == 0)
    pars->SetTriggerDefinition(AliFMDAnaParameters::kMB1);
  else if(trigger == 1)
    pars->SetTriggerDefinition(AliFMDAnaParameters::kMB2);

  if(mag==0)
    pars->SetMagField(AliFMDAnaParameters::k0G);
  else if(mag==1)
    pars->SetMagField(AliFMDAnaParameters::k5G);
  
  if(collsystem == 0)
    pars->SetCollisionSystem(AliFMDAnaParameters::kPP);
  else if(collsystem == 1)
    pars->SetCollisionSystem(AliFMDAnaParameters::kPbPb);
  
  
  pars->SetInelGtZero(inelGtZero);
  pars->PrintStatus();
  
  std::cout<<"creating background object"<<std::endl;
  AliFMDAnalysisTaskGenerateCorrection t;
  
  t.ReadFromFile(filename,store,0);
  std::cout<<"object created in backgroundFromFile.root "<<std::flush;
  if(store)
    std::cout<<" - and stored!"<<std::endl;
  else
    std::cout<<" - and not stored!"<<std::endl;
}<commit_msg>Fix from Kristjan - allow more energies<commit_after>void SubmitFMDCorrections(const Char_t* filename, Bool_t store, Float_t energy, Int_t trigger, Float_t mag, Int_t collsystem,Bool_t inelGtZero=kFALSE) {
  
  gSystem->Load("libANALYSIS");
  gSystem->Load("libANALYSISalice");
  gSystem->Load("libPWG0base");
  gSystem->Load("libPWG2forward");
  
  AliFMDAnaParameters* pars = AliFMDAnaParameters::Instance();
  
  if(energy == 900)
    pars->SetEnergy(AliFMDAnaParameters::k900);
  else if(energy == 10000)
    pars->SetEnergy(AliFMDAnaParameters::k10000);
  else if(energy == 14000)
    pars->SetEnergy(AliFMDAnaParameters::k14000);
  else if(energy == 7000)
    pars->SetEnergy(AliFMDAnaParameters::k7000);
  else if(energy == 2400)
    pars->SetEnergy(AliFMDAnaParameters::k2400);
  else if(energy == 5500)
    pars->SetEnergy(AliFMDAnaParameters::k5500);
  else if(energy == 2750)
    pars->SetEnergy(AliFMDAnaParameters::k2750);
  
  if(trigger == 0)
    pars->SetTriggerDefinition(AliFMDAnaParameters::kMB1);
  else if(trigger == 1)
    pars->SetTriggerDefinition(AliFMDAnaParameters::kMB2);
  else if(trigger == 2)
    pars->SetTriggerDefinition(AliFMDAnaParameters::kSPDFASTOR);
  else if(trigger == 3)
    pars->SetTriggerDefinition(AliFMDAnaParameters::kNOCTP);
  else if(trigger == 4)
    pars->SetTriggerDefinition(AliFMDAnaParameters::kEMPTY);
  else if(trigger == 5)
    pars->SetTriggerDefinition(AliFMDAnaParameters::kNSD);

  if(mag==0)
    pars->SetMagField(AliFMDAnaParameters::k0G);
  else if(mag==1)
    pars->SetMagField(AliFMDAnaParameters::k5G);
  else if(mag==-1)
    pars->SetMagField(AliFMDAnaParameters::k5Gnegative);
  
  if(collsystem == 0)
    pars->SetCollisionSystem(AliFMDAnaParameters::kPP);
  else if(collsystem == 1)
    pars->SetCollisionSystem(AliFMDAnaParameters::kPbPb);
  
  pars->SetInelGtZero(inelGtZero);
  pars->PrintStatus();
  
  std::cout<<"creating background object"<<std::endl;
  AliFMDAnalysisTaskGenerateCorrection t;
  
  t.ReadFromFile(filename,store,0);
  std::cout<<"object created in backgroundFromFile.root "<<std::flush;
  if(store)
    std::cout<<" - and stored!"<<std::endl;
  else
    std::cout<<" - and not stored!"<<std::endl;
}


//
// EOF
//

{'fraction_non_alphanumeric': 0.14749803510610426, 'fraction_numerical': 0.0345821325648415, 'mean_word_length': 5.482173174872665, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 44, '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': '7649445', 'n_tokens_mistral': 1545, 'n_tokens_neox': 1396, 'n_words': 197}