DA rpms
[u/mrichter/AliRoot.git] / TOF / MakeCDBEntryT0FillOnlineCalib.C
CommitLineData
104ba366 1MakeCDBEntryT0FillOnlineCalib(Float_t offset = 0., Float_t coefficient = 0., Int_t startRun = 0, Int_t endRun = AliCDBRunRange::Infinity())
2{
3
4 /* create object */
5 AliTOFT0FillOnlineCalib *obj = new AliTOFT0FillOnlineCalib();
6 obj->SetOffset(offset);
7 obj->SetCoefficient(coefficient);
8
9 /* create cdb info */
10 AliCDBId id("TOF/Calib/T0FillOnlineCalib", startRun, endRun);
11 AliCDBMetaData *md = new AliCDBMetaData();
12 md->SetResponsible("Roberto Preghenella");
13 md->SetComment("Online T0-fill calibration parameters");
14 md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
15 md->SetBeamPeriod(0);
16
17 /* put object in cdb */
18 AliCDBManager *cdb = AliCDBManager::Instance();
19 cdb->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
20 cdb->GetDefaultStorage()->Put(obj, id, md);
21
22}