]> git.uio.no Git - u/mrichter/AliRoot.git/blame - AD/macros/MakeADTimeDelaysEntry.C
Update master to aliroot
[u/mrichter/AliRoot.git] / AD / macros / MakeADTimeDelaysEntry.C
CommitLineData
20352bde 1void MakeADTimeDelaysEntry(const char *outputCDB = "local://$ALICE_ROOT/../AliRoot/OCDB")
68865a3d 2{
3
4 AliCDBManager *man = AliCDBManager::Instance();
20352bde 5 man->SetDefaultStorage(outputCDB);
68865a3d 6
7 // Creation of the time delays OCDB object
8 const Double_t timeShift[18] = {0.0 ,203.2, 203.4, 203.5, 203.0, 203.4, 203.5, 203.1, 203.2, 194.2, 194.4, 194.5, 194.2, 194.7, 194.5, 194.3, 192.8, 0.0};
20352bde 9 TH1F *delays = new TH1F("ADTimeDelays", "AD Time delays", 16, -0.5, 15.5);
68865a3d 10 delays->SetContent(timeShift);
11
12 AliCDBMetaData *md= new AliCDBMetaData(); // metaData describing the object
13 md->SetResponsible("Michal Broz");
14 md->SetBeamPeriod(0);
15 md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
16 md->SetComment("Time delays channel by channel");
17 md->PrintMetaData();
18
19 AliCDBStorage *storLoc = man->GetDefaultStorage();
20352bde 20 AliCDBId id("AD/Calib/TimeDelays", 0, AliCDBRunRange::Infinity());
68865a3d 21
20352bde 22 man->Put(delays, id, md);
68865a3d 23
68865a3d 24 delete md;
25
26}