]>
Commit | Line | Data |
---|---|---|
68865a3d | 1 | void MakeADLightYieldsEntry() |
2 | { | |
3 | ||
4 | AliCDBManager *man = AliCDBManager::Instance(); | |
5 | man->SetDefaultStorage("local://$ALICE_ROOT/OCDB"); | |
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 | AliCDBStorage *storLoc = man->GetDefaultStorage(); | |
24 | AliCDBId id("AD/Calib/LightYields",0,AliCDBRunRange::Infinity()); | |
25 | ||
26 | storLoc->Put(yields, id, md); | |
27 | ||
28 | storLoc->Delete(); | |
29 | delete md; | |
30 | ||
31 | } |