Changes for #82873: Module debugging broken (Christian)
[u/mrichter/AliRoot.git] / TOF / MakeCDBEntryT0Fill.C
CommitLineData
2bf4d9d6 1MakeCDBEntryT0Fill(Float_t value = 0., Int_t startRun = 0, Int_t endRun = AliCDBRunRange::Infinity())
2{
3
4 /* create object */
5 AliTOFT0Fill *obj = new AliTOFT0Fill();
6 obj->SetT0Fill(value);
7
8 /* create cdb info */
9 AliCDBId id("TOF/Calib/T0Fill", startRun, endRun);
10 AliCDBMetaData *md = new AliCDBMetaData();
11 md->SetResponsible("Roberto Preghenella");
12 md->SetComment("T0Fill (ps)");
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}