ROOT logo
void UpdateVZEROTimeSlewingEntryLHC10b()
{
  // Macro repairs the OCDB entry for the
  // run range 106031 - 116353 (from LHC10b)
  // where the discri thr was not stored correctly
  // in VZERO/Calib/Data.
  // It is just ascale factor of TMath::Power(2.5/4.0,-0.5);


  AliCDBManager *man = AliCDBManager::Instance();
  man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");

  // Creation of the time slewing OCDB object
  // x = ADC charge / TDC threshold
  TF1 *slew = new TF1("TimeSlewing","[0]*TMath::Power(x,[1])",1,1024);
  slew->SetParameter(0,1.05e1*TMath::Power(2.5/4.0,-0.5));
  slew->SetParameter(1,-5.0e-1);

  TObjString str("VZERO Time-slewing correction (corrected for wrong VZERO/Calib/Data entry in runs 106031-116353)");

  AliCDBMetaData *md= new AliCDBMetaData(); // metaData describing the object
  md->SetResponsible("Brigitte Cheynis");
  md->SetBeamPeriod(0);
  md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
  md->SetComment("Time-slewing correction used in reconstruction and MC simulation");
  md->PrintMetaData();

  AliCDBStorage *storLoc = man->GetDefaultStorage();
  AliCDBId id("VZERO/Calib/TimeSlewing",106031,116353);

  storLoc->Put(slew, id, md);

  storLoc->Delete();
  delete md;

}
 UpdateVZEROTimeSlewingEntryLHC10b.C:1
 UpdateVZEROTimeSlewingEntryLHC10b.C:2
 UpdateVZEROTimeSlewingEntryLHC10b.C:3
 UpdateVZEROTimeSlewingEntryLHC10b.C:4
 UpdateVZEROTimeSlewingEntryLHC10b.C:5
 UpdateVZEROTimeSlewingEntryLHC10b.C:6
 UpdateVZEROTimeSlewingEntryLHC10b.C:7
 UpdateVZEROTimeSlewingEntryLHC10b.C:8
 UpdateVZEROTimeSlewingEntryLHC10b.C:9
 UpdateVZEROTimeSlewingEntryLHC10b.C:10
 UpdateVZEROTimeSlewingEntryLHC10b.C:11
 UpdateVZEROTimeSlewingEntryLHC10b.C:12
 UpdateVZEROTimeSlewingEntryLHC10b.C:13
 UpdateVZEROTimeSlewingEntryLHC10b.C:14
 UpdateVZEROTimeSlewingEntryLHC10b.C:15
 UpdateVZEROTimeSlewingEntryLHC10b.C:16
 UpdateVZEROTimeSlewingEntryLHC10b.C:17
 UpdateVZEROTimeSlewingEntryLHC10b.C:18
 UpdateVZEROTimeSlewingEntryLHC10b.C:19
 UpdateVZEROTimeSlewingEntryLHC10b.C:20
 UpdateVZEROTimeSlewingEntryLHC10b.C:21
 UpdateVZEROTimeSlewingEntryLHC10b.C:22
 UpdateVZEROTimeSlewingEntryLHC10b.C:23
 UpdateVZEROTimeSlewingEntryLHC10b.C:24
 UpdateVZEROTimeSlewingEntryLHC10b.C:25
 UpdateVZEROTimeSlewingEntryLHC10b.C:26
 UpdateVZEROTimeSlewingEntryLHC10b.C:27
 UpdateVZEROTimeSlewingEntryLHC10b.C:28
 UpdateVZEROTimeSlewingEntryLHC10b.C:29
 UpdateVZEROTimeSlewingEntryLHC10b.C:30
 UpdateVZEROTimeSlewingEntryLHC10b.C:31
 UpdateVZEROTimeSlewingEntryLHC10b.C:32
 UpdateVZEROTimeSlewingEntryLHC10b.C:33
 UpdateVZEROTimeSlewingEntryLHC10b.C:34
 UpdateVZEROTimeSlewingEntryLHC10b.C:35
 UpdateVZEROTimeSlewingEntryLHC10b.C:36
 UpdateVZEROTimeSlewingEntryLHC10b.C:37