Enabled option for selecting tree name in trneding macro
[u/mrichter/AliRoot.git] / TOF / MakeCDBEntryCTPLatency.C
CommitLineData
2bf4d9d6 1MakeCDBEntryCTPLatency(Float_t value = 0., Int_t startRun = 0, Int_t endRun = AliCDBRunRange::Infinity())
2{
3
4 /* create object */
5 AliTOFCTPLatency *obj = new AliTOFCTPLatency();
6 obj->SetCTPLatency(value);
7
8 /* create cdb info */
9 AliCDBId id("TOF/Calib/CTPLatency", startRun, endRun);
10 AliCDBMetaData *md = new AliCDBMetaData();
11 md->SetResponsible("Roberto Preghenella");
12 md->SetComment("CTPLatency (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}