Various hacks to fix up DAs:
[u/mrichter/AliRoot.git] / VZERO / CheckCalibOCDB.C
CommitLineData
7fbefd15 1void CheckCalibOCDB(Int_t run)
2{
3 AliCDBManager *man = AliCDBManager::Instance();
4
5 man->SetDefaultStorage("raw://");
6 man->SetRun(run);
7
8 AliCDBEntry *ent = man->Get("VZERO/Calib/Data");
9 AliVZEROCalibData *calData = (AliVZEROCalibData*)ent->GetObject();
10
11 for(Int_t pmNumber = 0; pmNumber < 64; ++pmNumber) {
1c91aa5f 12 printf("Ch=%d HV=%.1f MIP=%.3f Ped0=%.1f Ped1=%.1f Thr=%1.f Dead=%s\n",
7fbefd15 13 pmNumber,
14 calData->GetMeanHV(pmNumber),
15 1./calData->GetMIPperADC(pmNumber),
16 calData->GetPedestal(pmNumber),calData->GetPedestal(pmNumber+64),
1c91aa5f 17 calData->GetDiscriThr(pmNumber),
18 calData->IsChannelDead(pmNumber)?"yes":"no");
7fbefd15 19 }
20}