corrected TRD/TOF MV position
[u/mrichter/AliRoot.git] / TOF / MakeCDBEntryDeltaBCOffset.C
CommitLineData
2bf4d9d6 1MakeCDBEntryDeltaBCOffset(Int_t value = 0, Int_t startRun = 0, Int_t endRun = AliCDBRunRange::Infinity())
2{
3
4 /* create object */
5 AliTOFDeltaBCOffset *obj = new AliTOFDeltaBCOffset();
6 obj->SetDeltaBCOffset(value);
7
8 /* create cdb info */
9 AliCDBId id("TOF/Calib/DeltaBCOffset", startRun, endRun);
10 AliCDBMetaData *md = new AliCDBMetaData();
11 md->SetResponsible("Roberto Preghenella");
12 md->SetComment("DeltaBCOffset (BC bins)");
13 md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
14 md->SetBeamPeriod(0);
15
16 /* put object in cdb */
17 AliCDBManager *cdb = AliCDBManager::Instance();
18 cdb->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
19 cdb->GetDefaultStorage()->Put(obj, id, md);
20
21}