]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/MakeCDBEntryCTPLatency.C
Add option to run on some local files with test mode using the alien plugin
[u/mrichter/AliRoot.git] / TOF / MakeCDBEntryCTPLatency.C
1 MakeCDBEntryCTPLatency(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 }