Improved QAchecker and plots for DQM
[u/mrichter/AliRoot.git] / TOF / MakeCDBEntryReadoutEfficiency.C
CommitLineData
dad2868f 1MakeCDBEntryReadoutEfficiency(Int_t startRun = 0, Int_t endRun = AliCDBRunRange::Infinity())
2{
3
4 /* create object */
5 TH1F *obj = new TH1F("hReadoutEfficiency", "", 157248, 0., 157248.);
6 for (Int_t i = 0; i < 157248; i++)
7 obj->SetBinContent(i + 1, 1.);
8
9 /* create cdb info */
10 AliCDBId id("TOF/Calib/ReadoutEfficiency", startRun, endRun);
11 AliCDBMetaData *md = new AliCDBMetaData();
12 md->SetResponsible("Roberto Preghenella");
13 md->SetComment("ReadoutEfficiency");
14 md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
15 md->SetBeamPeriod(0);
16
17 /* put object in cdb */
18 AliCDBManager *cdb = AliCDBManager::Instance();
19 cdb->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
20 cdb->GetDefaultStorage()->Put(obj, id, md);
21
22}