]>
Commit | Line | Data |
---|---|---|
5c90b012 | 1 | void MakeVZEROTimeSlewingEntry() |
2 | { | |
3 | ||
4 | AliCDBManager *man = AliCDBManager::Instance(); | |
5 | man->SetDefaultStorage("local://$ALICE_ROOT/OCDB"); | |
6 | ||
7 | // Creation of the time slewing OCDB object | |
8 | TF1 *slew = new TF1("TimeSlewing","[0]*TMath::Power(x,[1])",1,1024); | |
9 | slew->SetParameter(0,1.57345e1); | |
10 | slew->SetParameter(1,-4.25603e-1); | |
11 | ||
12 | TObjString str("VZERO Time-slewing correction"); | |
13 | ||
14 | AliCDBMetaData *md= new AliCDBMetaData(); // metaData describing the object | |
15 | md->SetResponsible("Brigitte Cheynis"); | |
16 | md->SetBeamPeriod(0); | |
17 | md->SetAliRootVersion(gSystem->Getenv("ARVERSION")); | |
18 | md->SetComment("Time-slewing correction used in reconstruction and MC simulation"); | |
19 | md->PrintMetaData(); | |
20 | ||
21 | AliCDBStorage *storLoc = man->GetDefaultStorage(); | |
22 | AliCDBId id("VZERO/Calib/TimeSlewing",0,AliCDBRunRange::Infinity()); | |
23 | ||
24 | storLoc->Put(slew, id, md); | |
25 | ||
26 | storLoc->Delete(); | |
27 | delete md; | |
28 | ||
29 | } |