Fix for FMD DA
[u/mrichter/AliRoot.git] / T0 / AliT0setTimeAdjust.C
CommitLineData
aad627ee 1void AliT0setTimeAdjust(Int_t firstRun, Int_t lastRun)
2{
3 // Set T0 alignment OCDB entry calib/TimeAdjust
4 AliT0CalibSeasonTimeShift *clb = new AliT0CalibSeasonTimeShift();
5 Float_t par[4] = {0,0,0,0};
6 Float_t sigmas[4] = {0,0,0,0};
7
8 clb->SetT0Par(par, sigmas);
9 clb->Print();
10
11 AliCDBMetaData md;
12 md.SetResponsible("Alla");
13 TString fPath="T0/Calib/TimeAdjust";
14 AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
15 AliCDBStorage* storage = AliCDBManager::Instance()->GetDefaultStorage();
16 if(storage) {
17 AliCDBId id(fPath.Data(),firstRun, lastRun );
18 storage->Put(clb, id, &md);
19 }
20
21}