<commit_before>void MakeOCDB(Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity(),TString inputFile="CalibObjectsTrain1.root"){
  //
  //
  //
  gSystem->Load("libSTEER");
  gSystem->Load("libANALYSIS");
  gSystem->Load("libSTAT");
  gSystem->Load("libTPCcalib");
  gSystem->AddIncludePath("-I$ALICE_ROOT/STEER");
  gSystem->AddIncludePath("-I$ALICE_ROOT/TPC");

  gROOT->LoadMacro("$ALICE_ROOT/TPC/CalibMacros/CalibTimeVdrift.C+");
  gROOT->LoadMacro("$ALICE_ROOT/TPC/CalibMacros/CalibTimeGain.C+");
  ocdbStorage="local://"+gSystem->GetFromPipe("pwd")+"/OCDB";
  //
  // Make gain calibration
  //
  TFile fcalib(inputFile.Data());
  AliTPCcalibTimeGain * gain = ( AliTPCcalibTimeGain *)fcalib.Get("calibTimeGain");    
  if (gain==0) return;
  CalibTimeGain(gain, ocdbStorage.Data(),startRun,endRun,kTRUE);
  //
  // Make vdrift calibration
  //
  CalibTimeVdriftGlobal(inputFile.Data(),startRun,AliCDBRunRange::Infinity());


}<commit_msg>Adding the vdrift entry plots Marian<commit_after>void MakeOCDB(Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity(),TString inputFile="CalibObjectsTrain1.root"){
  //
  //
  //
  gSystem->Load("libSTEER");
  gSystem->Load("libANALYSIS");
  gSystem->Load("libSTAT");
  gSystem->Load("libTPCcalib");
  gSystem->AddIncludePath("-I$ALICE_ROOT/STEER");
  gSystem->AddIncludePath("-I$ALICE_ROOT/TPC");

  gROOT->LoadMacro("$ALICE_ROOT/TPC/CalibMacros/CalibTimeVdrift.C+");
  gROOT->LoadMacro("$ALICE_ROOT/TPC/CalibMacros/CalibTimeGain.C+");
  ocdbStorage="local://"+gSystem->GetFromPipe("pwd")+"/OCDB";
  //
  // Make gain calibration
  //
  TFile fcalib(inputFile.Data());
  AliTPCcalibTimeGain * gain = ( AliTPCcalibTimeGain *)fcalib.Get("calibTimeGain");    
  if (gain==0) return;
  CalibTimeGain(gain, ocdbStorage.Data(),startRun,endRun,kTRUE);
  //
  // Make vdrift calibration
  //
  CalibTimeVdriftGlobal(inputFile.Data(),startRun,AliCDBRunRange::Infinity());
  //
  // Make calibration plot
  //
  Int_t run=endRun;
  ocdbStorage="local://"+gSystem->GetFromPipe("pwd")+"/OCDB";
  AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
  AliCDBManager::Instance()->SetSpecificStorage("TPC/Calib/TimeDrift",ocdbStorage.Data());  
  AliCDBEntry* entry = AliCDBManager::Instance()->Get("TPC/Calib/TimeDrift",run);
  TObjArray * arr = (TObjArray*)entry->GetObject();
  TObjArray *picArray = new TObjArray;
  MakeDefaultPlots(arr,picArray);
  TFile fdrift("vdrift.root","recreate");
  picArray->Write("drift Plot");
  fdrift.Close();  
}
{'fraction_non_alphanumeric': 0.18218138234119058, 'fraction_numerical': 0.0015980823012385138, 'mean_word_length': 5.554973821989528, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, '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': '4792160', 'n_tokens_mistral': 982, 'n_tokens_neox': 965, 'n_words': 95}