]> git.uio.no Git - u/mrichter/AliRoot.git/blob - AD/macros/MakeADLightYieldsEntry.C
Update master to aliroot
[u/mrichter/AliRoot.git] / AD / macros / MakeADLightYieldsEntry.C
1 void MakeADLightYieldsEntry(const char *outputCDB = "local://$ALICE_ROOT/../AliRoot/OCDB")
2 {
3
4   AliCDBManager *man = AliCDBManager::Instance();
5   man->SetDefaultStorage(outputCDB);
6
7   // Creation of the light yields OCDB object
8   const Double_t lightYieldCorr[66] = {0.0,
9                                        0.01051, 0.00955, 0.00861, 0.00948, 0.01082, 0.00870, 0.01023, 0.01012,
10                                        0.01270, 0.01184, 0.01110, 0.01266, 0.00956, 0.00826, 0.00966, 0.00891,
11                                        0.0};
12
13   TH1F *yields = new TH1F("ADLightYields", "AD Light Yields", 16, -0.5, 15.5);
14   yields->SetContent(lightYieldCorr);
15         
16   AliCDBMetaData *md = new AliCDBMetaData(); // metaData describing the object
17   md->SetResponsible("Michal Broz");
18   md->SetBeamPeriod(0);
19   md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
20   md->SetComment("Light Yields channel by channel");
21   md->PrintMetaData();
22
23   AliCDBId id("AD/Calib/LightYields", 0, AliCDBRunRange::Infinity());
24   man->Put(yields, id, md);
25
26   delete md;
27
28 }