Move from the DAQ SOR/EOR time-stamps to the CTP ones. Should prevent the problem...
[u/mrichter/AliRoot.git] / VZERO / UpdateVZEROTimeSlewingEntryLHC10b.C
CommitLineData
eeb85970 1void UpdateVZEROTimeSlewingEntryLHC10b()
2{
3 // Macro repairs the OCDB entry for the
4 // run range 106031 - 116353 (from LHC10b)
5 // where the discri thr was not stored correctly
6 // in VZERO/Calib/Data.
7 // It is just ascale factor of TMath::Power(2.5/4.0,-0.5);
8
9
10 AliCDBManager *man = AliCDBManager::Instance();
11 man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
12
13 // Creation of the time slewing OCDB object
14 // x = ADC charge / TDC threshold
15 TF1 *slew = new TF1("TimeSlewing","[0]*TMath::Power(x,[1])",1,1024);
16 slew->SetParameter(0,1.05e1*TMath::Power(2.5/4.0,-0.5));
17 slew->SetParameter(1,-5.0e-1);
18
19 TObjString str("VZERO Time-slewing correction (corrected for wrong VZERO/Calib/Data entry in runs 106031-116353)");
20
21 AliCDBMetaData *md= new AliCDBMetaData(); // metaData describing the object
22 md->SetResponsible("Brigitte Cheynis");
23 md->SetBeamPeriod(0);
24 md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
25 md->SetComment("Time-slewing correction used in reconstruction and MC simulation");
26 md->PrintMetaData();
27
28 AliCDBStorage *storLoc = man->GetDefaultStorage();
29 AliCDBId id("VZERO/Calib/TimeSlewing",106031,116353);
30
31 storLoc->Put(slew, id, md);
32
33 storLoc->Delete();
34 delete md;
35
36}